1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <UserControl x:Class="compdfkit_tools.PDFControlUI.CPDFScalingUI"
- 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:compdfkit_tools.PDFControlUI"
- xmlns:cpdfcommon="clr-namespace:compdfkit_tools.Common"
- mc:Ignorable="d"
- d:DesignHeight="30" d:DesignWidth="162">
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="pack://application:,,,/compdfkit-assets;component/Styles/ToggleButtonStyle.xaml"></ResourceDictionary>
- <ResourceDictionary Source="pack://application:,,,/compdfkit-assets;component/Styles/ButtonStyle.xaml"></ResourceDictionary>
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid Height="30" Width="160" HorizontalAlignment="Left">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="72"></ColumnDefinition>
- <ColumnDefinition Width="73"></ColumnDefinition>
- <ColumnDefinition Width="17"/>
- </Grid.ColumnDefinitions>
- <StackPanel Orientation="Horizontal" Height="30">
- <cpdfcommon:DropDownNumberBoxControl x:Name="DropDownNumberBoxControl" Height="30" Width=" 72" Unit="%" Maxium="1600" Minimum="0" Text="{Binding Scale,Mode=TwoWay}"></cpdfcommon:DropDownNumberBoxControl>
- </StackPanel>
- <StackPanel Grid.Column="1" Orientation="Horizontal" Grid.ColumnSpan="2">
- <Button x:Name="ScaleDecreaseButton" Style="{StaticResource LightButtonStyle}" Height="30" Width="30" Margin="20,0,0,0" Background="Transparent" BorderThickness="0" Click="ScaleDecreaseButton_Click">
- <Button.Content>
- <Rectangle Width="12" Height="2" Fill="#0E1114"></Rectangle>
- </Button.Content>
- </Button>
- <Button x:Name="ScaleIncreaseButton" Height="30" Width="30" BorderThickness="0" Background="Transparent" Margin="10,0,0,0" Click="ScaleIncreaseButton_Click">
- <Button.Content>
- <Path Fill="#0E1114">
- <Path.Data>
- M7.625 6.375V0.75H6.375V6.375H0.75V7.625H6.375V13.25H7.625V7.625H13.25V6.375H7.625Z
- </Path.Data>
- </Path>
- </Button.Content>
- </Button>
- </StackPanel>
- </Grid>
- </UserControl>
|