MainWindow.xaml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <Window x:Class="FISSDKDemoV2.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. Title="FIS"
  7. ResizeMode="CanResize"
  8. Style="{DynamicResource WindowStyle}"
  9. WindowState="Maximized"
  10. mc:Ignorable="d">
  11. <Window.Resources>
  12. <Style x:Key="MenuItem"
  13. TargetType="{x:Type Border}">
  14. <Setter Property="BorderThickness"
  15. Value="1" />
  16. <Setter Property="Background"
  17. Value="{DynamicResource BorderBackground}" />
  18. <Setter Property="CornerRadius"
  19. Value="5" />
  20. <Setter Property="Width"
  21. Value="70" />
  22. <Setter Property="Height"
  23. Value="70" />
  24. <Setter Property="Margin"
  25. Value="10" />
  26. </Style>
  27. <Style x:Key="MenuItemButton"
  28. TargetType="{x:Type Button}">
  29. <Setter Property="Cursor"
  30. Value="Hand" />
  31. <Setter Property="Padding"
  32. Value="0" />
  33. <Setter Property="FocusVisualStyle"
  34. Value="{x:Null}" />
  35. <Setter Property="Template">
  36. <Setter.Value>
  37. <ControlTemplate TargetType="Button">
  38. <ContentPresenter Content="{TemplateBinding Content}" />
  39. </ControlTemplate>
  40. </Setter.Value>
  41. </Setter>
  42. </Style>
  43. <Style BasedOn="{StaticResource DefaultTextBlock}"
  44. TargetType="{x:Type TextBlock}" />
  45. </Window.Resources>
  46. <Grid>
  47. <Grid.RowDefinitions>
  48. <RowDefinition Height="60" />
  49. <RowDefinition Height="*" />
  50. </Grid.RowDefinitions>
  51. <Border Grid.Row="0"
  52. BorderThickness="0,0,0,1">
  53. <WrapPanel />
  54. </Border>
  55. <Grid Grid.Row="1"
  56. Grid.Column="2">
  57. <Grid.ColumnDefinitions>
  58. <ColumnDefinition Width="*" />
  59. <ColumnDefinition Width="*" />
  60. </Grid.ColumnDefinitions>
  61. <Border Grid.Row="0"
  62. Grid.Column="0"
  63. Padding="20"
  64. BorderThickness="0,0,1,0">
  65. <ScrollViewer HorizontalScrollBarVisibility="Disabled"
  66. VerticalScrollBarVisibility="Auto">
  67. <Grid>
  68. <WrapPanel Orientation="Horizontal">
  69. <Border Padding="15">
  70. <Button Command="{Binding AddPatientCommand}"
  71. Style="{StaticResource MenuItemButton}">
  72. <Grid>
  73. <Grid.RowDefinitions>
  74. <RowDefinition Height="*" />
  75. <RowDefinition Height="*" />
  76. </Grid.RowDefinitions>
  77. <Border Grid.Row="0"
  78. Style="{StaticResource MenuItem}">
  79. <TextBlock FontSize="30"
  80. Style="{DynamicResource IconAddPatient}" />
  81. </Border>
  82. <TextBlock Grid.Row="1"
  83. HorizontalAlignment="Center"
  84. x:Name="AddPatientTextBlock" />
  85. </Grid>
  86. </Button>
  87. </Border>
  88. <Border Padding="15">
  89. <Button Command="{Binding PatientManageCommand}"
  90. Style="{StaticResource MenuItemButton}">
  91. <Grid>
  92. <Grid.RowDefinitions>
  93. <RowDefinition Height="*" />
  94. <RowDefinition Height="*" />
  95. </Grid.RowDefinitions>
  96. <Border Grid.Row="0"
  97. Style="{StaticResource MenuItem}">
  98. <TextBlock FontSize="30"
  99. Style="{DynamicResource IconPatientManager1}" />
  100. </Border>
  101. <TextBlock Grid.Row="1"
  102. HorizontalAlignment="Center"
  103. x:Name="PatientManagementTextBlock" />
  104. </Grid>
  105. </Button>
  106. </Border>
  107. <Border Padding="15">
  108. <Button Command="{Binding SystemConfigCommand}"
  109. Style="{StaticResource MenuItemButton}">
  110. <Grid>
  111. <Grid.RowDefinitions>
  112. <RowDefinition Height="*" />
  113. <RowDefinition Height="*" />
  114. </Grid.RowDefinitions>
  115. <Border Grid.Row="0"
  116. Style="{StaticResource MenuItem}">
  117. <TextBlock FontSize="30"
  118. Style="{DynamicResource IconSystemSetting1}" />
  119. </Border>
  120. <TextBlock Grid.Row="1"
  121. HorizontalAlignment="Center"
  122. Text="系统设置" />
  123. </Grid>
  124. </Button>
  125. </Border>
  126. <Border Padding="10">
  127. <Button Command="{Binding CloudExamManageCommand}"
  128. Style="{StaticResource MenuItemButton}">
  129. <Grid>
  130. <Grid.RowDefinitions>
  131. <RowDefinition Height="*" />
  132. <RowDefinition Height="*" />
  133. </Grid.RowDefinitions>
  134. <Border Grid.Row="0"
  135. Margin="10,15,10,10"
  136. Style="{StaticResource MenuItem}">
  137. <Image Width="40"
  138. Height="40"
  139. Margin="0,2,0,0"
  140. HorizontalAlignment="Center"
  141. VerticalAlignment="Center"
  142. Source="/Resource/Image/logo.png" />
  143. </Border>
  144. <TextBlock Grid.Row="1"
  145. HorizontalAlignment="Center"
  146. Text="杏聆荟" />
  147. </Grid>
  148. </Button>
  149. </Border>
  150. </WrapPanel>
  151. </Grid>
  152. </ScrollViewer>
  153. </Border>
  154. </Grid>
  155. <Grid />
  156. </Grid>
  157. </Window>