PlugChargingUC.xaml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <UserControl x:Class="Phihong_EVSE_UI_Tool.PlugChargingUC"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:Phihong_EVSE_UI_Tool"
  7. xmlns:fd="clr-namespace:SourceChord.FluentWPF;assembly=FluentWPF"
  8. mc:Ignorable="d"
  9. d:DesignHeight="1350" d:DesignWidth="880" FontSize="15" FontFamily="Segoe UI">
  10. <UserControl.Resources>
  11. <BooleanToVisibilityConverter x:Key="b2v"/>
  12. </UserControl.Resources>
  13. <Grid fd:PointerTracker.Enabled="True">
  14. <ScrollViewer x:Name="uxContentScrollViewer" HorizontalContentAlignment="Center" PanningMode="VerticalOnly" IsDeferredScrollingEnabled="False" DataContext="{Binding}">
  15. <StackPanel>
  16. <!-- Plug -->
  17. <TextBlock Text="Plug" FontSize="24" HorizontalAlignment="Left" Margin="22,6,0,8"/>
  18. <TextBlock Text="Background picture for the Plug status (800x480)" HorizontalAlignment="Left" Margin="22,4,0,12"/>
  19. <Image x:Name="uxPlugImage" Source="/Background/5_plug.bmp" HorizontalAlignment="Left" Margin="22,0,0,12" Height="192" Width="320" RenderOptions.BitmapScalingMode="HighQuality"/>
  20. <StackPanel Orientation="Horizontal" Margin="22,8,300,12">
  21. <RadioButton x:Name="uxPlugDefaultRadioButton" Tag="Plug" GroupName="plugSelect" Margin="0,0,36,0" Style="{StaticResource MaterialDesignRadioButton}"
  22. Background="{Binding Path=(fd:AccentColors.ImmersiveSystemAccentBrush)}"
  23. Checked="uxDefaultRadioButton_Checked">Default</RadioButton>
  24. <RadioButton x:Name="uxPlugCustomRadioButton" Tag="Plug" GroupName="plugSelect" Style="{StaticResource MaterialDesignRadioButton}"
  25. Background="{Binding Path=(fd:AccentColors.ImmersiveSystemAccentBrush)}"
  26. Checked="uxCustomRadioButton_Checked">Customized</RadioButton>
  27. </StackPanel>
  28. <StackPanel x:Name="uxPlugCustomStackPanel" Orientation="Horizontal" Margin="22,0,150,12"
  29. Visibility="{Binding IsChecked,ElementName=uxPlugCustomRadioButton,Converter={StaticResource b2v}}">
  30. <Button Tag="Plug" Content="Browse" HorizontalAlignment="Left" Width="90" Height="35"
  31. Style="{StaticResource ButtonRevealStyle}" Click="uxBrowseButton_Click" Foreground="Black"/>
  32. <TextBox x:Name="uxPlugExploreTextBox" VerticalContentAlignment="Center" Margin="1,0,0,0" Width="270" Height="35"
  33. Style="{StaticResource TextBoxRevealStyle}" Text="Please select an image file" IsReadOnly="True"/>
  34. </StackPanel>
  35. <!-- Precharge -->
  36. <TextBlock Text="Precharge" FontSize="24" HorizontalAlignment="Left" Margin="22,18,0,8"/>
  37. <TextBlock Text="Background picture for Precharge status (800x480)" HorizontalAlignment="Left" Margin="22,4,0,12"/>
  38. <Image x:Name="uxPrechargeImage" Source="/Background/6_precharge.bmp" HorizontalAlignment="Left" Margin="22,0,0,12" Height="192" Width="320" RenderOptions.BitmapScalingMode="HighQuality"/>
  39. <StackPanel Orientation="Horizontal" Margin="22,8,300,12">
  40. <RadioButton x:Name="uxPrechargeDefaultRadioButton" Tag="Precharge" GroupName="prechargeSelect" Margin="0,0,36,0" Style="{StaticResource MaterialDesignRadioButton}"
  41. Background="{Binding Path=(fd:AccentColors.ImmersiveSystemAccentBrush)}"
  42. Checked="uxDefaultRadioButton_Checked">Default</RadioButton>
  43. <RadioButton x:Name="uxPrechargeCustomRadioButton" Tag="Precharge" GroupName="prechargeSelect" Style="{StaticResource MaterialDesignRadioButton}"
  44. Background="{Binding Path=(fd:AccentColors.ImmersiveSystemAccentBrush)}"
  45. Checked="uxCustomRadioButton_Checked">Customized</RadioButton>
  46. </StackPanel>
  47. <StackPanel x:Name="uxPrechargeCustomStackPanel" Orientation="Horizontal" Margin="22,0,150,12"
  48. Visibility="{Binding IsChecked,ElementName=uxPrechargeCustomRadioButton,Converter={StaticResource b2v}}">
  49. <Button Tag="Precharge" Content="Browse" HorizontalAlignment="Left" Width="90" Height="35"
  50. Style="{StaticResource ButtonRevealStyle}" Click="uxBrowseButton_Click" Foreground="Black"/>
  51. <TextBox x:Name="uxPrechargeExploreTextBox" VerticalContentAlignment="Center" Margin="1,0,0,0" Width="270" Height="35"
  52. Style="{StaticResource TextBoxRevealStyle}" Text="Please select an image file" IsReadOnly="True"/>
  53. </StackPanel>
  54. <!-- Charging -->
  55. <TextBlock Text="Charging" FontSize="24" HorizontalAlignment="Left" Margin="22,18,0,8"/>
  56. <TextBlock Text="Background picture for Charging status (800x480)" HorizontalAlignment="Left" Margin="22,4,0,12"/>
  57. <Image x:Name="uxChargingImage" Source="/Background/7_charging.bmp" HorizontalAlignment="Left" Margin="22,0,0,12" Height="192" Width="320" RenderOptions.BitmapScalingMode="HighQuality"/>
  58. <StackPanel Orientation="Horizontal" Margin="22,8,300,12">
  59. <RadioButton x:Name="uxChargingDefaultRadioButton" Tag="Charging" GroupName="chargingSelect" Margin="0,0,36,0" Style="{StaticResource MaterialDesignRadioButton}"
  60. Background="{Binding Path=(fd:AccentColors.ImmersiveSystemAccentBrush)}"
  61. Checked="uxDefaultRadioButton_Checked">Default</RadioButton>
  62. <RadioButton x:Name="uxChargingCustomRadioButton" Tag="Charging" GroupName="chargingSelect" Style="{StaticResource MaterialDesignRadioButton}"
  63. Background="{Binding Path=(fd:AccentColors.ImmersiveSystemAccentBrush)}"
  64. Checked="uxCustomRadioButton_Checked">Customized</RadioButton>
  65. </StackPanel>
  66. <StackPanel x:Name="uxChargingCustomStackPanel" Orientation="Horizontal" Margin="22,0,150,12"
  67. Visibility="{Binding IsChecked,ElementName=uxChargingCustomRadioButton,Converter={StaticResource b2v}}">
  68. <Button Tag="Charging" Content="Browse" HorizontalAlignment="Left" Width="90" Height="35"
  69. Style="{StaticResource ButtonRevealStyle}" Click="uxBrowseButton_Click" Foreground="Black"/>
  70. <TextBox x:Name="uxChargingExploreTextBox" VerticalContentAlignment="Center" Margin="1,0,0,0" Width="270" Height="35"
  71. Style="{StaticResource TextBoxRevealStyle}" Text="Please select an image file" IsReadOnly="True"/>
  72. </StackPanel>
  73. <!-- Complete -->
  74. <TextBlock Text="Complete" FontSize="24" HorizontalAlignment="Left" Margin="22,18,0,8"/>
  75. <TextBlock Text="Background picture for Complete status (800x480)" HorizontalAlignment="Left" Margin="22,4,0,12"/>
  76. <Image x:Name="uxCompleteImage" Source="/Background/8_complete.bmp" HorizontalAlignment="Left" Margin="22,0,0,12" Height="192" Width="320" RenderOptions.BitmapScalingMode="HighQuality"/>
  77. <StackPanel Orientation="Horizontal" Margin="22,8,300,12">
  78. <RadioButton x:Name="uxCompleteDefaultRadioButton" Tag="Complete" GroupName="completeSelect" Margin="0,0,36,0" Style="{StaticResource MaterialDesignRadioButton}"
  79. Background="{Binding Path=(fd:AccentColors.ImmersiveSystemAccentBrush)}"
  80. Checked="uxDefaultRadioButton_Checked">Default</RadioButton>
  81. <RadioButton x:Name="uxCompleteCustomRadioButton" Tag="Complete" GroupName="completeSelect" Style="{StaticResource MaterialDesignRadioButton}"
  82. Background="{Binding Path=(fd:AccentColors.ImmersiveSystemAccentBrush)}"
  83. Checked="uxCustomRadioButton_Checked">Customized</RadioButton>
  84. </StackPanel>
  85. <StackPanel x:Name="uxCompleteCustomStackPanel" Orientation="Horizontal" Margin="22,0,150,12"
  86. Visibility="{Binding IsChecked,ElementName=uxCompleteCustomRadioButton,Converter={StaticResource b2v}}">
  87. <Button Tag="Complete" Content="Browse" HorizontalAlignment="Left" Width="90" Height="35"
  88. Style="{StaticResource ButtonRevealStyle}" Click="uxBrowseButton_Click" Foreground="Black"/>
  89. <TextBox x:Name="uxCompleteExploreTextBox" VerticalContentAlignment="Center" Margin="1,0,0,0" Width="270" Height="35"
  90. Style="{StaticResource TextBoxRevealStyle}" Text="Please select an image file" IsReadOnly="True"/>
  91. </StackPanel>
  92. <StackPanel Margin="22,0,450,10" Height="15"/>
  93. </StackPanel>
  94. </ScrollViewer>
  95. </Grid>
  96. </UserControl>