HomeContent.xaml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. <Grid>
  15. <Grid.ColumnDefinitions>
  16. <ColumnDefinition Width="270" />
  17. <ColumnDefinition Width="*" />
  18. </Grid.ColumnDefinitions>
  19. <!-- 左侧菜单栏 -->
  20. <StackPanel>
  21. <Button
  22. Name="BtnOpenPDF"
  23. Height="48"
  24. Margin="41,54,41,0"
  25. Padding="0,0,0,0"
  26. Command="{Binding OpenFileCommand}"
  27. Content="OPEN PDF" />
  28. <Button
  29. Name="BtnCreatPDF"
  30. Height="48"
  31. Margin="41,8,41,0"
  32. Content="" />
  33. <Button
  34. Name="BtnGuid"
  35. Width="216"
  36. Height="40"
  37. Margin="0,24,0,0"
  38. Command="{Binding ShowToolCommand}"
  39. CommandParameter="Guid"
  40. Content="Home" />
  41. <Button
  42. Name="BtnTool"
  43. Width="216"
  44. Height="40"
  45. Command="{Binding ShowToolCommand}"
  46. CommandParameter="Tools"
  47. Content="Tool" />
  48. <Button
  49. Name="BtnCloud"
  50. Width="216"
  51. Height="40"
  52. Command="{Binding ShowToolCommand}"
  53. CommandParameter="Cloud"
  54. Content="Cloud" />
  55. </StackPanel>
  56. <!-- 右侧内容区域 -->
  57. <ContentControl Grid.Column="1" prism:RegionManager.RegionName="{Binding ToolRegionName}" />
  58. <cus:LoadingControl Grid.ColumnSpan="2" Visibility="{Binding IsLoading}" />
  59. </Grid>
  60. </UserControl>