AppConfigPanel.xaml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. <Rectangle Height="10" />
  58. <StackPanel Orientation="Horizontal">
  59. <Label Width="185">WifiApSSID</Label>
  60. <TextBox Width="150" Text="{Binding WifiApSSID}" />
  61. </StackPanel>
  62. <Rectangle Height="10" />
  63. <StackPanel Orientation="Horizontal">
  64. <Label Width="185">WifiApPassword</Label>
  65. <TextBox Width="150" Text="{Binding WifiApPassword}" />
  66. </StackPanel>
  67. </StackPanel>
  68. </UserControl>