1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <UserControl x:Class="compdfkit_tools.PDFControlUI.CPDFDrawModeUI"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- mc:Ignorable="d"
- d:DesignHeight="30" d:DesignWidth="210">
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="../../../Asset/Style/RadioButtonStyle.xaml"></ResourceDictionary>
- <ResourceDictionary Source="pack://application:,,,/compdfkit-assets;component/Styles/ButtonStyle.xaml"></ResourceDictionary>
- <ResourceDictionary Source="pack://application:,,,/compdfkit-assets;component/Styles/ToggleButtonStyle.xaml"></ResourceDictionary>
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"></RowDefinition>
- <RowDefinition Height="auto"></RowDefinition>
- </Grid.RowDefinitions>
- <TextBlock Foreground="#43474D" FontSize="14" LineHeight="16" Margin="0,0,0,18">Themes</TextBlock>
-
- <StackPanel Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center" Visibility="Collapsed">
- <RadioButton GroupName="DrawMode" Tag="Normal" IsChecked="True" Click="DrawMode_Click">
- <TextBlock Text="白"></TextBlock>
- </RadioButton>
- <RadioButton GroupName="DrawMode" Tag="Dark" Click="DrawMode_Click">
- <TextBlock Text="夜"></TextBlock>
- </RadioButton>
- <RadioButton GroupName="DrawMode" Tag="Soft" Click="DrawMode_Click">
- <TextBlock Text="阅读"></TextBlock>
- </RadioButton>
- <RadioButton GroupName="DrawMode" Tag="Green" Click="DrawMode_Click">
- <TextBlock Text="护眼"></TextBlock>
- </RadioButton>
- <RadioButton GroupName="DrawMode" Tag="Custom" x:Name="Custom" Click="DrawMode_Click">
- <TextBlock Text="自定义"></TextBlock>
- </RadioButton>
- </StackPanel>
- <StackPanel Grid.Row="1" Orientation="Horizontal">
- <Button BorderThickness="0" Background="Transparent" Style="{StaticResource RoundButtonStyle}" Click="DrawModeNormal_Click">
- <Button.Content>
- <Ellipse Name="NormalTheme" Fill="White" Width="24" Height="24" StrokeThickness="2"></Ellipse>
- </Button.Content>
- </Button>
- <Button BorderThickness="0" Background="Transparent" Margin="12,0,0,0" Style="{StaticResource RoundButtonStyle}" Click="DrawModeSoft_Click">
- <Button.Content>
- <Ellipse Name="SoftTheme" Fill="#EEE8D8" Width="24" Height="24" StrokeThickness="2"></Ellipse>
- </Button.Content>
- </Button>
- <Button BorderThickness="0" Background="Transparent" Margin="12,0,0,0" Style="{StaticResource RoundButtonStyle}" Click="DrawModeDark_Click">
- <Button.Content>
- <Ellipse Name="DarkTheme" Fill="Black" Width="24" Height="24" StrokeThickness="2"></Ellipse>
- </Button.Content>
- </Button>
- <Button BorderThickness="0" Background="Transparent" Margin="12,0,0,0" Style="{StaticResource RoundButtonStyle}" Click="DrawModeGreen_Click">
- <Button.Content>
- <Ellipse Name="GreenTheme" Fill="#99CFA1" Width="24" Height="24" StrokeThickness="2"></Ellipse>
- </Button.Content>
- </Button>
- <Button BorderThickness="0" Background="Transparent" Margin="12,0,0,0" Style="{StaticResource RoundButtonStyle}" Click="DrawModeOrange_Click">
- <Button.Content>
- <Ellipse Name="OrangeTheme" Fill="#FFE390" Width="24" Height="24" StrokeThickness="2"></Ellipse>
- </Button.Content>
- </Button>
- <Button BorderThickness="0" Background="Transparent" Margin="12,0,0,0" Style="{StaticResource RoundButtonStyle}" Click="DrawModeLightBlue_Click">
- <Button.Content>
- <Ellipse Name="LightBlueTheme" Fill="#C1E6FF" Width="24" Height="24" StrokeThickness="2"></Ellipse>
- </Button.Content>
- </Button>
- </StackPanel>
-
- </Grid>
- </UserControl>
|