|
@@ -0,0 +1,68 @@
|
|
|
|
+<UserControl x:Class="PDF_Office.CustomControl.CompositeControl.SlidComboControl"
|
|
|
|
+ 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"
|
|
|
|
+ xmlns:local="clr-namespace:PDF_Office.CustomControl.CompositeControl"
|
|
|
|
+ mc:Ignorable="d"
|
|
|
|
+ d:DesignHeight="450" d:DesignWidth="800"
|
|
|
|
+ Loaded="UserControl_Loaded"
|
|
|
|
+ >
|
|
|
|
+ <UserControl.Resources>
|
|
|
|
+ <ResourceDictionary>
|
|
|
|
+ <ResourceDictionary.MergedDictionaries>
|
|
|
|
+ <ResourceDictionary Source="../../Styles/SliderStyle.xaml"></ResourceDictionary>
|
|
|
|
+ <ResourceDictionary Source="../../Styles/CustomBtnStyle.xaml"/>
|
|
|
|
+ </ResourceDictionary.MergedDictionaries>
|
|
|
|
+
|
|
|
|
+ </ResourceDictionary>
|
|
|
|
+ </UserControl.Resources>
|
|
|
|
+ <Grid>
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
|
+ <RowDefinition />
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
+ <TextBlock x:Name="thicknessText" FontFamily="Segoe UI Semibold" FontWeight="SemiBold" FontSize="14" LineHeight="20" Margin="12,14,0,0" >Thickness</TextBlock>
|
|
|
|
+
|
|
|
|
+ <Grid Grid.Row="1">
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
+ <ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
|
+ <ColumnDefinition Width="auto"></ColumnDefinition>
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
+
|
|
|
|
+ <Slider Name="ThicknessSlider" VerticalAlignment="Center" Margin="12,0,0,0" Width="148" Minimum="0" Maximum="24" IsSelectionRangeEnabled="True" IsMoveToPointEnabled="True"
|
|
|
|
+ Style="{StaticResource RoundThumbSlider}" TickFrequency="1" IsSnapToTickEnabled="True" >
|
|
|
|
+ <Slider.Resources>
|
|
|
|
+ <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="#477EDE" />
|
|
|
|
+ <SolidColorBrush x:Key="{x:Static SystemColors.ControlDarkDarkBrushKey}" Color="#E2E3E6" />
|
|
|
|
+ </Slider.Resources>
|
|
|
|
+ </Slider>
|
|
|
|
+
|
|
|
|
+ <Border Grid.Column="1" BorderBrush="#E2E3E6" Width="80" Height="32" Margin="0,0,11,0" BorderThickness="0">
|
|
|
|
+ <Grid>
|
|
|
|
+ <ComboBox Name="ThicknessBox" BorderThickness="1" Padding="10" Background="Transparent" BorderBrush="#FFE2E3E6"
|
|
|
|
+ MaxDropDownHeight="200">
|
|
|
|
+ <ComboBox.ItemContainerStyle>
|
|
|
|
+ <Style TargetType="{x:Type ComboBoxItem}">
|
|
|
|
+ <Setter Property="Padding" Value="10 0 0 0"/>
|
|
|
|
+ </Style>
|
|
|
|
+ </ComboBox.ItemContainerStyle>
|
|
|
|
+ <ComboBoxItem Content="1" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
|
|
|
|
+ <ComboBoxItem Content="3" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
|
|
|
|
+ <ComboBoxItem Content="6" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
|
|
|
|
+ <ComboBoxItem Content="9" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
|
|
|
|
+ <ComboBoxItem Content="12" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
|
|
|
|
+ <ComboBoxItem Content="15" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
|
|
|
|
+ <ComboBoxItem Content="18" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
|
|
|
|
+ <ComboBoxItem Content="21" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
|
|
|
|
+ <ComboBoxItem Content="24" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
|
|
|
|
+ </ComboBox>
|
|
|
|
+ <TextBox Name="ThicknessText" Background="White" FontFamily="Segoe UI" FontSize="14" Height="20" Margin="10,0,35,0" IsReadOnly="True"
|
|
|
|
+ BorderThickness="0" VerticalAlignment="Center" TextAlignment="Left" >
|
|
|
|
+ </TextBox>
|
|
|
|
+ </Grid>
|
|
|
|
+ </Border>
|
|
|
|
+ </Grid>
|
|
|
|
+ </Grid>
|
|
|
|
+
|
|
|
|
+</UserControl>
|