HomeContent.xaml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <UserControl
  2. x:Class="PDF_Office.Views.HomeContent"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:prism="http://prismlibrary.com/"
  8. xmlns:viewmodels="clr-namespace:PDF_Office.ViewModels"
  9. d:DesignHeight="450"
  10. d:DesignWidth="800"
  11. prism:ViewModelLocator.AutoWireViewModel="True"
  12. mc:Ignorable="d">
  13. <Grid>
  14. <Grid.ColumnDefinitions>
  15. <ColumnDefinition Width="270" />
  16. <ColumnDefinition Width="*" />
  17. </Grid.ColumnDefinitions>
  18. <!-- 左侧菜单栏 -->
  19. <StackPanel>
  20. <Button
  21. Name="BtnOpenPDF"
  22. Height="48"
  23. Margin="41,54,41,0"
  24. Padding="0,0,0,0"
  25. Command="{Binding OpenFileCommand}"
  26. Content="OPEN PDF" />
  27. <Button
  28. Name="BtnCreatPDF"
  29. Height="48"
  30. Margin="41,8,41,0"
  31. Content="" />
  32. <Button
  33. Name="BtnGuid"
  34. Width="216"
  35. Height="40"
  36. Margin="0,24,0,0"
  37. Command="{Binding ShowToolCommand}"
  38. CommandParameter="Guid"
  39. Content="Home" />
  40. <Button
  41. Name="BtnTool"
  42. Width="216"
  43. Height="40"
  44. Command="{Binding ShowToolCommand}"
  45. CommandParameter="Tools"
  46. Content="Tool" />
  47. <Button
  48. Name="BtnCloud"
  49. Width="216"
  50. Height="40"
  51. Command="{Binding ShowToolCommand}"
  52. CommandParameter="Cloud"
  53. Content="Cloud" />
  54. </StackPanel>
  55. <!-- 右侧内容区域 -->
  56. <ContentControl Grid.Column="1" prism:RegionManager.RegionName="{Binding ToolRegionName}" />
  57. </Grid>
  58. </UserControl>