BookmarkInfoDialog.xaml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <UserControl
  2. x:Class="PDF_Office.Views.Dialog.BOTA.BookmarkInfoDialog"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:cus="clr-namespace:PDF_Office.CustomControl"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:dialogBOTA="clr-namespace:PDF_Office.ViewModels.Dialog.BOTA"
  8. xmlns:local="clr-namespace:PDF_Office.Views.Dialog.BOTA"
  9. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  10. xmlns:prism="http://prismlibrary.com/"
  11. Width="395"
  12. Height="220"
  13. d:DataContext="{d:DesignInstance Type=dialogBOTA:BookmarkInfoDialogViewModel}"
  14. prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
  15. prism:ViewModelLocator.AutoWireViewModel="True"
  16. mc:Ignorable="d">
  17. <cus:DialogContent Header="提示">
  18. <cus:DialogContent.Content>
  19. <StackPanel Height="80" HorizontalAlignment="Center">
  20. <TextBlock
  21. Name="TxtInput"
  22. Width="300"
  23. Margin="15"
  24. FontFamily="微软雅黑"
  25. FontSize="20"
  26. Text="{Binding BookmarkInfo}"
  27. TextWrapping="Wrap" />
  28. </StackPanel>
  29. </cus:DialogContent.Content>
  30. <cus:DialogContent.BottmBar>
  31. <Grid>
  32. <Grid.ColumnDefinitions>
  33. <ColumnDefinition Width="50*" />
  34. <ColumnDefinition Width="50*" />
  35. </Grid.ColumnDefinitions>
  36. <Button
  37. Grid.Column="0"
  38. Width="150"
  39. Height="32"
  40. Margin="25,0,0,0"
  41. HorizontalAlignment="Left"
  42. Command="{Binding OkCommnad}"
  43. Content="确定" />
  44. <Button
  45. Grid.Column="1"
  46. Width="150"
  47. Height="32"
  48. Margin="0,0,25,0"
  49. HorizontalAlignment="Right"
  50. Command="{Binding CancelCommand}"
  51. Content="取消" />
  52. </Grid>
  53. </cus:DialogContent.BottmBar>
  54. </cus:DialogContent>
  55. </UserControl>