|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- <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>
|