|
- <Window
- x:Class="BPASmartClient.SmallBatchingSystem.Views.GrindArenaceousView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.SmallBatchingSystem.Views"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="clr-namespace:BPASmartClient.SmallBatchingSystem.ViewModels"
- Title="GrindArenaceousView"
- Width="800"
- Height="450"
- AllowsTransparency="True"
- Background="{x:Null}"
- Topmost="True"
- WindowStartupLocation="CenterScreen"
- WindowState="Maximized"
- WindowStyle="None"
- mc:Ignorable="d">
-
- <Window.DataContext>
- <vm:GrindArenaceousViewModel />
- </Window.DataContext>
-
- <Grid Name="gr">
- <Border Background="#00c2f4" Opacity="0.2" />
- <Grid Width="500" Height="350">
- <Grid.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/容器边框.png" />
- </Grid.Background>
-
- <Grid.RowDefinitions>
- <RowDefinition Height="0.3*" />
- <RowDefinition Height="0.2*" />
- <RowDefinition />
- <RowDefinition Height="0.3*" />
- </Grid.RowDefinitions>
-
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="20"
- Foreground="#00c2f4"
- Text="{Binding RecipeName}" />
-
- <Grid Grid.Row="1" Margin="5,0">
- <!--#region 表格标题栏设置-->
- <Grid Margin="0,10,0,0" Background="#ff0C255F">
-
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
-
-
- <TextBlock
- Grid.Column="0"
- Style="{StaticResource TitleTextblockStyle}"
- Text="原料" />
-
- <Grid Grid.Column="1">
- <TextBlock Style="{StaticResource TitleTextblockStyle}" Text="状态" />
- <Border
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1,0,1,0"
- Cursor="SizeWE" />
- </Grid>
-
- <Border
- Grid.ColumnSpan="2"
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1,0,1,0" />
-
- </Grid>
- <!--#endregion-->
- </Grid>
-
- <Grid Grid.Row="2" Margin="5,0">
- <ScrollViewer
- Grid.Row="1"
- HorizontalScrollBarVisibility="Hidden"
- VerticalScrollBarVisibility="Hidden">
- <ItemsControl ItemsSource="{Binding Recipes}">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <RadioButton
- Name="rb"
- GroupName="all"
- IsChecked="{Binding IsChecked}">
- <RadioButton.Template>
- <ControlTemplate TargetType="RadioButton">
- <Grid Name="gr" Height="30">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
-
- <StackPanel
- Margin="0,0,5,0"
- HorizontalAlignment="Right"
- Orientation="Horizontal">
- <TextBlock Style="{StaticResource TitleTextblockStyle}" Text="{Binding RawMaterialName}" />
- <TextBlock Style="{StaticResource TitleTextblockStyle}" Text=":" />
-
- </StackPanel>
-
- <StackPanel
- Grid.Column="1"
- Margin="2,0,0,0"
- Orientation="Horizontal">
- <TextBlock
- Margin="0,0,5,0"
- Foreground="{Binding Status, Converter={StaticResource ForegroundConverter}}"
- Style="{StaticResource TitleTextblockStyle}"
- Text="{Binding Status}" />
-
- <TextBlock
- FontFamily="../Fonts/#iconfont"
- FontSize="20"
- Foreground="{Binding Status, Converter={StaticResource ForegroundConverter}}"
- Style="{StaticResource TitleTextblockStyle}"
- Text="{Binding Status, Converter={StaticResource StatusIconConverter}}" />
- </StackPanel>
-
-
- </Grid>
-
-
- </ControlTemplate>
- </RadioButton.Template>
- </RadioButton>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </ScrollViewer>
- </Grid>
-
-
- <Button
- Grid.Row="3"
- Width="150"
- Height="35"
- Command="{Binding CancelCommand}"
- Content="取消"
- FontSize="20"
- Style="{StaticResource ControlButtonStyle}">
- <Button.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/组合边框1.png" Stretch="Fill" />
- </Button.Background>
- </Button>
-
-
- </Grid>
- </Grid>
- </Window>
|