DynamicPropertyDialog.xaml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <UserControl x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.DynamicPropertyDialog"
  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" xmlns:cus="clr-namespace:PDF_Office.CustomControl" xmlns:annotpanel="clr-namespace:PDF_Office.ViewModels.PropertyPanel.AnnotPanel" xmlns:i="http://schemas.microsoft.com/xaml/behaviors" d:DataContext="{d:DesignInstance Type=annotpanel:DynamicPropertyDialogViewModel}"
  7. mc:Ignorable="d"
  8. Width="500"
  9. Height="300">
  10. <cus:DialogContent Header="动态图章">
  11. <cus:DialogContent.Content>
  12. <StackPanel Height="50" Grid.Row="1" HorizontalAlignment="Center" Orientation="Horizontal">
  13. <CheckBox Name="chkAuthor" IsChecked="{Binding IsChecked}" VerticalAlignment="Center" FontFamily="Seoge UI" FontSize="14" Margin="0 0 0 8" Content="Author" Padding="7 0 0 0" />
  14. <TextBox x:Name="txtAuthor" VerticalContentAlignment="Center" IsEnabled="{Binding ElementName=chkAuthor, Path=IsChecked}" Text="{Binding Author,Mode=TwoWay}" Width="152" Height="32" HorizontalAlignment="Right" Margin="0 0 0 8"/>
  15. <TextBlock x:Name="lbCreateDate" Grid.Row="1" FontFamily="Seoge UI" FontSize="14" Foreground="Black" VerticalAlignment="Center" Margin="27 0 0 0" Text="Date"/>
  16. <ComboBox Name="txtCreateDate" SelectedIndex="{Binding SelectedIndex}" Grid.Row="1" Background ="Transparent" Width="152" BorderThickness="1" BorderBrush="#FFE2E3E6" HorizontalAlignment="Right" ItemsSource="{Binding DateFormatList}">
  17. <ComboBox.ItemTemplate>
  18. <DataTemplate >
  19. <ComboBoxItem Content="{Binding }">
  20. </ComboBoxItem>
  21. </DataTemplate>
  22. </ComboBox.ItemTemplate>
  23. </ComboBox>
  24. </StackPanel>
  25. </cus:DialogContent.Content>
  26. <cus:DialogContent.BottmBar>
  27. <Grid>
  28. <Grid.ColumnDefinitions>
  29. <ColumnDefinition Width="50*" />
  30. <ColumnDefinition Width="50*" />
  31. </Grid.ColumnDefinitions>
  32. <Button
  33. Grid.Column="0"
  34. Width="150"
  35. Height="32"
  36. Margin="25,0,0,0"
  37. HorizontalAlignment="Left"
  38. Command="{Binding ApplyCommnad}"
  39. Content="确定" />
  40. <Button
  41. Grid.Column="1"
  42. Width="150"
  43. Height="32"
  44. Margin="0,0,25,0"
  45. HorizontalAlignment="Right"
  46. Command="{Binding CancelCommand}"
  47. Content="取消" />
  48. </Grid>
  49. </cus:DialogContent.BottmBar>
  50. </cus:DialogContent>
  51. </UserControl>