123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <UserControl x:Class="ComPDFKit.Controls.Edit.CPDFImageRotateUI"
- 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.Controls.Edit"
- xmlns:common="clr-namespace:ComPDFKit.Controls.Common"
- mc:Ignorable="d"
- d:DesignHeight="150" d:DesignWidth="300">
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="../../../Asset/Styles/ButtonStyle.xaml"></ResourceDictionary>
- </ResourceDictionary.MergedDictionaries>
- <common:PropertyPanelResourceConverter x:Key="PropertyPanelResourceConverter"></common:PropertyPanelResourceConverter>
- </ResourceDictionary>
- </UserControl.Resources>
-
- <StackPanel Name="ImageRotateUI">
- <Grid>
- <TextBlock VerticalAlignment="Center" Margin="0,10,10,0" FontSize="14" Foreground="#43474D" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_Rotate}"></TextBlock>
- </Grid>
- <Grid Margin="0,14,0,0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"></ColumnDefinition>
- <ColumnDefinition Width="*"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Button Style="{StaticResource LightButtonStyle}" Background="White" BorderBrush="#1A000000" Margin="0,0,10,0" Padding="0,5,0,5" BorderThickness="1" Click="RotateLeftBtn_Click">
- <StackPanel Orientation="Horizontal">
- <Path Fill="#43474D">
- <Path.Data>
- M6.14645 2.2678L5.79289 2.62136L6.14645 2.97491L8.26777 5.09623L8.97487 4.38912L7.63584 3.05009L7.94232 3.07352C10.8082 3.5253 13 6.00716
- 13 9.00002C13 12.3137 10.3137 15 7 15C3.68629 15 1 12.3137 1 9.00002C1 7.015 1.96344 5.25508 3.45037 4.16211L2.85811 3.35637C1.12586
- 4.62966 0 6.6834 0 9.00002C0 12.866 3.13401 16 7 16C10.866 16 14 12.866 14 9.00002C14 5.49979 11.4314 2.6004 8.0763 2.08232C7.97978
- 2.06742 7.88263 2.05449 7.78489 2.04358L8.97487 0.853591L8.26777 0.146484L6.14645 2.2678Z
- </Path.Data>
- </Path>
- <TextBlock FontSize="14" Foreground="#43474D" Margin="8,0,0,0" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Button_Left}"></TextBlock>
- </StackPanel>
- </Button>
- <Button Style="{StaticResource LightButtonStyle}" Background="White" BorderBrush="#1A000000" Grid.Column="1" Margin="10,0,0,0" Padding="0,5,0,5" BorderThickness="1" Click="RotateRightBtn_Click">
- <StackPanel Orientation="Horizontal">
- <Path Fill="#43474D">
- <Path.Data>
- M8.35355 2.2678L8.70711 2.62136L8.35355 2.97491L6.23223 5.09623L5.52513 4.38912L6.86416 3.05009L6.55768 3.07352C3.69176 3.5253 1.5 6.00716 1.5
- 9.00002C1.5 12.3137 4.18629 15 7.5 15C10.8137 15 13.5 12.3137 13.5 9.00002C13.5 7.015 12.5366 5.25508 11.0496 4.16211L11.6419 3.35637C13.3741
- 4.62966 14.5 6.6834 14.5 9.00002C14.5 12.866 11.366 16 7.5 16C3.63401 16 0.5 12.866 0.5 9.00002C0.5 5.49979 3.06855 2.6004 6.4237 2.08232C6.52022
- 2.06742 6.61737 2.05449 6.71511 2.04358L5.52513 0.853591L6.23223 0.146484L8.35355 2.2678Z
- </Path.Data>
- </Path>
- <TextBlock FontSize="14" Foreground="#43474D" Margin="8,0,0,0" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Button_Right}"></TextBlock>
- </StackPanel>
- </Button>
- </Grid>
- </StackPanel>
- </UserControl>
|