1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <UserControl x:Class="PDF_Master.CustomControl.CompositeControl.SlidContentPop"
- 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_Master.CustomControl.CompositeControl"
- xmlns:mainpage="clr-namespace:PDF_Master.Strings.MainPage"
- mc:Ignorable="d"
- x:Name="usercontorls"
- d:DesignHeight="450" d:DesignWidth="800">
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="../../Styles/SliderStyle.xaml"></ResourceDictionary>
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
- <Border CornerRadius="4" BorderBrush="Transparent" Background="White" BorderThickness="2" Width="244" Height="84">
- <Border.Effect>
- <DropShadowEffect
- BlurRadius="5"
- Direction="0"
- Opacity="0.16"
- ShadowDepth="0"
- Color="#000000" />
- </Border.Effect>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <TextBlock Text="{x:Static mainpage:MainPage.Opacity_Title}" Margin="8,12,0,0"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition Width="auto"/>
- </Grid.ColumnDefinitions>
- <Slider Name="OpacitySlider" HorizontalAlignment="Stretch" VerticalAlignment="Center" Minimum="0" Maximum="1" IsSelectionRangeEnabled="True" IsSnapToTickEnabled="True" IsMoveToPointEnabled="True"
- Value="50" ValueChanged="OpacitySlider_ValueChanged"
- Style="{StaticResource RoundThumbSlider}" TickFrequency="0.01"
- >
- <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" Margin="16,0,8,0" HorizontalAlignment="Right" Background="Transparent" BorderBrush="#E2E3E6" Width="80" Height="32" BorderThickness="0">
- <Grid>
- <ComboBox Name="OpacityDropBox" SelectionChanged="OpacityDropBox_SelectionChanged" DropDownClosed="OpacityDropBox_DropDownClosed" DropDownOpened="OpacityDropBox_DropDownOpened" BorderThickness="1" Background="Transparent" BorderBrush="#FFE2E3E6">
- <ComboBoxItem Content="25%" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
- </ComboBoxItem>
- <ComboBoxItem Content="50%" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}" >
- </ComboBoxItem>
- <ComboBoxItem Content="75%" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
- </ComboBoxItem>
- <ComboBoxItem Content="100%" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}" >
- </ComboBoxItem>
- </ComboBox>
- <TextBox FontFamily="Segoe UI" FontSize="14" Background="White" Height="20" Margin="2,0,23,0" IsReadOnly="True"
- BorderThickness="0" VerticalAlignment="Center" TextAlignment="Center">
- <TextBox.Style>
- <Style TargetType="TextBox">
- <Style.Setters>
- <Setter Property="TextBox.Text">
- <Setter.Value>
- <MultiBinding StringFormat="P0">
- <Binding ElementName="OpacitySlider" Path="Value"></Binding>
- </MultiBinding>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
- </TextBox.Style>
- </TextBox>
- </Grid>
- </Border>
- </Grid>
- </Grid>
- </Border>
- </UserControl>
|