|
@@ -4,11 +4,13 @@
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:Compdfkit_Tools.PDFControl"
|
|
xmlns:local="clr-namespace:Compdfkit_Tools.PDFControl"
|
|
|
|
+ xmlns:cpdfcommon="clr-namespace:Compdfkit_Tools.Common"
|
|
mc:Ignorable="d"
|
|
mc:Ignorable="d"
|
|
ResizeMode="NoResize"
|
|
ResizeMode="NoResize"
|
|
Title="Settings" Height="580" Width="704" Loaded="Window_Loaded">
|
|
Title="Settings" Height="580" Width="704" Loaded="Window_Loaded">
|
|
<Window.Resources>
|
|
<Window.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary>
|
|
|
|
+ <cpdfcommon:TextLengthToVisibilityConverter x:Key="TextLengthToVisibilityConverter"></cpdfcommon:TextLengthToVisibilityConverter>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="../../../Asset/Styles/RadioButtonStyle.xaml"></ResourceDictionary>
|
|
<ResourceDictionary Source="../../../Asset/Styles/RadioButtonStyle.xaml"></ResourceDictionary>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
@@ -47,7 +49,10 @@
|
|
<RadioButton x:Name="CustomRangeRdo" Tag="Custom" Grid.Row="3" Margin="0,0,0,8" Checked="RangeRdo_Checked">
|
|
<RadioButton x:Name="CustomRangeRdo" Tag="Custom" Grid.Row="3" Margin="0,0,0,8" Checked="RangeRdo_Checked">
|
|
<StackPanel Orientation="Horizontal">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock Text="Custom Range" VerticalAlignment="Center" FontSize="14" FontFamily="Microsoft YaHei"></TextBlock>
|
|
<TextBlock Text="Custom Range" VerticalAlignment="Center" FontSize="14" FontFamily="Microsoft YaHei"></TextBlock>
|
|
- <TextBox Margin="12,0,0,0" Text="{Binding PageRange, UpdateSourceTrigger=PropertyChanged}" Height="28" Width="150" IsEnabled="{Binding ElementName=CustomRangeRdo, Path=IsChecked}"></TextBox>
|
|
|
|
|
|
+ <Grid>
|
|
|
|
+ <TextBox x:Name="RangeTbx" Margin="12,0,0,0" Text="{Binding PageRange, UpdateSourceTrigger=PropertyChanged}" Height="28" Width="150" IsEnabled="{Binding ElementName=CustomRangeRdo, Path=IsChecked}" VerticalContentAlignment="Center"></TextBox>
|
|
|
|
+ <TextBlock Text="1,3,5-10" VerticalAlignment="Center" Margin="15,0,0,0" Visibility="{Binding ElementName=RangeTbx, Path=Text, Converter={StaticResource TextLengthToVisibilityConverter}}" IsHitTestVisible="False" Foreground="#BBB"></TextBlock>
|
|
|
|
+ </Grid>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</RadioButton>
|
|
</RadioButton>
|
|
</Grid>
|
|
</Grid>
|