StampAnnotProperty.xaml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <UserControl x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.StampAnnotProperty"
  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. xmlns:dd="clr-namespace:PDFSettings;assembly=PDFSettings"
  9. d:DataContext="{d:DesignInstance Type=annotpanel:StampAnnotPropertyViewModel}"
  10. mc:Ignorable="d"
  11. >
  12. <Grid>
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="40"/>
  15. <RowDefinition Height="*"/>
  16. </Grid.RowDefinitions>
  17. <TextBlock x:Name="AnnoteTypeTitle" Text="Stamp" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="0 8 0 0" FontFamily="Segoe UI Semibold" FontWeight="SemiBold" FontSize="18"/>
  18. <TabControl Grid.Row="1" Name="StampTabControl" HorizontalAlignment="Stretch" HorizontalContentAlignment="Center" Style="{StaticResource TabControlWithUnderLineStyle}">
  19. <TabItem x:Name="TabStandard"
  20. Header="Standard"
  21. FontFamily="Segoe UI" Foreground="#FF666666"
  22. HorizontalContentAlignment="Center"
  23. FontSize="16"
  24. Height="40"
  25. Width="88"
  26. IsSelected="True">
  27. <ListBox ItemsSource="{Binding StandardStampList}" SelectionMode="Single" Width="256" Height="auto" VerticalAlignment="Top" BorderThickness="0" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  28. <ListBox.ItemTemplate>
  29. <DataTemplate >
  30. <ListBoxItem>
  31. <Image Source="{Binding SourcePath}" Stretch="Uniform" Height="48"/>
  32. </ListBoxItem>
  33. </DataTemplate>
  34. </ListBox.ItemTemplate>
  35. <ListBox.ItemContainerStyle>
  36. <Style TargetType="ListBoxItem">
  37. <Setter Property="Height" Value="64"/>
  38. <Setter Property="Padding" Value="12 8 12 8"/>
  39. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  40. <EventSetter Event="PreviewMouseLeftButtonDown" Handler="ListBoxItem_PreviewMouseLeftButtonDown"/>
  41. </Style>
  42. </ListBox.ItemContainerStyle>
  43. </ListBox>
  44. </TabItem>
  45. <TabItem x:Name="TabDydamic"
  46. Header="Dynamic"
  47. FontFamily="Segoe UI" Foreground="#FF666666"
  48. HorizontalContentAlignment="Center"
  49. FontSize="16"
  50. Width="86">
  51. </TabItem>
  52. <TabItem x:Name="TabCustom"
  53. Header="Custom"
  54. FontFamily="Segoe UI" Foreground="#FF666666"
  55. FontSize="16"
  56. HorizontalContentAlignment="Center"
  57. Width="76">
  58. </TabItem>
  59. </TabControl>
  60. </Grid>
  61. </UserControl>