CPDFOpactiyUI.xaml 1.6 KB

1234567891011121314151617181920212223242526
  1. <UserControl x:Class="ComPDFKit.Controls.Common.CPDFOpacityUI"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:ComPDFKit.Controls.Common"
  7. mc:Ignorable="d"
  8. d:DesignHeight="40" d:DesignWidth="300">
  9. <UserControl.Resources>
  10. <ResourceDictionary>
  11. <ResourceDictionary.MergedDictionaries>
  12. <ResourceDictionary Source="../../../Asset/Styles/SliderStyle.xaml"></ResourceDictionary>
  13. </ResourceDictionary.MergedDictionaries>
  14. </ResourceDictionary>
  15. </UserControl.Resources>
  16. <Grid>
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition></ColumnDefinition>
  19. <ColumnDefinition Width="80"></ColumnDefinition>
  20. </Grid.ColumnDefinitions>
  21. <Slider Style="{StaticResource SliderStyle}" MinHeight="40" VerticalAlignment="Center" Maximum="100" Minimum="0" TickFrequency="1"
  22. IsSelectionRangeEnabled="True" IsMoveToPointEnabled="True"
  23. IsSnapToTickEnabled="True" Value="{Binding OpacityValue, Mode=TwoWay}" Margin="0,0,10,0"></Slider>
  24. <local:DropDownNumberBoxControl x:Name="DropDownNumberBoxControl" Grid.Column="1" Unit="%" Maxium="100" Minimum="1" Height="28" Width="72" Text="{Binding OpacityValue,Mode=TwoWay}"></local:DropDownNumberBoxControl>
  25. </Grid>
  26. </UserControl>