AppConfigPanel.xaml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <UserControl
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:appmodel="clr-namespace:InitializerModel;assembly=InitializerModel"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:ConfigEditor.SubPage.AppConfig"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. d:DataContext="{d:DesignInstance Type=appmodel:AppSettingConfigModel}"
  9. d:DesignHeight="450"
  10. d:DesignWidth="800"
  11. mc:Ignorable="d"
  12. x:Class="ConfigEditor.SubPage.AppConfig.AppConfigPanel">
  13. <StackPanel Orientation="Vertical">
  14. <Rectangle Width="10" />
  15. <Button
  16. x:Name="uxSaveConfigBtn"
  17. Margin="10"
  18. HorizontalAlignment="Left"
  19. Click="uxSaveConfigBtn_Click">
  20. <Label>Save Config</Label>
  21. </Button>
  22. <Rectangle Height="10" />
  23. <StackPanel Orientation="Horizontal">
  24. <Label Width="185">FirmwareRoot</Label>
  25. <TextBox
  26. Width="500"
  27. Text="{Binding FirmwareRoot}"
  28. IsReadOnly="True"
  29. PreviewMouseUp="FirmwareFolder_PreviewMouseUp" />
  30. </StackPanel>
  31. <Rectangle Height="10" />
  32. <StackPanel Orientation="Horizontal">
  33. <Label Width="185">Language</Label>
  34. <ComboBox
  35. x:Name="uxLanguage"
  36. Width="150"
  37. SelectedItem="{Binding Language}" />
  38. </StackPanel>
  39. <Rectangle Height="10" />
  40. <StackPanel Orientation="Horizontal">
  41. <Label Width="185">MES</Label>
  42. <ComboBox
  43. x:Name="uxMes"
  44. Width="150"
  45. SelectedItem="{Binding MES}" />
  46. </StackPanel>
  47. <Rectangle Height="10" />
  48. <StackPanel Orientation="Horizontal">
  49. <Label Width="185">MechineCode</Label>
  50. <TextBox Width="150" Text="{Binding MechineCode}" />
  51. </StackPanel>
  52. <Rectangle Height="10" />
  53. <StackPanel Orientation="Horizontal">
  54. <Label Width="185">JohnSenLedComPort</Label>
  55. <TextBox Width="150" Text="{Binding JohnSenLedComPort}" />
  56. </StackPanel>
  57. </StackPanel>
  58. </UserControl>