Files
OfficeTool/MainWindow.xaml
hariel1985 c23865d5f5 v1.07 — Pre-install Office check before installation
- New PreInstallCheckPage between Summary and Progress
- Detects existing Office installs, offers removal before new install
- License cleanup option included
- Skip button to proceed without removal
- Auto-proceeds to install after removal completes

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 06:25:48 +02:00

75 sor
3.8 KiB
XML

<Window x:Class="InstaSoftOfficeTool.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="InstaSoft Office Tool"
Width="800" Height="550"
ResizeMode="NoResize"
WindowStartupLocation="CenterScreen"
Background="{StaticResource BackgroundBrush}"
TextElement.Foreground="{StaticResource TextPrimaryBrush}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="64"/>
<RowDefinition Height="*"/>
<RowDefinition Height="60"/>
</Grid.RowDefinitions>
<!-- Header bar -->
<Border Grid.Row="0" Background="{StaticResource HeaderBarBrush}"
BorderBrush="{StaticResource BorderBrush}" BorderThickness="0,0,0,1">
<Grid Margin="24,0">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<!-- Microsoft 4-color logo -->
<Grid Width="24" Height="24" Margin="0,0,12,0">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Rectangle Grid.Row="0" Grid.Column="0" Fill="#F35325" Margin="0,0,1,1"/>
<Rectangle Grid.Row="0" Grid.Column="1" Fill="#81BC06" Margin="1,0,0,1"/>
<Rectangle Grid.Row="1" Grid.Column="0" Fill="#05A6F0" Margin="0,1,1,0"/>
<Rectangle Grid.Row="1" Grid.Column="1" Fill="#FFBA08" Margin="1,1,0,0"/>
</Grid>
<StackPanel VerticalAlignment="Center">
<TextBlock Text="InstaSoft Office Tool" FontSize="16" FontWeight="SemiBold"
Foreground="{StaticResource TextPrimaryBrush}"/>
<TextBlock Text="Microsoft Partner" FontSize="11"
Foreground="{StaticResource TextSecondaryBrush}" Margin="0,-2,0,0"/>
</StackPanel>
</StackPanel>
<TextBlock Text="v1.07" HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="12" Foreground="{StaticResource TextSecondaryBrush}"/>
</Grid>
</Border>
<!-- Content area -->
<Frame x:Name="ContentFrame" Grid.Row="1" NavigationUIVisibility="Hidden"
Margin="0" Background="Transparent"/>
<!-- Bottom bar: step dots + navigation -->
<Border Grid.Row="2" Background="{StaticResource HeaderBarBrush}"
BorderBrush="{StaticResource BorderBrush}" BorderThickness="0,1,0,0">
<Grid Margin="24,0">
<!-- Step indicator dots -->
<StackPanel x:Name="StepIndicator" Orientation="Horizontal"
HorizontalAlignment="Left" VerticalAlignment="Center">
</StackPanel>
<!-- Navigation buttons -->
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right"
VerticalAlignment="Center">
<Button x:Name="BtnBack" Content="&#x2190; Vissza" Style="{StaticResource SecondaryButton}"
Click="BtnBack_Click" Margin="0,0,8,0" Visibility="Collapsed"/>
<Button x:Name="BtnNext" Content="Tovább &#x2192;" Style="{StaticResource PrimaryButton}"
Click="BtnNext_Click" Visibility="Collapsed"/>
</StackPanel>
</Grid>
</Border>
</Grid>
</Window>