|
- <Window x:Class="BPASmartClient.MorkS.View.GoodsEditView"
- 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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="clr-namespace:BPASmartClient.MorkS.ViewModel"
- xmlns:local="clr-namespace:BPASmartClient.MorkS.View"
- mc:Ignorable="d"
- Title="GoodsEditView" Height="450" Width="600" Background="Transparent" WindowStartupLocation="CenterScreen" WindowStyle="None" ResizeMode="CanMinimize">
- <WindowChrome.WindowChrome>
- <WindowChrome GlassFrameThickness="-1"/>
- </WindowChrome.WindowChrome>
- <Window.DataContext>
- <vm:GoodsEditViewModel/>
- </Window.DataContext>
- <Window.Resources>
- <Style x:Key="TextboxStyle" TargetType="TextBox">
- <Setter Property="FontSize" Value="18" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Foreground" Value="{StaticResource TitleBorderColor}" />
- <Setter Property="Width" Value="150" />
- <Setter Property="BorderBrush" Value="{StaticResource TitleBorderColor}" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="CaretBrush" Value="Aqua" />
- </Style>
- </Window.Resources>
- <Border Background="#ff0C255F" CornerRadius="10">
- <Grid>
-
- <Grid.RowDefinitions>
- <RowDefinition Height="60"/>
- <RowDefinition/>
- <RowDefinition/>
- <RowDefinition/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Border BorderBrush="Aqua" BorderThickness="0,0,0,1">
- <TextBlock Text="订单DIY" FontSize="30" Foreground="#FF2AB2E7" VerticalAlignment="Center" HorizontalAlignment="Center" />
- </Border>
-
- <Canvas Grid.Row="1">
- <TextBlock Canvas.Top="5" Text="商品名称:" Foreground=" #FF2AB2E7" VerticalAlignment="Center" FontSize="20" Margin="10,0"/>
- <TextBox Canvas.Left="200" Canvas.Top="30" Height="45" Width="200" Text="{Binding GoodsName}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Style="{StaticResource TextboxStyle}"/>
- </Canvas>
- <Canvas Grid.Row="2">
- <TextBlock Canvas.Top="5" Text="面条位置:" Foreground=" #FF2AB2E7" VerticalAlignment="Center" FontSize="20" Margin="10,0"/>
- <UniformGrid Canvas.Top="55" Canvas.Left="80" Columns="5">
- <RadioButton VerticalContentAlignment="Center" IsChecked="{Binding noodlesLocs[0]}" Content="转盘1" Margin="10,0" FontSize="22" Foreground="#FF2AB2E7"/>
- <RadioButton VerticalContentAlignment="Center" IsChecked="{Binding noodlesLocs[1]}" Content="转盘2" Margin="10,0" FontSize="22" Foreground="#FF2AB2E7"/>
- <RadioButton VerticalContentAlignment="Center" IsChecked="{Binding noodlesLocs[2]}" Content="转盘3" Margin="10,0" FontSize="22" Foreground="#FF2AB2E7"/>
- <RadioButton VerticalContentAlignment="Center" IsChecked="{Binding noodlesLocs[3]}" Content="转盘4" Margin="10,0" FontSize="22" Foreground="#FF2AB2E7"/>
- <RadioButton VerticalContentAlignment="Center" IsChecked="{Binding noodlesLocs[4]}" Content="转盘5" Margin="10,0" FontSize="22" Foreground="#FF2AB2E7"/>
- </UniformGrid>
- </Canvas>
- <Canvas Grid.Row="3">
- <TextBlock Canvas.Top="5" Text="碗类型:" Foreground=" #FF2AB2E7" VerticalAlignment="Center" FontSize="20" Margin="10,0"/>
- <UniformGrid Canvas.Top="55" Canvas.Left="170" Columns="2">
- <RadioButton VerticalContentAlignment="Center" IsChecked="{Binding bowlLocs[0]}" Content="大碗" Margin="50,0" FontSize="22" Foreground="#FF2AB2E7"/>
- <RadioButton VerticalContentAlignment="Center" IsChecked="{Binding bowlLocs[1]}" Content="小碗" FontSize="22" Foreground="#FF2AB2E7"/>
-
- </UniformGrid>
- </Canvas>
- <Canvas Grid.Row="4">
- <Button Canvas.Top="30" Command="{Binding ConfirmCommand}" Canvas.Left="150" Style="{StaticResource ButtonStyle}" Width="100" Height="40" Content="确定" Foreground=" #FF2AB2E7" VerticalAlignment="Center" FontSize="20" Margin="10,0"/>
- <Button Canvas.Top="30" Canvas.Left="330" Width="100" Height="40" Content="取消" Style="{StaticResource ButtonStyle}" Click="Button_Click" Foreground=" #FF2AB2E7" VerticalAlignment="Center" FontSize="20" Margin="10,0"/>
- </Canvas>
- </Grid>
- </Border>
- </Window>
|