123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- <UserControl x:Class="LogoForceTestApp.Modules.MainModule.Views.MainPage"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:converter="clr-namespace:LogoForceTestApp.Modules.MainModule.Converters"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:hc="https://handyorg.github.io/handycontrol"
- xmlns:local="clr-namespace:LogoForceTestApp.Modules.MainModule.Views"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:oxyplot="http://oxyplot.org/wpf"
- xmlns:viewmodels="clr-namespace:LogoForceTestApp.Modules.MainModule.ViewModels"
- d:DataContext="{d:DesignInstance Type=viewmodels:MainPageViewModel}"
- d:DesignHeight="450"
- d:DesignWidth="800"
- mc:Ignorable="d">
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/LogoForceTestApp.Modules.MainModule;component/Dictionary.xaml" />
- <ResourceDictionary>
- <converter:BooleanToBrush x:Key="BoolBrush" />
- </ResourceDictionary>
- </ResourceDictionary.MergedDictionaries>
- <Style TargetType="DataGrid">
- <Setter Property="Height"
- Value="auto" />
- <Setter Property="Width"
- Value="auto" />
- <Setter Property="CanUserAddRows"
- Value="False" />
- <Setter Property="FontSize"
- Value="16" />
- </Style>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition />
- <RowDefinition Height="300"/>
- </Grid.RowDefinitions>
- <Border BorderBrush="#6A5ACD"
- BorderThickness="4">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="当前账号:"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Foreground="Black"
- FontSize="22"
- Margin="5" />
- <TextBlock Text="{Binding NowID}"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Foreground="Blue"
- FontSize="22"
- Margin="5" />
- </StackPanel>
- </Border>
- <GroupBox Grid.Row="1"
- Header="作业指导书"
- FontSize="22"
- FontWeight="Bold">
- <Border BorderBrush="#6A5ACD"
- BorderThickness="4">
- <ListBox ScrollViewer.IsDeferredScrollingEnabled="False"
- ScrollViewer.HorizontalScrollBarVisibility="Disabled"
- ItemsSource="{Binding ImageList, Mode=OneWay,IsAsync=True}">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <Image Source="{Binding PicturePath}" />
- </DataTemplate>
- </ListBox.ItemTemplate>
- <ListBox.ItemsPanel>
- <ItemsPanelTemplate>
- <WrapPanel Orientation="Horizontal" />
- </ItemsPanelTemplate>
- </ListBox.ItemsPanel>
- </ListBox>
- </Border>
- </GroupBox>
- <Grid Grid.Row="2">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <GroupBox Grid.Column="0"
- Header="员工信息">
- <StackPanel Orientation="Vertical"
- VerticalAlignment="Center"
- HorizontalAlignment="Center">
- <TextBox Text="{Binding Person,UpdateSourceTrigger=PropertyChanged}"
- Height="30"
- Width="280" />
- <Button Content="上传"
- VerticalAlignment="Center"
- Margin="10"
- Width="80"
- Height="30"
- FontSize="18"
- Style="{StaticResource BtnStyle}"
- Command="{Binding UpCommand}" />
- </StackPanel>
- </GroupBox>
- <GroupBox Grid.Column="1"
- Header="日志">
- <ListBox x:Name="ListBoxMessage" />
- </GroupBox>
- <GroupBox Grid.Column="2"
- Header="物料">
- <StackPanel Orientation="Vertical"
- VerticalAlignment="Center"
- HorizontalAlignment="Center">
- <hc:TextBox Width="280"
- Height="16"
- Margin="2"
- Name="TextBox1"
- Text="{Binding Wu1,UpdateSourceTrigger=PropertyChanged}">
- <hc:TextBox.InputBindings>
- <KeyBinding Command="{Binding WuCommand}"
- Key="Enter"/>
- </hc:TextBox.InputBindings>
- </hc:TextBox>
- <!--<hc:TextBox Width="280"
- Height="16"
- Margin="2"
- Name="TextBox2"
- Text="{Binding Wu2,UpdateSourceTrigger=PropertyChanged}"
- KeyDown="TextBox2_KeyDown" />
- <hc:TextBox Width="280"
- Height="16"
- Margin="2"
- Name="TextBox3"
- Text="{Binding Wu3,UpdateSourceTrigger=PropertyChanged}"
- KeyDown="TextBox3_KeyDown" />
- <hc:TextBox Width="280"
- Height="16"
- Margin="2"
- Name="TextBox4"
- Text="{Binding Wu4,UpdateSourceTrigger=PropertyChanged}"
- KeyDown="TextBox4_KeyDown" />
- <hc:TextBox Width="280"
- Height="16"
- Margin="2"
- Name="TextBox5"
- Text="{Binding Wu5,UpdateSourceTrigger=PropertyChanged}"
- KeyDown="TextBox5_KeyDown" />
- <hc:TextBox Width="280"
- Height="16"
- Margin="2"
- Name="TextBox6"
- Text="{Binding Wu6,UpdateSourceTrigger=PropertyChanged}"
- KeyDown="TextBox6_KeyDown" />
- <hc:TextBox Width="280"
- Height="16"
- Margin="2"
- Name="TextBox7"
- Text="{Binding Wu7,UpdateSourceTrigger=PropertyChanged}"
- KeyDown="TextBox7_KeyDown" />
- <hc:TextBox Width="280"
- Height="16"
- Margin="2"
- Name="TextBox8"
- Text="{Binding Wu8,UpdateSourceTrigger=PropertyChanged}"
- KeyDown="TextBox8_KeyDown" />
- <hc:TextBox Width="280"
- Height="16"
- Margin="2"
- Name="TextBox9"
- Text="{Binding Wu9,UpdateSourceTrigger=PropertyChanged}"
- KeyDown="TextBox9_KeyDown" />
- <hc:TextBox Width="280"
- Height="16"
- Margin="2"
- Name="TextBox10"
- Text="{Binding Wu10,UpdateSourceTrigger=PropertyChanged}" />
- <Button Content="确认"
- VerticalAlignment="Center"
- Margin="10"
- Width="80"
- Height="30"
- FontSize="18"
- Style="{StaticResource BtnStyle}"
- Command="{Binding NotarizeCommand}" />-->
- </StackPanel>
- </GroupBox>
- </Grid>
- </Grid>
- </UserControl>
|