|
@@ -12,9 +12,14 @@
|
|
|
<ResourceDictionary>
|
|
|
<ResourceDictionary.MergedDictionaries>
|
|
|
<ResourceDictionary Source="../../../Styles/SliderStyle.xaml"></ResourceDictionary>
|
|
|
+ <ResourceDictionary Source="../../../Styles/CustomBtnStyle.xaml"/>
|
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
<Convert:ColorToBrushConverter x:Key="ColorToBrushConvert"></Convert:ColorToBrushConverter>
|
|
|
<Convert:CheckToVisibleMutiConvert x:Key="CheckToVisibleMutiConvert"/>
|
|
|
+ <DataTemplate x:Key="listboxData">
|
|
|
+ <Ellipse Height="20" Width="20" Fill="{Binding}"/>
|
|
|
+ </DataTemplate>
|
|
|
+
|
|
|
<Style x:Key="line1Style" TargetType="{x:Type Line}">
|
|
|
<Setter Property="Visibility">
|
|
|
<Setter.Value>
|
|
@@ -45,12 +50,36 @@
|
|
|
</Setter.Value>
|
|
|
</Setter>
|
|
|
</Style>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <ContextMenu x:Key="FlyoutMenu" FontSize="14"
|
|
|
+ >
|
|
|
+ <ContextMenu.ItemContainerStyle>
|
|
|
+ <Style TargetType="MenuItem">
|
|
|
+ <Setter Property="Padding" Value="0,7,0,7"/>
|
|
|
+ <Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
|
+ </Style>
|
|
|
+ </ContextMenu.ItemContainerStyle>
|
|
|
+ <MenuItem Name="ChangeColorMenuItem" Click="ChangeColorMenuItem_Click" Header="更改颜色" IsEnabled="True">
|
|
|
+ </MenuItem>
|
|
|
+ <MenuItem Name="BackColorMenuItem" Header="恢复默认颜色" IsEnabled="True">
|
|
|
+ </MenuItem>
|
|
|
+ </ContextMenu>
|
|
|
+
|
|
|
+ <Style x:Key="listboxItemStyle" TargetType="{x:Type ListBoxItem}">
|
|
|
+ <Setter Property="ContextMenu" Value="{StaticResource FlyoutMenu}"/>
|
|
|
+ <Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
|
+ <Setter Property="Margin" Value="2,0,2,0"/>
|
|
|
+ </Style>
|
|
|
+
|
|
|
</ResourceDictionary>
|
|
|
</UserControl.Resources>
|
|
|
- <Grid Background="Wheat">
|
|
|
+ <Grid Background="#F3F3F3">
|
|
|
<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">
|
|
|
+ <Border Width="228" Height="100" BorderThickness="1" CornerRadius="2" BorderBrush="#DDDDDD" Background="White" 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}}"
|
|
@@ -106,320 +135,76 @@
|
|
|
</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>
|
|
|
+ <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>
|
|
|
+ <local:ThicknessContent x:Name="layerFill" HorizontalAlignment="Right"/>
|
|
|
+ <Grid Grid.Row="1">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
+ <ColumnDefinition Width="auto"></ColumnDefinition>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <cus:ColorDropBox x:Name="ColorFillDropPicker" Grid.Column="1" BorderThickness="1" HorizontalAlignment="Right"
|
|
|
+ BorderBrush="#E2E3E6" Width="80" Height="32">
|
|
|
+ </cus:ColorDropBox>
|
|
|
+ <ListBox x:Name="ListColorFill" ItemContainerStyle="{StaticResource listboxItemStyle}" ItemTemplate="{StaticResource listboxData}" BorderThickness="0" Background="Transparent">
|
|
|
+ <ListBox.ItemsPanel>
|
|
|
+ <ItemsPanelTemplate>
|
|
|
+ <WrapPanel Orientation="Horizontal"/>
|
|
|
+ </ItemsPanelTemplate>
|
|
|
+ </ListBox.ItemsPanel>
|
|
|
+
|
|
|
+ </ListBox>
|
|
|
+ </Grid>
|
|
|
|
|
|
- </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 Margin="0,18,0,0">
|
|
|
<Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="auto"></RowDefinition>
|
|
|
- <RowDefinition Height="auto"></RowDefinition>
|
|
|
+ <RowDefinition Height="auto"/>
|
|
|
+ <RowDefinition/>
|
|
|
</Grid.RowDefinitions>
|
|
|
+ <local:ThicknessContent x:Name="layerThick" HorizontalAlignment="Right"/>
|
|
|
+ <Grid Grid.Row="1">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
+ <ColumnDefinition Width="auto"></ColumnDefinition>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <cus:ColorDropBox x:Name="ColorDropPicker" Grid.Column="1" BorderThickness="1" HorizontalAlignment="Right"
|
|
|
+ BorderBrush="#E2E3E6" Width="80" Height="32">
|
|
|
+ </cus:ColorDropBox>
|
|
|
+ <ListBox x:Name="ListColor" ItemContainerStyle="{StaticResource listboxItemStyle}" ItemTemplate="{StaticResource listboxData}" BorderThickness="0" Background="Transparent">
|
|
|
+ <ListBox.ItemsPanel>
|
|
|
+ <ItemsPanelTemplate>
|
|
|
+ <WrapPanel Orientation="Horizontal"/>
|
|
|
+ </ItemsPanelTemplate>
|
|
|
+ </ListBox.ItemsPanel>
|
|
|
+
|
|
|
+ </ListBox>
|
|
|
+ </Grid>
|
|
|
|
|
|
-
|
|
|
- <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 Name="BorderSlider" 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 Name="BorderDropBox" 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"/>
|
|
@@ -431,75 +216,31 @@
|
|
|
<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 FontFamily="Segoe UI" FontSize="14" Background="White" Height="20" Margin="10,0,35,0" IsReadOnly="True"
|
|
|
+ BorderThickness="0" VerticalAlignment="Center" TextAlignment="Left" Text="{Binding ElementName=BorderSlider,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 Orientation="Horizontal" Margin="0,20,0,0">
|
|
|
+ <cus:CustomIconToggleBtn x:Name="BtnListMode" Tag="Line" Width="110" Height="32"
|
|
|
+ Style="{StaticResource ToggleBtnViewModeStyle}">
|
|
|
+ <Border BorderBrush="Black" BorderThickness="1" Padding="8,0,8,0" Width="108" Height="30">
|
|
|
+ <Line X1="10" Y1="15" X2="260" Y2="15" Stroke="Black" StrokeThickness="2" />
|
|
|
+ </Border>
|
|
|
+ </cus:CustomIconToggleBtn>
|
|
|
+ <cus:CustomIconToggleBtn x:Name="BtnListMode1" Tag="Line" Width="110" Height="32"
|
|
|
+ Style="{StaticResource ToggleBtnViewModeStyle}">
|
|
|
+ <Border BorderBrush="Black" BorderThickness="1" Padding="8,0,8,0" Width="108" Height="30" >
|
|
|
+ <Line X1="10" Y1="15" X2="260" Y2="15" Stroke="Black" StrokeThickness="2" StrokeDashArray="2"/>
|
|
|
+ </Border>
|
|
|
+ </cus:CustomIconToggleBtn>
|
|
|
+ </StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
- <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>
|