CPDFCloudUI.xaml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <UserControl x:Class="ComPDFKit.Controls.PDFControlUI.CPDFCloudUI"
  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:cpdfcommon="clr-namespace:ComPDFKit.Controls.Common"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:ComPDFKit.Controls.PDFControlUI"
  8. xmlns:cpdftools="clr-namespace:ComPDFKit.Controls.PDFControl"
  9. mc:Ignorable="d"
  10. d:DesignHeight="800" d:DesignWidth="300" Loaded="UserControl_Loaded" Unloaded="UserControl_Unloaded">
  11. <UserControl.Resources>
  12. <ResourceDictionary>
  13. <ResourceDictionary.MergedDictionaries>
  14. <ResourceDictionary Source="../../../Asset/Styles/ToggleButtonStyle.xaml"></ResourceDictionary>
  15. </ResourceDictionary.MergedDictionaries>
  16. <cpdfcommon:PropertyPanelResourceConverter x:Key="PropertyPanelResourceConverter"></cpdfcommon:PropertyPanelResourceConverter>
  17. </ResourceDictionary>
  18. </UserControl.Resources>
  19. <ScrollViewer VerticalScrollBarVisibility="Auto">
  20. <Grid Background="#FAFCFF">
  21. <StackPanel Orientation="Vertical">
  22. <Border BorderThickness="1" BorderBrush="#1A000000">
  23. <Grid Height="40" Background="White" >
  24. <TextBlock x:Name="TitleTextBlock" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Title_Cloud}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16" FontFamily="Microsoft YaHei"></TextBlock>
  25. </Grid>
  26. </Border>
  27. <StackPanel Name="CloudPanel" Orientation="Vertical">
  28. <StackPanel Height="75" Margin="5">
  29. <TextBlock Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_LineColor}"></TextBlock>
  30. <cpdfcommon:ColorPickerControl x:Name="ctlBorderColorPicker" TransparentBtnProperty="Collapsed" Brush="Red"></cpdfcommon:ColorPickerControl>
  31. </StackPanel>
  32. <StackPanel Height="75" Margin="5">
  33. <TextBlock Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_FillColor}"></TextBlock>
  34. <cpdfcommon:ColorPickerControl x:Name="ctlFillColorPicker" Brush="Transparent"></cpdfcommon:ColorPickerControl>
  35. </StackPanel>
  36. <StackPanel Height="80" Margin="5">
  37. <TextBlock Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_LineShape}"></TextBlock>
  38. <cpdfcommon:CPDFLineStyleControl x:Name="ctlLineStyle"></cpdfcommon:CPDFLineStyleControl>
  39. </StackPanel>
  40. <StackPanel Height="100" Margin="5">
  41. <TextBlock Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_LineStyle}"></TextBlock>
  42. <cpdfcommon:CPDFCloudStyleControl x:Name="CPDFLineShapeControl"></cpdfcommon:CPDFCloudStyleControl>
  43. </StackPanel>
  44. <StackPanel Height="75" Margin="5">
  45. <TextBlock Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_Opacity}"></TextBlock>
  46. <cpdfcommon:CPDFOpacityControl x:Name="CPDFOpacityControl"></cpdfcommon:CPDFOpacityControl>
  47. </StackPanel>
  48. <StackPanel Height="75" Margin="5">
  49. <TextBlock Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_LineWidth}"></TextBlock>
  50. <cpdfcommon:CPDFThicknessControl x:Name="CPDFThicknessControl"></cpdfcommon:CPDFThicknessControl>
  51. </StackPanel>
  52. <StackPanel Height="200" Margin="5">
  53. <TextBlock Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_Note}"></TextBlock>
  54. <TextBox Height="150" x:Name="NoteTextBox" TextWrapping="Wrap" AcceptsReturn="True" TextChanged="NoteTextBox_TextChanged"></TextBox>
  55. </StackPanel>
  56. </StackPanel>
  57. </StackPanel>
  58. </Grid>
  59. </ScrollViewer>
  60. </UserControl>