123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505 |
- <UserControl x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.SharpsAnnotProperty"
- 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.Views.PropertyPanel.AnnotPanel"
- xmlns:cus="clr-namespace:PDF_Office.CustomControl"
- xmlns:Convert="clr-namespace:PDF_Office.DataConvert"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800">
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="../../../Styles/SliderStyle.xaml"></ResourceDictionary>
- </ResourceDictionary.MergedDictionaries>
- <Convert:ColorToBrushConverter x:Key="ColorToBrushConvert"></Convert:ColorToBrushConverter>
- <Convert:CheckToVisibleMutiConvert x:Key="CheckToVisibleMutiConvert"/>
- <Style x:Key="line1Style" TargetType="{x:Type Line}">
- <Setter Property="Visibility">
- <Setter.Value>
- <MultiBinding Converter="{StaticResource CheckToVisibleMutiConvert}">
- <Binding ElementName="SharpRectBtn" Path="IsChecked"/>
- <Binding ElementName="SharpCircleBtn" Path="IsChecked"/>
- </MultiBinding>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="line2Style" TargetType="{x:Type Line}">
- <Setter Property="Visibility">
- <Setter.Value>
- <MultiBinding Converter="{StaticResource CheckToVisibleMutiConvert}">
- <Binding ElementName="SharpCircleBtn" Path="IsChecked"/>
- <Binding ElementName="SharpArrowBtn" Path="IsChecked"/>
- </MultiBinding>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="line3Style" TargetType="{x:Type Line}">
- <Setter Property="Visibility">
- <Setter.Value>
- <MultiBinding Converter="{StaticResource CheckToVisibleMutiConvert}">
- <Binding ElementName="SharpArrowBtn" Path="IsChecked"/>
- <Binding ElementName="SharpLineBtn" Path="IsChecked"/>
- </MultiBinding>
- </Setter.Value>
- </Setter>
- </Style>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid Background="Wheat">
- <StackPanel>
- <TextBlock Name="AnnotTypeTitle" FontFamily="SegoeUI" FontWeight="Bold" FontSize="18" LineHeight="24" HorizontalAlignment="Center" Margin="0,8,0,0">Freehand</TextBlock>
- <Border Width="232" Height="80" BorderThickness="1" BorderBrush="#E2E3E6" Margin="0,8,0,0">
- <Grid>
- <!--<Path Name="SharpPath" Opacity="{Binding ElementName=OpacitySlider,Path=Value}" StrokeThickness="{Binding ElementName=ThicknessSlider,Path=Value}"
- Stroke="{Binding ElementName=BorderColorPicker,Path=SelectedColor,Converter={StaticResource ColorToBrushConvert}}"
- Fill="{Binding ElementName=FillColorPicker,Path=SelectedColor,Converter={StaticResource ColorToBrushConvert}}"
- Width="36" Height="36" HorizontalAlignment="Center" VerticalAlignment="Center">
- </Path>-->
- </Grid>
- </Border>
- <Border Width="162" Height="32" Margin="0,12,0,0" BorderThickness="1" BorderBrush="#FFE2E3E6">
- <Grid Name="ToolGrid">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="40.5"></ColumnDefinition>
- <ColumnDefinition Width="40.5"></ColumnDefinition>
- <ColumnDefinition Width="40.5"></ColumnDefinition>
- <ColumnDefinition Width="40.5"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <ToggleButton Name="SharpRectBtn" Tag="Rect" Width="40.5" Background="Transparent" BorderThickness="0">
- <Rectangle HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" Height="16" Stroke="#273C62"></Rectangle>
- </ToggleButton>
- <Line Name="line1" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Column="1" X1="0" Y1="0" X2="0" Y2="16" StrokeThickness="1" Stroke="#33000000">
- </Line>
- <ToggleButton Name="SharpCircleBtn" Width="40.5" Tag="Circle" Grid.Column="1" Background="Transparent" BorderThickness="0" Margin="0,0,0,0">
- <Ellipse Width="16" Height="16" Stroke="#273C62" HorizontalAlignment="Center" VerticalAlignment="Center" ></Ellipse>
- </ToggleButton>
- <Line Name="line2" HorizontalAlignment="Left" Style="{StaticResource line2Style}" VerticalAlignment="Center" Grid.Column="2" X1="0" Y1="0" X2="0" Y2="16" StrokeThickness="1" Stroke="#33000000"></Line>
- <ToggleButton Name="SharpArrowBtn" Width="40.5" Tag="Arrow" Grid.Column="2" Background="Transparent" BorderThickness="0" >
- <Path HorizontalAlignment="Center" VerticalAlignment="Center" Fill="#273C62" Width="16" Height="16">
- <Path.Data>
- M13.4,2.6 L13.4,8 L12.2,8 L12.1997359,4.648 L2.02426407,14.8242641 L1.17573593,13.9757359 L11.3517359,3.799 L8,3.8 L8,2.6 L13.4,2.6 Z
- </Path.Data>
- </Path>
- </ToggleButton>
- <Line x:Name="line3" HorizontalAlignment="Left" Style="{StaticResource line3Style}" VerticalAlignment="Center" Grid.Column="3" X1="0" Y1="0" X2="0" Y2="16" StrokeThickness="1" Stroke="#33000000"></Line>
- <ToggleButton Name="SharpLineBtn" Width="40.5" Tag="Line" Grid.Column="3" Background="Transparent" BorderThickness="0">
- <Polygon Width="16" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center" Fill="#273C62">
- <Polygon.Points>
- 13.1757359 1.97573593 14.0242641 2.82426407 2.82426407 14.0242641 1.97573593 13.1757359
- </Polygon.Points>
- </Polygon>
- </ToggleButton>
- </Grid>
- </Border>
- <Grid Margin="0,18,0,0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"></ColumnDefinition>
- <ColumnDefinition Width="*"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <TextBlock x:Name="borderColorText" LineHeight="20" Margin="12,0,0,0" VerticalAlignment="Center">Border</TextBlock>
- <cus:ColorDropBox x:Name="BorderColorPicker" Grid.Column="1" Margin="0,0,12,0" BorderThickness="1" HorizontalAlignment="Right"
- BorderBrush="#E2E3E6" Width="80" Height="32" ></cus:ColorDropBox>
- </Grid>
- <Grid Margin="0,18,0,0" Name="FillGrid">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"></ColumnDefinition>
- <ColumnDefinition Width="*"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <TextBlock x:Name="FillColorText" LineHeight="20" Margin="12,0,0,0" VerticalAlignment="Center">Fill</TextBlock>
- <cus:ColorDropBox x:Name="FillColorPicker" Grid.Column="1" Margin="0,0,12,0" BorderThickness="1" HorizontalAlignment="Right" HasTransparentColor="True"
- BorderBrush="#E2E3E6" Width="80" Height="32" ></cus:ColorDropBox>
- </Grid>
- <Grid Margin="12,18,0,0" Name="ArrowGrid" Visibility="Visible">
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"></RowDefinition>
- <RowDefinition Height="auto"></RowDefinition>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto"></ColumnDefinition>
- <ColumnDefinition Width="auto"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <TextBlock x:Name="StartAndEndText" Grid.ColumnSpan="2" LineHeight="20" Margin="0,6,0,0" VerticalAlignment="Center">Start & End</TextBlock>
- <Border Grid.Row="1" BorderBrush="#E2E3E6" BorderThickness="0" Width="115" Height="32">
- <Grid>
- <ComboBox Name="StartArrowBox" Background="Transparent" BorderThickness="1" BorderBrush="#FFE2E3E6" IsReadOnly="True"
- MaxDropDownHeight="200">
- <ComboBox.ItemContainerStyle>
- <Style TargetType="{x:Type ComboBoxItem}">
- <Setter Property="Padding" Value="25 0 0 0"/>
- </Style>
- </ComboBox.ItemContainerStyle>
- <ComboBoxItem VerticalAlignment="Center" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
- <Path Fill="#000000" Tag="Line" Height="20">
- <Path.Data>
- F1 M40,16z M0,0z M34,7.5L34,7.5 34,8.5 6,8.5 6,7.5z
- </Path.Data>
- </Path>
- </ComboBoxItem>
- <ComboBoxItem VerticalAlignment="Center" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
- <Path Fill="#000000" Tag="Arrow" Height="20">
- <Path.Data>
- F1 M40,16z M0,0z M10.7427521,4.57125354L11.2572479,5.42874646 7.80417468,7.49925354 34,7.5 34,8.5 7.80417468,8.49925354 11.2572479,10.5712535 10.7427521,11.4287465 5.02817468,8 10.7427521,4.57125354z
- </Path.Data>
- </Path>
- </ComboBoxItem>
- <ComboBoxItem VerticalAlignment="Center" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
- <Path Fill="#000000" Tag="CloseArrow" Height="20">
- <Path.Data>
- F1 M40,16z M0,0z M11.5,4.11690481L11.4991747,7.49990481 34,7.5 34,8.5 11.4991747,8.49990481 11.5,11.8830952 5.02817468,8 11.5,4.11690481z
- </Path.Data>
- </Path>
- </ComboBoxItem>
- <ComboBoxItem VerticalAlignment="Center" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
- <Path Fill="#000000" Tag="Square" Height="20">
- <Path.Data>
- M11.5,5 L11.5,7.5 L34,7.5 L34,8.5 L11.5,8.5 L11.5,11 L5.5,11 L5.5,5 L11.5,5 Z
- </Path.Data>
- </Path>
- </ComboBoxItem>
- <ComboBoxItem VerticalAlignment="Center" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
- <Path Fill="#000000" Tag="Circle" Height="20">
- <Path.Data>
- M8.5,5 C9.98660106,5 11.2206526,6.08129303 11.4585702,7.50029469 L34,7.5 L34,8.5 L11.4584039,8.50069618 C11.2200781,9.9192103 9.98625501,11 8.5,11 C6.84314575,11 5.5,9.65685425 5.5,8 C5.5,6.34314575 6.84314575,5 8.5,5 Z
- </Path.Data>
- </Path>
- </ComboBoxItem>
- <ComboBoxItem VerticalAlignment="Center" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
- <Path Fill="#000000" Tag="Diamond" Height="20">
- <Path.Data>
- M9,4.29289322 L12.2068932,7.49989322 L34,7.5 L34,8.5 L12.2068932,8.49989322 L9,11.7071068 L5.29289322,8 L9,4.29289322 Z
- </Path.Data>
- </Path>
- </ComboBoxItem>
- <ComboBoxItem VerticalAlignment="Center" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
- <Path Fill="#000000" Tag="Butt" Height="20">
- <Path.Data>
- M7.5,5.5 L7.5,7.5 L34,7.5 L34,8.5 L7.5,8.5 L7.5,10.5 L6.5,10.5 L6.5,5.5 L7.5,5.5 Z
- </Path.Data>
- </Path>
- </ComboBoxItem>
- <ComboBoxItem VerticalAlignment="Center" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
- <Path Fill="#000000" Tag="RArrow" Height="20">
- <Path.Data>
- M5.58660083,5.07600085 L9.46460189,7.49900085 L34,7.5 L34,8.5 L9.46460189,8.49900085 L5.58660083,10.9239992 L5.05660189,10.0760008 L8.37960136,8 L5.05660189,5.92399915 L5.58660083,5.07600085 Z
- </Path.Data>
- </Path>
- </ComboBoxItem>
- <ComboBoxItem VerticalAlignment="Center" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
- <Path Fill="#000000" Tag="RCloseArrow" Height="20">
- <Path.Data>
- M5.5,4.59787618 L10.143,7.49987618 L34,7.5 L34,8.5 L10.143,8.49987618 L5.5,11.4021238 L5.5,4.59787618 Z
- </Path.Data>
- </Path>
- </ComboBoxItem>
- <ComboBoxItem VerticalAlignment="Center" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
- <Path Fill="#000000" Tag="Slash" Height="20">
- <Path.Data>
- M9.531981,5.84644661 L10.239087,6.55355339 L9.292447,7.49944661 L34,7.5 L34,8.5 L8.292447,8.49944661 L6.703553,10.0890873 L5.996447,9.38198052 L9.531981,5.84644661 Z
- </Path.Data>
- </Path>
- </ComboBoxItem>
- </ComboBox>
- <TextBox Background="White" Height="20" Margin="10,0,35,0"
- BorderThickness="0" VerticalAlignment="Center" IsReadOnly="True">
- </TextBox>
- <Path Name="StartArrowPath" VerticalAlignment="Center" Fill="#000000" Width="56" Height="16" Margin="30,8,0,8" HorizontalAlignment="Left"></Path>
-
- </Grid>
- </Border>
- <Border Grid.Row="1" Grid.Column="1" BorderBrush="#E2E3E6" BorderThickness="0" Width="115" Height="32" Margin="4,0,0,0">
- <Grid>
- <ComboBox Name="EndArrowBox" Background="Transparent" BorderBrush="#FFE2E3E6" BorderThickness="1" IsReadOnly="True"
- MaxDropDownHeight="200">
- <ComboBox.ItemContainerStyle>
- <Style TargetType="{x:Type ComboBoxItem}">
- <Setter Property="Padding" Value="25 0 0 0"/>
- </Style>
- </ComboBox.ItemContainerStyle>
- <ComboBoxItem VerticalAlignment="Center" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
- <Path Fill="#000000" Tag="Line" Height="20">
- <Path.Data>
- F1 M40,16z M0,0z M34,7.5L34,7.5 34,8.5 6,8.5 6,7.5z
- </Path.Data>
- </Path>
- </ComboBoxItem>
- <ComboBoxItem VerticalAlignment="Center" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
- <Path Fill="#000000" Tag="Arrow" Height="20">
- <Path.Data>
- F1 M40,16z M0,0z M10.7427521,4.57125354L11.2572479,5.42874646 7.80417468,7.49925354 34,7.5 34,8.5 7.80417468,8.49925354 11.2572479,10.5712535 10.7427521,11.4287465 5.02817468,8 10.7427521,4.57125354z
- </Path.Data>
- <Path.LayoutTransform>
- <RotateTransform Angle="180"></RotateTransform>
- </Path.LayoutTransform>
- </Path>
- </ComboBoxItem>
- <ComboBoxItem VerticalAlignment="Center" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
- <Path Fill="#000000" Tag="CloseArrow" Height="20">
- <Path.Data>
- F1 M40,16z M0,0z M11.5,4.11690481L11.4991747,7.49990481 34,7.5 34,8.5 11.4991747,8.49990481 11.5,11.8830952 5.02817468,8 11.5,4.11690481z
- </Path.Data>
- <Path.LayoutTransform>
- <RotateTransform Angle="180"></RotateTransform>
- </Path.LayoutTransform>
- </Path>
- </ComboBoxItem>
- <ComboBoxItem VerticalAlignment="Center" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
- <Path Fill="#000000" Tag="Square" Height="20" Margin="6,0,0,0" >
- <Path.Data>
- M11.5,5 L11.5,7.5 L34,7.5 L34,8.5 L11.5,8.5 L11.5,11 L5.5,11 L5.5,5 L11.5,5 Z
- </Path.Data>
- <Path.LayoutTransform>
- <RotateTransform Angle="180"></RotateTransform>
- </Path.LayoutTransform>
- </Path>
- </ComboBoxItem>
- <ComboBoxItem VerticalAlignment="Center" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
- <Path Fill="#000000" Tag="Circle" Height="20" Margin="6,0,0,0" >
- <Path.Data>
- M8.5,5 C9.98660106,5 11.2206526,6.08129303 11.4585702,7.50029469 L34,7.5 L34,8.5 L11.4584039,8.50069618 C11.2200781,9.9192103 9.98625501,11 8.5,11 C6.84314575,11 5.5,9.65685425 5.5,8 C5.5,6.34314575 6.84314575,5 8.5,5 Z
- </Path.Data>
- <Path.LayoutTransform>
- <RotateTransform Angle="180"></RotateTransform>
- </Path.LayoutTransform>
- </Path>
- </ComboBoxItem>
- <ComboBoxItem VerticalAlignment="Center" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
- <Path Fill="#000000" Tag="Diamond" Height="20" Margin="6,0,0,0" >
- <Path.Data>
- M9,4.29289322 L12.2068932,7.49989322 L34,7.5 L34,8.5 L12.2068932,8.49989322 L9,11.7071068 L5.29289322,8 L9,4.29289322 Z
- </Path.Data>
- <Path.LayoutTransform>
- <RotateTransform Angle="180"></RotateTransform>
- </Path.LayoutTransform>
- </Path>
- </ComboBoxItem>
- <ComboBoxItem VerticalAlignment="Center" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
- <Path Fill="#000000" Tag="Butt" Height="20" Margin="6,0,0,0" >
- <Path.Data>
- M7.5,5.5 L7.5,7.5 L34,7.5 L34,8.5 L7.5,8.5 L7.5,10.5 L6.5,10.5 L6.5,5.5 L7.5,5.5 Z
- </Path.Data>
- <Path.LayoutTransform>
- <RotateTransform Angle="180"></RotateTransform>
- </Path.LayoutTransform>
- </Path>
- </ComboBoxItem>
- <ComboBoxItem VerticalAlignment="Center" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
- <Path Fill="#000000" Tag="RArrow" Height="20" Margin="6,0,0,0" >
- <Path.Data>
- M5.58660083,5.07600085 L9.46460189,7.49900085 L34,7.5 L34,8.5 L9.46460189,8.49900085 L5.58660083,10.9239992 L5.05660189,10.0760008 L8.37960136,8 L5.05660189,5.92399915 L5.58660083,5.07600085 Z
- </Path.Data>
- <Path.LayoutTransform>
- <RotateTransform Angle="180"></RotateTransform>
- </Path.LayoutTransform>
- </Path>
- </ComboBoxItem>
- <ComboBoxItem VerticalAlignment="Center" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
- <Path Fill="#000000" Tag="RCloseArrow" Height="20" Margin="6,0,0,0" >
- <Path.Data>
- M5.5,4.59787618 L10.143,7.49987618 L34,7.5 L34,8.5 L10.143,8.49987618 L5.5,11.4021238 L5.5,4.59787618 Z
- </Path.Data>
- <Path.LayoutTransform>
- <RotateTransform Angle="180"></RotateTransform>
- </Path.LayoutTransform>
- </Path>
- </ComboBoxItem>
- <ComboBoxItem VerticalAlignment="Center" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
- <Path Fill="#000000" Tag="Slash" Height="20" Margin="6,0,0,0" >
- <Path.Data>
- M9.531981,5.84644661 L10.239087,6.55355339 L9.292447,7.49944661 L34,7.5 L34,8.5 L8.292447,8.49944661 L6.703553,10.0890873 L5.996447,9.38198052 L9.531981,5.84644661 Z
- </Path.Data>
- <Path.LayoutTransform>
- <RotateTransform Angle="180"></RotateTransform>
- </Path.LayoutTransform>
- </Path>
- </ComboBoxItem>
- </ComboBox>
- <TextBox Background="White" Height="20" Margin="10,0,35,0"
- BorderThickness="0" VerticalAlignment="Center" IsReadOnly="True">
- </TextBox>
- <Path Name="EndArrowPath" Fill="#000000" Width="56" Height="16" Margin="12,8,0,8" HorizontalAlignment="Left">
- <Path.LayoutTransform>
- <RotateTransform Angle="180"></RotateTransform>
- </Path.LayoutTransform>
- </Path>
- </Grid>
- </Border>
- </Grid>
- <TextBlock x:Name="LineStyleText" LineHeight="20" Margin="12,14,0,0">Line Style</TextBlock>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto"></ColumnDefinition>
- <ColumnDefinition Width="auto"></ColumnDefinition>
- <ColumnDefinition Width="*"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"></RowDefinition>
- <RowDefinition Height="auto"></RowDefinition>
- </Grid.RowDefinitions>
- <Viewbox Height="18" Width="18" Margin="12,12,10,0">
- <RadioButton Tag="SolidLine" Name="SolidLineBtn" GroupName="LineStyleGroup" IsChecked="True" ></RadioButton>
- </Viewbox>
- <Line Name="SolidLineControl" Margin="0,12,0,0" Grid.Column="1" Stroke="#000000" StrokeThickness="2" X1="0" Y1="0" X2="112" Y2="0" VerticalAlignment="Center"></Line>
- <Viewbox Grid.Row="1" Height="18" Width="18" Margin="12,22,10,0">
- <RadioButton Tag="DashLine" Name="DashLineBtn" GroupName="LineStyleGroup" VerticalAlignment="Center"/>
- </Viewbox>
- <Line Name="DashLineControl" Margin="0,22,0,0" Grid.Row="1" Grid.Column="1" Stroke="#000000" StrokeThickness="2" X1="0" Y1="0" X2="112" Y2="0" VerticalAlignment="Center" StrokeDashArray="0,1,1"></Line>
- <!--<cus:AutoNumber x:Name="NumberBox" Grid.Row="1" Grid.Column="2" Width="80" Height="32" Margin="0,22,0,0" Maximum="50" Minimum="1" TickFrequency="1" Current="1"
- BorderBrush="#FFE2E3E6" BorderThickness="1" IsEnabled="False" NumberChanged="NumberBox_NumberChanged">
- <local:AutoNumber.Resources>
- <Style TargetType="local:AutoNumber">
- <Style.Triggers>
- <Trigger Property="IsEnabled" Value="False">
- <Setter Property = "Background" Value="LightGray"/>
- </Trigger>
- <Trigger Property="IsEnabled" Value="True">
- <Setter Property = "Background" Value="White"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- </local:AutoNumber.Resources>
- </cus:AutoNumber>-->
- </Grid>
- <TextBlock x:Name="thicknessText" LineHeight="20" Margin="12,14,0,0" >Thickness</TextBlock>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"></ColumnDefinition>
- <ColumnDefinition Width="auto"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Slider Name="ThicknessSlider" VerticalAlignment="Center" Margin="12,0,4,0" Minimum="1" Maximum="12" 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,12,0" BorderThickness="0">
- <Grid>
- <ComboBox Name="ThicknessDropBox" BorderThickness="1" Padding="10 10 0 0" Background="Transparent" BorderBrush="#FFE2E3E6" >
- <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}"/>
- </ComboBox>
- <TextBox FontFamily="Segoe UI" FontSize="14" Background="White" Padding="0" Height="20" Margin="10,0,35,0" IsReadOnly="True"
- BorderThickness="0" VerticalAlignment="Center" TextAlignment="Left" Text="{Binding ElementName=ThicknessSlider,Path=Value}">
- </TextBox>
- </Grid>
- </Border>
- </Grid>
- <TextBlock x:Name="opacityText" LineHeight="20" Margin="12,14,0,0" >Opacity</TextBlock>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"></ColumnDefinition>
- <ColumnDefinition Width="auto"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Slider Name="OpacitySlider" VerticalAlignment="Center" Margin="12,0,4,0" Minimum="0" Maximum="1" IsSelectionRangeEnabled="True" IsMoveToPointEnabled="True"
- 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" BorderBrush="#E2E3E6" Width="80" Height="32" Margin="0,0,12,0" BorderThickness="0">
- <Grid>
- <ComboBox Name="OpacityDropBox" BorderThickness="1" Padding="10 10 0 0" Background="Transparent" BorderBrush="#FFE2E3E6">
- <ComboBox.ItemContainerStyle>
- <Style TargetType="{x:Type ComboBoxItem}">
- <Setter Property="Padding" Value="10 0 0 0"/>
- </Style>
- </ComboBox.ItemContainerStyle>
- <ComboBoxItem Content="25%" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}" />
- <ComboBoxItem Content="50%" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
- <ComboBoxItem Content="75%" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
- <ComboBoxItem Content="100%" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
- </ComboBox>
- <TextBox FontFamily="Segoe UI" FontSize="14" Background="White" Height="20" Margin="10,0,23,0"
- BorderThickness="0" VerticalAlignment="Center" TextAlignment="Left" IsReadOnly="True">
- <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>
- <StackPanel Margin="0 36 0 0">
- <cus:ToastControl x:Name="tip" Width="auto" Height="20" FontSize="12" Background="#1A477EDE" Foreground="#477EDE"/>
- <Button x:Name="UseAsDefaultBtn" Content="Use As Default" Margin="12,8,12,0" Width="232" Height="32" Foreground="#273C62" FontWeight="SemiBold"
- Background="White" BorderThickness="1" BorderBrush="#273C62" FontFamily="SegoeUI" FontSize="14" ></Button>
- </StackPanel>
- <TextBlock x:Name="noteText" Text="Note" LineHeight="20" Margin="12,30,0,0"></TextBlock>
- <TextBox Name="AnnotNoteText" FontSize="14" TextWrapping="Wrap" BorderBrush="#E2E3E6" Width="232" Height="96" Margin="12,10,12,0" AcceptsReturn="True">
- </TextBox>
- </StackPanel>
- </Grid>
- </UserControl>
|