终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

70 lines
4.7 KiB

  1. <Window x:Class="BPASmartClient.MorkS.View.GoodsEditView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:vm="clr-namespace:BPASmartClient.MorkS.ViewModel"
  7. xmlns:local="clr-namespace:BPASmartClient.MorkS.View"
  8. mc:Ignorable="d"
  9. Title="GoodsEditView" Height="450" Width="600" Background="Transparent" WindowStartupLocation="CenterScreen" WindowStyle="None" ResizeMode="CanMinimize">
  10. <WindowChrome.WindowChrome>
  11. <WindowChrome GlassFrameThickness="-1"/>
  12. </WindowChrome.WindowChrome>
  13. <Window.DataContext>
  14. <vm:GoodsEditViewModel/>
  15. </Window.DataContext>
  16. <Window.Resources>
  17. <Style x:Key="TextboxStyle" TargetType="TextBox">
  18. <Setter Property="FontSize" Value="18" />
  19. <Setter Property="Background" Value="Transparent" />
  20. <Setter Property="Foreground" Value="{StaticResource TitleBorderColor}" />
  21. <Setter Property="Width" Value="150" />
  22. <Setter Property="BorderBrush" Value="{StaticResource TitleBorderColor}" />
  23. <Setter Property="BorderThickness" Value="1" />
  24. <Setter Property="CaretBrush" Value="Aqua" />
  25. </Style>
  26. </Window.Resources>
  27. <Border Background="#ff0C255F" CornerRadius="10">
  28. <Grid>
  29. <Grid.RowDefinitions>
  30. <RowDefinition Height="60"/>
  31. <RowDefinition/>
  32. <RowDefinition/>
  33. <RowDefinition/>
  34. <RowDefinition/>
  35. </Grid.RowDefinitions>
  36. <Border BorderBrush="Aqua" BorderThickness="0,0,0,1">
  37. <TextBlock Text="订单DIY" FontSize="30" Foreground="#FF2AB2E7" VerticalAlignment="Center" HorizontalAlignment="Center" />
  38. </Border>
  39. <Canvas Grid.Row="1">
  40. <TextBlock Canvas.Top="5" Text="商品名称:" Foreground=" #FF2AB2E7" VerticalAlignment="Center" FontSize="20" Margin="10,0"/>
  41. <TextBox Canvas.Left="200" Canvas.Top="30" Height="45" Width="200" Text="{Binding GoodsName}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Style="{StaticResource TextboxStyle}"/>
  42. </Canvas>
  43. <Canvas Grid.Row="2">
  44. <TextBlock Canvas.Top="5" Text="面条位置:" Foreground=" #FF2AB2E7" VerticalAlignment="Center" FontSize="20" Margin="10,0"/>
  45. <UniformGrid Canvas.Top="55" Canvas.Left="80" Columns="5">
  46. <RadioButton VerticalContentAlignment="Center" IsChecked="{Binding noodlesLocs[0]}" Content="转盘1" Margin="10,0" FontSize="22" Foreground="#FF2AB2E7"/>
  47. <RadioButton VerticalContentAlignment="Center" IsChecked="{Binding noodlesLocs[1]}" Content="转盘2" Margin="10,0" FontSize="22" Foreground="#FF2AB2E7"/>
  48. <RadioButton VerticalContentAlignment="Center" IsChecked="{Binding noodlesLocs[2]}" Content="转盘3" Margin="10,0" FontSize="22" Foreground="#FF2AB2E7"/>
  49. <RadioButton VerticalContentAlignment="Center" IsChecked="{Binding noodlesLocs[3]}" Content="转盘4" Margin="10,0" FontSize="22" Foreground="#FF2AB2E7"/>
  50. <RadioButton VerticalContentAlignment="Center" IsChecked="{Binding noodlesLocs[4]}" Content="转盘5" Margin="10,0" FontSize="22" Foreground="#FF2AB2E7"/>
  51. </UniformGrid>
  52. </Canvas>
  53. <Canvas Grid.Row="3">
  54. <TextBlock Canvas.Top="5" Text="碗类型:" Foreground=" #FF2AB2E7" VerticalAlignment="Center" FontSize="20" Margin="10,0"/>
  55. <UniformGrid Canvas.Top="55" Canvas.Left="170" Columns="2">
  56. <RadioButton VerticalContentAlignment="Center" IsChecked="{Binding bowlLocs[0]}" Content="大碗" Margin="50,0" FontSize="22" Foreground="#FF2AB2E7"/>
  57. <RadioButton VerticalContentAlignment="Center" IsChecked="{Binding bowlLocs[1]}" Content="小碗" FontSize="22" Foreground="#FF2AB2E7"/>
  58. </UniformGrid>
  59. </Canvas>
  60. <Canvas Grid.Row="4">
  61. <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"/>
  62. <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"/>
  63. </Canvas>
  64. </Grid>
  65. </Border>
  66. </Window>