|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <UserControl x:Class="BPASmartClient.MorkMW.View.DebugView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.MorkMW.View"
- xmlns:vm="clr-namespace:BPASmartClient.MorkMW.ViewModel"
- mc:Ignorable="d"
- Name="本地调试"
- d:DesignHeight="450" d:DesignWidth="800">
- <UserControl.DataContext>
- <vm:DebugViewModel/>
- </UserControl.DataContext>
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" />
- <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
-
-
-
-
- </UserControl.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="500"/>
- </Grid.RowDefinitions>
- <StackPanel>
- <Grid Width="600">
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="物料名称" HorizontalAlignment="Center" />
- <TextBlock Text="物料位置" Grid.Column="1" HorizontalAlignment="Center"/>
- <TextBlock Text="时间" Grid.Column="2" HorizontalAlignment="Center"/>
- </Grid>
- <StackPanel Width="600">
- <ItemsControl ItemsSource="{Binding SimRecipe.recipe}">
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <StackPanel/>
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <TextBox Text="{Binding materialName}" Margin="10,10" />
- <ComboBox Text="{Binding Loc}" ItemsSource="{Binding DataContext.location,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=ItemsControl}}" Grid.Column="1" Margin="10,10"/>
- <TextBox Text="{Binding Time}" Grid.Column="2" Margin="10,10"/>
- </Grid>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
-
- </StackPanel>
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="1">
- <Button Content="添加原料" Width="150" Command="{Binding AddMaterial}" Margin="10,10"></Button >
- <Button Content="删除原料" Width="150" Command="{Binding ClearMaterial}"></Button >
- <Button Content="本地订单下发" Width="150" Margin="10,10" Command="{Binding SimOrderSetDown}" CommandParameter="{Binding SimRecipe}"/>
- <CheckBox Content="运行本地模拟程序" Command="{Binding StartLocalSim}" IsChecked="{Binding IsSimOrder}"/>
- </StackPanel>
-
-
- </Grid>
- </UserControl>
|