StickyNoteProperty.xaml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <UserControl x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.StickyNoteProperty"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:PDF_Office.Views.PropertyPanel.AnnotPanel"
  7. xmlns:AnnotPanel="clr-namespace:PDF_Office.ViewModels.PropertyPanel.AnnotPanel"
  8. d:DataContext="{d:DesignInstance Type=AnnotPanel:StickyNotePropertyViewModel}"
  9. xmlns:CompositeControl="clr-namespace:PDF_Office.CustomControl.CompositeControl"
  10. xmlns:Convert="clr-namespace:PDF_Office.ViewModels.PropertyPanel.AnnotPanel"
  11. mc:Ignorable="d"
  12. Loaded="UserControl_Loaded"
  13. Unloaded="UserControl_Unloaded"
  14. d:DesignHeight="450" d:DesignWidth="800">
  15. <UserControl.Resources>
  16. <ResourceDictionary>
  17. <ResourceDictionary.MergedDictionaries>
  18. <ResourceDictionary Source="../../../Styles/SliderStyle.xaml"></ResourceDictionary>
  19. </ResourceDictionary.MergedDictionaries>
  20. <Convert:AnnotArgsTypeConverter x:Key="AnnotArgsTypeConverter"/>
  21. </ResourceDictionary>
  22. </UserControl.Resources>
  23. <Grid VerticalAlignment="Stretch" Background="#F3F3F3">
  24. <StackPanel Margin="12 0 12 0">
  25. <TextBlock Name="AnnotTypeTitle" FontFamily="Segoe UI" FontWeight="Bold" FontSize="18" LineHeight="24" HorizontalAlignment="Left" Margin="0,16,0,8"
  26. Text="便签"
  27. ></TextBlock>
  28. <Border Width="228" Height="100" BorderThickness="1" CornerRadius="2" BorderBrush="#DDDDDD" Background="White" Margin="0,8,0,0">
  29. <Grid VerticalAlignment="Center" HorizontalAlignment="Center">
  30. <Path Data="{Binding ExmpleData}" Fill="{Binding SharpColor}" Opacity="{Binding Transpent}"/>
  31. </Grid>
  32. </Border>
  33. <Grid Margin="0,18,0,0">
  34. <Grid.RowDefinitions>
  35. <RowDefinition Height="auto"/>
  36. <RowDefinition/>
  37. </Grid.RowDefinitions>
  38. <CompositeControl:SlidContent x:Name="SlidOpacity" HorizontalAlignment="Right">
  39. </CompositeControl:SlidContent>
  40. <CompositeControl:ColorContent Grid.Row="1" x:Name="cusColor" />
  41. </Grid>
  42. </StackPanel>
  43. </Grid>
  44. </UserControl>