AppConfigPanel.xaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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">IsDisableAuthRequired</Label>
  55. <CheckBox
  56. Width="150"
  57. VerticalAlignment="Center"
  58. IsChecked="{Binding IsDisableAuthRequired}" />
  59. </StackPanel>
  60. <Rectangle Height="10" />
  61. <StackPanel Orientation="Horizontal">
  62. <Label Width="185">JohnSenLedComPort</Label>
  63. <TextBox Width="150" Text="{Binding JohnSenLedComPort}" />
  64. </StackPanel>
  65. </StackPanel>
  66. </UserControl>