ManufacturingTreatmentWindow.xaml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <wpf:ThemableWindow x:Class="PRSDesktop.ManufacturingTreatmentWindow"
  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:wpf="clr-namespace:InABox.Wpf;assembly=InABox.Wpf"
  7. xmlns:local="clr-namespace:PRSDesktop"
  8. mc:Ignorable="d"
  9. Title="Select Treatments to Apply" Height="800" Width="600" Loaded="Window_Loaded">
  10. <Grid Margin="5">
  11. <Grid.ColumnDefinitions>
  12. <ColumnDefinition Width="Auto" />
  13. <ColumnDefinition Width="*" />
  14. <ColumnDefinition Width="80" />
  15. <ColumnDefinition Width="85" />
  16. </Grid.ColumnDefinitions>
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="Auto" />
  19. <RowDefinition Height="Auto" />
  20. <RowDefinition Height="*" />
  21. <RowDefinition Height="Auto" />
  22. </Grid.RowDefinitions>
  23. <Label Grid.Row="0" Grid.Column="0" Content="Treatment" Margin="0,0,5,0" />
  24. <ComboBox x:Name="Treatments" Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="3" SelectedValuePath="Key"
  25. DisplayMemberPath="Value" SelectionChanged="Treatments_SelectionChanged"
  26. VerticalContentAlignment="Center" />
  27. <Label Grid.Row="1" Grid.Column="0" Content="Supplier" Margin="0,5,5,0" />
  28. <ComboBox x:Name="Suppliers" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="3" SelectedValuePath="Key"
  29. DisplayMemberPath="Value" SelectionChanged="Suppliers_SelectionChanged"
  30. VerticalContentAlignment="Center" Margin="0,5,0,0" />
  31. <local:ManufacturingTreatmentGrid x:Name="Packets" Grid.Row="2" Grid.Column="0" Margin="0,5,0,5"
  32. Grid.ColumnSpan="4" />
  33. <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Grid.Row="3" Grid.Column="2" Padding="0,5,0,5"
  34. IsEnabled="false" />
  35. <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Grid.Row="3" Grid.Column="3"
  36. Padding="0,5,0,5" Margin="5,0,0,0" />
  37. </Grid>
  38. </wpf:ThemableWindow>