123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- <Window
- x:Class="LogoForceTestApp.Views.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:core="clr-namespace:LogoForceTestApp.Core;assembly=LogoForceTestApp.Core"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:hc="https://handyorg.github.io/handycontrol"
- xmlns:icon="http://metro.mahapps.com/winfx/xaml/iconpacks"
- xmlns:local="clr-namespace:LogoForceTestApp"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:viewmodels="clr-namespace:LogoForceTestApp.ViewModels"
- Title="{Binding Title}"
- Width="1440"
- Height="800"
- d:DataContext="{d:DesignInstance Type=viewmodels:MainWindowViewModel}"
- prism:ViewModelLocator.AutoWireViewModel="True"
- WindowStartupLocation="CenterScreen"
- WindowState="Maximized"
- mc:Ignorable="d">
- <Window.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/LogoForceTestApp.Modules.MainModule;component/Dictionary.xaml" />
- </ResourceDictionary.MergedDictionaries>
- <local:JugetoBrushConvert x:Key="JugetoBrushConvet" />
- <local:JugetoStringConvet x:Key="JugetoStringConvet" />
- </ResourceDictionary>
- </Window.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="70" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid>
- <Grid.Resources>
- <Style TargetType="Button">
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Width" Value="90" />
- <Setter Property="Height" Value="90" />
- <Setter Property="Background" Value="{DynamicResource LightPrimaryBrush}" />
- </Style>
- </Grid.Resources>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="350" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <!--<StackPanel Orientation="Horizontal">
- <Button Command="{Binding GoMainPageCommand}">
- <icon:FontAwesome
- Width="80"
- Height="80"
- Kind="HomeSolid" />
- </Button>
- <Button Command="{Binding DataCommand}">
- <icon:PackIconForkAwesome
- Width="80"
- Height="80"
- Kind="AreaChart" />
- </Button>
- <Button Command="{Binding OperationLogPageCommand}">
- <icon:PackIconEvaIcons
- Width="80"
- Height="80"
- Kind="Eye" />
- </Button>
- <Button Command="{Binding LogCommand}">
- <icon:PackIconMaterial
- Width="80"
- Height="80"
- Kind="GestureTap" />
- </Button>
- <Button Command="{Binding SettingCommand}">
- <icon:PackIconMaterial
- Width="80"
- Height="80"
- Kind="Tools" />
- </Button>
- <Button Command="{Binding Tracing}">
- <icon:PackIconMaterial
- Width="80"
- Height="80"
- Kind="ClipboardTextSearchOutline" />
- </Button>
- </StackPanel>-->
- <StackPanel Grid.Row="0"
- Margin="10,0"
- HorizontalAlignment="Left"
- Orientation="Horizontal">
- <!--<TextBlock VerticalAlignment="Center"
- FontSize="20"
- FontWeight="Bold"
- Text="当前用户:" />
- <TextBlock Margin="10,0"
- VerticalAlignment="Center"
- FontSize="20"
- Foreground="{Binding LoinBrush}"
- Text="{Binding LoginMessage}" />
- <Button Command="{Binding LoginCommand}"
- VerticalAlignment="Center">
- <icon:FontAwesome Width="50"
- Height="50"
- Kind="UserAltSolid" />
- </Button>-->
- <!--<Button Content="注册"
- VerticalAlignment="Center"
- Margin="5"
- Width="80"
- Height="40"
- FontSize="22"
- Style="{StaticResource BtnStyle}"
- Command="{Binding SignInCommand}" />-->
- </StackPanel>
-
- <TextBlock
- Grid.Column="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="36"
- Foreground="Black">
- 智能门锁装配生产线
- </TextBlock>
-
- <StackPanel
- Grid.Column="2"
- Margin="10,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <!--<Button Command="{Binding GoMainPageCommand}"
- VerticalAlignment="Center">
- <icon:FontAwesome Width="50"
- Height="50"
- Kind="HomeSolid" />
- </Button>-->
- <TextBlock VerticalAlignment="Center"
- FontSize="25"
- Foreground="Blue"
- Margin="20,0"
- Text="{Binding LineName}" />
- <!--<TextBlock
- VerticalAlignment="Center"
- FontSize="20"
- FontWeight="Bold"
- Text="当前用户:" />
- <TextBlock
- Margin="10,0"
- VerticalAlignment="Center"
- FontSize="18"
- Foreground="{Binding LoinBrush}"
- Text="{Binding LoginMessage}" />
- <Button Command="{Binding LoginCommand}">
- <icon:FontAwesome
- Width="60"
- Height="60"
- Kind="UserAltSolid" />
- </Button>-->
- <!--<Label
- Width="60"
- Height="60"
- Background="{Binding Jugement, Converter={StaticResource JugetoBrushConvet}}"
- Content="{Binding Jugement, Converter={StaticResource JugetoStringConvet}}"
- FontSize="20" />-->
- </StackPanel>
- </Grid>
- <hc:SimplePanel Grid.Row="1">
- <ContentControl prism:RegionManager.RegionName="{x:Static core:RegionNames.ContentRegion}" />
- <hc:ScrollViewer
- HorizontalAlignment="Right"
- IsInertiaEnabled="True"
- IsPenetrating="True"
- VerticalScrollBarVisibility="Hidden">
- <StackPanel
- Margin="0,10,10,10"
- VerticalAlignment="Bottom"
- hc:Growl.GrowlParent="True" />
- </hc:ScrollViewer>
- </hc:SimplePanel>
- </Grid>
- </Window>
|