HomeContent.xaml 2.2 KB

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