AddBookmarkDialog.xaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <UserControl
  2. x:Class="PDF_Master.Views.Dialog.BOTA.AddBookmarkDialog"
  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_Master.CustomControl"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:dialogBOTA="clr-namespace:PDF_Master.ViewModels.Dialog.BOTA"
  8. xmlns:local="clr-namespace:PDF_Master.Views.Dialog.BOTA"
  9. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  10. xmlns:prism="http://prismlibrary.com/"
  11. Width="445"
  12. Height="180"
  13. d:DataContext="{d:DesignInstance Type=dialogBOTA:AddBookmarkDialogViewModel}"
  14. prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
  15. prism:ViewModelLocator.AutoWireViewModel="True"
  16. mc:Ignorable="d">
  17. <cus:DialogContent Header="{Binding Title}">
  18. <cus:DialogContent.Content>
  19. <StackPanel Height="50" HorizontalAlignment="Center">
  20. <TextBox
  21. Name="TxtInput"
  22. Width="390"
  23. Height="30"
  24. Margin="15"
  25. HorizontalContentAlignment="Left"
  26. VerticalContentAlignment="Center"
  27. FontFamily="微软雅黑"
  28. FontSize="14"
  29. Text="{Binding Bookmark}" />
  30. </StackPanel>
  31. </cus:DialogContent.Content>
  32. <cus:DialogContent.BottmBar>
  33. <Grid>
  34. <Grid.ColumnDefinitions>
  35. <ColumnDefinition Width="50*" />
  36. <ColumnDefinition Width="50*" />
  37. </Grid.ColumnDefinitions>
  38. <Button
  39. Grid.Column="0"
  40. Width="150"
  41. Height="32"
  42. Margin="25,0,0,0"
  43. HorizontalAlignment="Left"
  44. Command="{Binding CreateCommnad}"
  45. Content="确定" />
  46. <Button
  47. Grid.Column="1"
  48. Width="150"
  49. Height="32"
  50. Margin="0,0,25,0"
  51. HorizontalAlignment="Right"
  52. Command="{Binding CancelCommand}"
  53. Content="取消" />
  54. </Grid>
  55. </cus:DialogContent.BottmBar>
  56. </cus:DialogContent>
  57. </UserControl>