|
| 1 | +<Page |
| 2 | + x:Class="UITests.Shared.Windows_UI_Xaml.Font.FontAlignmentTests" |
| 3 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 4 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 6 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 7 | + mc:Ignorable="d" |
| 8 | + Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> |
| 9 | + |
| 10 | + <StackPanel HorizontalAlignment="Left"> |
| 11 | + <CheckBox Margin="0,24" |
| 12 | + VerticalContentAlignment="Center" |
| 13 | + Content="CheckBox with the missing vertical alignment" /> |
| 14 | + |
| 15 | + <CheckBox Margin="0,24"> |
| 16 | + <TextBlock |
| 17 | + Margin="0,4,0,0" |
| 18 | + Text="Checkbox with a TextBlock with a custom margin" /> |
| 19 | + </CheckBox> |
| 20 | + |
| 21 | + <CheckBox Margin="0,24"> |
| 22 | + <TextBlock |
| 23 | + Margin="0,4,0,0" |
| 24 | + Text="Checkbox with a TextBlock with VerticalAlignment=Center" |
| 25 | + VerticalAlignment="Center"/> |
| 26 | + </CheckBox> |
| 27 | + |
| 28 | + <TextBox PlaceholderText="Enter your name123456:" |
| 29 | + Text="{Binding Name, Mode=TwoWay}" /> |
| 30 | + |
| 31 | + <StackPanel Orientation="Horizontal"> |
| 32 | + <TextBox Text="Test" |
| 33 | + Background="Blue" |
| 34 | + Foreground="White" /> |
| 35 | + <Button Background="Blue" |
| 36 | + Foreground="White" |
| 37 | + AutomationProperties.AutomationId="SecondPageButton" |
| 38 | + Content="Go to Second Page" /> |
| 39 | + </StackPanel> |
| 40 | + |
| 41 | + <!-- Dialog Information --> |
| 42 | + <StackPanel CornerRadius="5" |
| 43 | + Margin="0,15"> |
| 44 | + <TextBlock |
| 45 | + FontSize="18" |
| 46 | + FontWeight="Bold" |
| 47 | + Text="Configure TLCEV T1" /> |
| 48 | + <Grid |
| 49 | + x:Name="MainGrid" |
| 50 | + Margin="0,24,0,0"> |
| 51 | + <Grid.ColumnDefinitions> |
| 52 | + <ColumnDefinition |
| 53 | + Width="Auto" /> |
| 54 | + <ColumnDefinition |
| 55 | + Width="48" /> |
| 56 | + <ColumnDefinition |
| 57 | + Width="Auto" /> |
| 58 | + </Grid.ColumnDefinitions> |
| 59 | + |
| 60 | + <StackPanel> |
| 61 | + <TextBlock |
| 62 | + Style="{StaticResource PropertyHeaderTextBlockStyle}" |
| 63 | + Text="Charge non-approved OEMs" /> |
| 64 | + <ToggleSwitch |
| 65 | + x:Name="Toggle" |
| 66 | + IsOn="True" |
| 67 | + Margin="0,4,0,0" |
| 68 | + OffContent="Block" |
| 69 | + OnContent="Allow" /> |
| 70 | + <Button |
| 71 | + Content="Help" |
| 72 | + Margin="0,4,0,0" /> |
| 73 | + <TeachingTip |
| 74 | + x:Name="ToggleThemeTeachingTip3" |
| 75 | + Title="What is a non-approved OEMs?" |
| 76 | + PreferredPlacement="LeftBottom" |
| 77 | + Target="{x:Bind Toggle}"> |
| 78 | + <TeachingTip.HeroContent> |
| 79 | + <Image |
| 80 | + Margin="24" |
| 81 | + Source="/Assets/Images/vehicule.png" /> |
| 82 | + </TeachingTip.HeroContent> |
| 83 | + <TeachingTip.Content> |
| 84 | + <TextBlock |
| 85 | + Margin="0,16,0,0" |
| 86 | + Text="Explanation here" |
| 87 | + TextWrapping="WrapWholeWords" /> |
| 88 | + </TeachingTip.Content> |
| 89 | + </TeachingTip> |
| 90 | + |
| 91 | + <TextBlock |
| 92 | + Margin="0,16,0,0" |
| 93 | + Style="{StaticResource PropertyHeaderTextBlockStyle}" |
| 94 | + Text="Maximum power" /> |
| 95 | + |
| 96 | + <StackPanel |
| 97 | + Margin="0,4,0,0" |
| 98 | + Orientation="Horizontal"> |
| 99 | + <NumberBox |
| 100 | + AutomationProperties.Name="NumberBox with spin button" |
| 101 | + LargeChange="100" |
| 102 | + SmallChange="10" |
| 103 | + SpinButtonPlacementMode="Inline" |
| 104 | + Width="160" |
| 105 | + Value="300" /> |
| 106 | + <TextBlock |
| 107 | + Margin="4,0,0,0" |
| 108 | + Text="kW" |
| 109 | + VerticalAlignment="Center" /> |
| 110 | + </StackPanel> |
| 111 | + |
| 112 | + <TextBlock |
| 113 | + Margin="0,16,0,0" |
| 114 | + Style="{StaticResource PropertyHeaderTextBlockStyle}" |
| 115 | + Text="Connection type" /> |
| 116 | + |
| 117 | + <ComboBox |
| 118 | + Margin="0,4,0,0" |
| 119 | + SelectedIndex="1" |
| 120 | + Width="160"> |
| 121 | + <ComboBoxItem>CCS</ComboBoxItem> |
| 122 | + <ComboBoxItem>NACS</ComboBoxItem> |
| 123 | + </ComboBox> |
| 124 | + |
| 125 | + <TextBlock |
| 126 | + Margin="0,16,0,0" |
| 127 | + Style="{StaticResource PropertyHeaderTextBlockStyle}" |
| 128 | + Text="Portal password" /> |
| 129 | + |
| 130 | + <PasswordBox |
| 131 | + HorizontalAlignment="Left" |
| 132 | + Margin="0,4,0,0" |
| 133 | + PlaceholderText="Enter your password" |
| 134 | + Width="160" /> |
| 135 | + <!-- Show TeachingTip --> |
| 136 | + </StackPanel> |
| 137 | + |
| 138 | + <StackPanel |
| 139 | + Grid.Column="2"> |
| 140 | + <CheckBox |
| 141 | + Checked="ToggleButton_OnChecked" |
| 142 | + Content="Is debug mode enabled" /> |
| 143 | + |
| 144 | + <TextBlock |
| 145 | + Margin="0,12,0,0" |
| 146 | + Style="{StaticResource PropertyHeaderTextBlockStyle}" |
| 147 | + Text="Debug level verbosity" /> |
| 148 | + |
| 149 | + <RadioButtons |
| 150 | + x:Name="MyRadioButtons" |
| 151 | + IsEnabled="False" |
| 152 | + SelectedIndex="1"> |
| 153 | + <x:String>Minimal</x:String> |
| 154 | + <x:String>Normal</x:String> |
| 155 | + <x:String>Detailed</x:String> |
| 156 | + </RadioButtons> |
| 157 | + <!-- Show TeachingTip --> |
| 158 | + </StackPanel> |
| 159 | + </Grid> |
| 160 | + |
| 161 | + <StackPanel |
| 162 | + x:Name="ProgressStackPanel" |
| 163 | + Margin="0,24,0,0" |
| 164 | + Orientation="Horizontal" |
| 165 | + Visibility="Collapsed"> |
| 166 | + <ProgressRing |
| 167 | + Foreground="Blue" |
| 168 | + Height="30" |
| 169 | + IsActive="True" |
| 170 | + Width="30" /> |
| 171 | + |
| 172 | + <TextBlock |
| 173 | + Margin="12,0,0,0" |
| 174 | + Text="Configuring TLCEV T1..." |
| 175 | + VerticalAlignment="Center" /> |
| 176 | + </StackPanel> |
| 177 | + |
| 178 | + <InfoBar |
| 179 | + x:Name="InfoBar" |
| 180 | + IsClosable="False" |
| 181 | + Margin="0,12,0,0" |
| 182 | + Message="TLCEV T1 configured successfully" |
| 183 | + Severity="Success" |
| 184 | + Visibility="Collapsed" /> |
| 185 | + </StackPanel> |
| 186 | + </StackPanel> |
| 187 | +</Page> |
0 commit comments