mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 20:08:59 +02:00
59 lines
4.8 KiB
XML
59 lines
4.8 KiB
XML
<Window x:Class="MediaBrowser.Uninstaller.MainWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="Uninstall Media Browser" Height="412.686" Width="633.955" WindowStyle="None">
|
|
<Grid>
|
|
<Image HorizontalAlignment="Center" Height="154" Margin="35,15,35,0" VerticalAlignment="Top" Width="541" Source="/MediaBrowser.Uninstaller;component/Code/Images/mb3logo800.png" Opacity="0.5"/>
|
|
<Label x:Name="lblHeading" Content="Uninstall " HorizontalAlignment="Left" Margin="51,169,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.478,-2.753" Height="44" Width="533" FontSize="24"/>
|
|
<Button x:Name="btnUninstall" Content="Uninstall" HorizontalAlignment="Left" Margin="505,356,0,0" VerticalAlignment="Top" Width="91" IsDefault="True" RenderTransformOrigin="0.991,-1.041" Click="btnUninstall_Click"/>
|
|
<Button x:Name="btnCancel" Content="Cancel" HorizontalAlignment="Left" Margin="412,356,0,0" VerticalAlignment="Top" Width="75" IsCancel="True" Click="btnCancel_Click"/>
|
|
<Grid x:Name="grdOptions" HorizontalAlignment="Left" Height="108" Margin="86,231,0,0" VerticalAlignment="Top" Width="353">
|
|
<CheckBox x:Name="cbxRemoveAll" Content="Remove All Traces" HorizontalAlignment="Left" Margin="0,3,0,0" VerticalAlignment="Top" Checked="cbxRemoveAll_Checked" Unchecked="cbxRemoveAll_Checked" FontSize="18"/>
|
|
<CheckBox x:Name="cbxRemoveCache" Content="Delete Cache Files" HorizontalAlignment="Left" Margin="16,32,0,0" VerticalAlignment="Top" FontSize="18"/>
|
|
<CheckBox x:Name="cbxRemoveConfig" Content="Delete Configuration and Log Files" HorizontalAlignment="Left" Margin="16,56,0,0" VerticalAlignment="Top" FontSize="18"/>
|
|
<CheckBox x:Name="cbxRemovePlugins" Content="Delete Plug-ins" HorizontalAlignment="Left" Margin="16,82,0,0" VerticalAlignment="Top" FontSize="18"/>
|
|
|
|
</Grid>
|
|
<Button x:Name="btnFinished" Content="Finish" HorizontalAlignment="Left" Margin="505,356,0,0" VerticalAlignment="Top" Width="91" IsDefault="True" RenderTransformOrigin="0.991,-1.041" Click="BtnFinished_OnClick" Visibility="Hidden"/>
|
|
|
|
</Grid>
|
|
<Window.Resources>
|
|
<!--Metro Button-->
|
|
<Style TargetType="{x:Type Button}" BasedOn="{x:Null}">
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
<Setter Property="Foreground" Value="#222222"/>
|
|
<Setter Property="FontSize" Value="16"/>
|
|
<Setter Property="Padding" Value="10,5,10,5"/>
|
|
<Setter Property="BorderBrush" Value="#222222"/>
|
|
<Setter Property="BorderThickness" Value="2"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<!-- We use Grid as a root because it is easy to add more elements to customize the button -->
|
|
<Grid x:Name="Grid">
|
|
<Border x:Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}"/>
|
|
|
|
<!-- Content Presenter is where the text content etc is placed by the control -->
|
|
<!-- The bindings are useful so that the control can be parameterized without editing the template -->
|
|
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RecognizesAccessKey="True"/>
|
|
</Grid>
|
|
|
|
<!--Each state sets a brush on the Border in the template -->
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsPressed" Value="true">
|
|
<Setter Property="Background" Value="#222222" TargetName="Border"/>
|
|
<Setter Property="BorderBrush" Value="#222222" TargetName="Border"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="FontSize" Value="16"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="true"/>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="BorderBrush" Value="#7f222222" TargetName="Border"/>
|
|
<Setter Property="Foreground" Value="#7f222222"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</Window.Resources></Window>
|