123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- <Window x:Class="FISSDKDemoV2.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- Title="FIS"
- ResizeMode="CanResize"
- Style="{DynamicResource WindowStyle}"
- WindowState="Maximized"
- mc:Ignorable="d">
- <Window.Resources>
- <Style x:Key="MenuItem"
- TargetType="{x:Type Border}">
- <Setter Property="BorderThickness"
- Value="1" />
- <Setter Property="Background"
- Value="{DynamicResource BorderBackground}" />
- <Setter Property="CornerRadius"
- Value="5" />
- <Setter Property="Width"
- Value="70" />
- <Setter Property="Height"
- Value="70" />
- <Setter Property="Margin"
- Value="10" />
- </Style>
- <Style x:Key="MenuItemButton"
- TargetType="{x:Type Button}">
- <Setter Property="Cursor"
- Value="Hand" />
- <Setter Property="Padding"
- Value="0" />
- <Setter Property="FocusVisualStyle"
- Value="{x:Null}" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <ContentPresenter Content="{TemplateBinding Content}" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style BasedOn="{StaticResource DefaultTextBlock}"
- TargetType="{x:Type TextBlock}" />
- </Window.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="60" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Border Grid.Row="0"
- BorderThickness="0,0,0,1">
- <WrapPanel />
- </Border>
- <Grid Grid.Row="1"
- Grid.Column="2">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Border Grid.Row="0"
- Grid.Column="0"
- Padding="20"
- BorderThickness="0,0,1,0">
- <ScrollViewer HorizontalScrollBarVisibility="Disabled"
- VerticalScrollBarVisibility="Auto">
- <Grid>
- <WrapPanel Orientation="Horizontal">
- <Border Padding="15">
- <Button Command="{Binding AddPatientCommand}"
- Style="{StaticResource MenuItemButton}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Border Grid.Row="0"
- Style="{StaticResource MenuItem}">
- <TextBlock FontSize="30"
- Style="{DynamicResource IconAddPatient}" />
- </Border>
- <TextBlock Grid.Row="1"
- HorizontalAlignment="Center"
- x:Name="AddPatientTextBlock" />
- </Grid>
- </Button>
- </Border>
- <Border Padding="15">
- <Button Command="{Binding PatientManageCommand}"
- Style="{StaticResource MenuItemButton}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Border Grid.Row="0"
- Style="{StaticResource MenuItem}">
- <TextBlock FontSize="30"
- Style="{DynamicResource IconPatientManager1}" />
- </Border>
- <TextBlock Grid.Row="1"
- HorizontalAlignment="Center"
- x:Name="PatientManagementTextBlock" />
- </Grid>
- </Button>
- </Border>
- <Border Padding="15">
- <Button Command="{Binding SystemConfigCommand}"
- Style="{StaticResource MenuItemButton}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Border Grid.Row="0"
- Style="{StaticResource MenuItem}">
- <TextBlock FontSize="30"
- Style="{DynamicResource IconSystemSetting1}" />
- </Border>
- <TextBlock Grid.Row="1"
- HorizontalAlignment="Center"
- Text="系统设置" />
- </Grid>
- </Button>
- </Border>
- <Border Padding="10">
- <Button Command="{Binding CloudExamManageCommand}"
- Style="{StaticResource MenuItemButton}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Border Grid.Row="0"
- Margin="10,15,10,10"
- Style="{StaticResource MenuItem}">
- <Image Width="40"
- Height="40"
- Margin="0,2,0,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Source="/Resource/Image/logo.png" />
- </Border>
- <TextBlock Grid.Row="1"
- HorizontalAlignment="Center"
- Text="杏聆荟" />
- </Grid>
- </Button>
- </Border>
- </WrapPanel>
- </Grid>
- </ScrollViewer>
- </Border>
- </Grid>
- <Grid />
- </Grid>
- </Window>
|