|
| 1 | +<Page x:Class="UITests.App.Pages.RangeSelectorTestPage" |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:controls="using:CommunityToolkit.WinUI.UI.Controls" |
| 5 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 6 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 7 | + xmlns:sys="using:System" |
| 8 | + Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" |
| 9 | + mc:Ignorable="d"> |
| 10 | + <Grid HorizontalAlignment="Center" |
| 11 | + VerticalAlignment="Center"> |
| 12 | + <Grid.RowDefinitions> |
| 13 | + <RowDefinition Height="Auto" /> |
| 14 | + <RowDefinition Height="5" /> |
| 15 | + <RowDefinition Height="Auto" /> |
| 16 | + <RowDefinition Height="5" /> |
| 17 | + <RowDefinition Height="Auto" /> |
| 18 | + <RowDefinition Height="5" /> |
| 19 | + <RowDefinition Height="Auto" /> |
| 20 | + </Grid.RowDefinitions> |
| 21 | + <Grid.ColumnDefinitions> |
| 22 | + <ColumnDefinition MinWidth="100" /> |
| 23 | + <ColumnDefinition Width="5" /> |
| 24 | + <ColumnDefinition MinWidth="100" /> |
| 25 | + <ColumnDefinition Width="5" /> |
| 26 | + <ColumnDefinition MinWidth="100" /> |
| 27 | + <ColumnDefinition Width="5" /> |
| 28 | + <ColumnDefinition MinWidth="100" /> |
| 29 | + <ColumnDefinition Width="5" /> |
| 30 | + <ColumnDefinition MinWidth="100" /> |
| 31 | + <ColumnDefinition Width="5" /> |
| 32 | + <ColumnDefinition MinWidth="100" /> |
| 33 | + </Grid.ColumnDefinitions> |
| 34 | + |
| 35 | + <!-- Input --> |
| 36 | + <TextBox x:Name="inputStepFrequency" |
| 37 | + Grid.Row="0" |
| 38 | + Grid.Column="0" |
| 39 | + Header="Step Frequency" /> |
| 40 | + <Button x:Name="submitStepFrequency" |
| 41 | + Grid.Row="2" |
| 42 | + Grid.Column="0" |
| 43 | + Click="SubmitStepFrequency_Click" |
| 44 | + Content="Submit" /> |
| 45 | + |
| 46 | + <TextBox x:Name="inputMinimum" |
| 47 | + Grid.Row="0" |
| 48 | + Grid.Column="2" |
| 49 | + Header="Minimum" /> |
| 50 | + <Button x:Name="submitMinimum" |
| 51 | + Grid.Row="2" |
| 52 | + Grid.Column="2" |
| 53 | + Click="SubmitMinimum_Click" |
| 54 | + Content="Submit" /> |
| 55 | + |
| 56 | + <TextBox x:Name="inputRangeStart" |
| 57 | + Grid.Row="0" |
| 58 | + Grid.Column="4" |
| 59 | + Header="RangeStart" /> |
| 60 | + <Button x:Name="submitRangeStart" |
| 61 | + Grid.Row="2" |
| 62 | + Grid.Column="4" |
| 63 | + Click="SubmitRangeStart_Click" |
| 64 | + Content="Submit" /> |
| 65 | + |
| 66 | + <TextBox x:Name="inputRangeEnd" |
| 67 | + Grid.Row="0" |
| 68 | + Grid.Column="6" |
| 69 | + Header="RangeEnd" /> |
| 70 | + <Button x:Name="submitRangeEnd" |
| 71 | + Grid.Row="2" |
| 72 | + Grid.Column="6" |
| 73 | + Click="SubmitRangeEnd_Click" |
| 74 | + Content="Submit" /> |
| 75 | + |
| 76 | + <TextBox x:Name="inputMaximum" |
| 77 | + Grid.Row="0" |
| 78 | + Grid.Column="8" |
| 79 | + Header="Maximum" /> |
| 80 | + <Button x:Name="submitMaximum" |
| 81 | + Grid.Row="2" |
| 82 | + Grid.Column="8" |
| 83 | + Click="SubmitMaximum_Click" |
| 84 | + Content="Submit" /> |
| 85 | + |
| 86 | + <Button x:Name="submitAll" |
| 87 | + Grid.Row="0" |
| 88 | + Grid.RowSpan="3" |
| 89 | + Grid.Column="10" |
| 90 | + Click="SubmitAll_Click" |
| 91 | + Content="Submit All" /> |
| 92 | + |
| 93 | + <controls:RangeSelector x:Name="rangeSelector" |
| 94 | + Grid.Row="4" |
| 95 | + Grid.ColumnSpan="11" /> |
| 96 | + |
| 97 | + <!-- Results --> |
| 98 | + <TextBlock x:Name="currentStepFrequency" |
| 99 | + Grid.Row="6" |
| 100 | + Grid.Column="0" |
| 101 | + Text="{x:Bind rangeSelector.StepFrequency, Mode=OneWay}" /> |
| 102 | + |
| 103 | + <TextBlock x:Name="currentMinimum" |
| 104 | + Grid.Row="6" |
| 105 | + Grid.Column="2" |
| 106 | + Text="{x:Bind rangeSelector.Minimum, Mode=OneWay}" /> |
| 107 | + |
| 108 | + <TextBlock x:Name="currentRangeStart" |
| 109 | + Grid.Row="6" |
| 110 | + Grid.Column="4" |
| 111 | + Text="{x:Bind rangeSelector.RangeStart, Mode=OneWay}" /> |
| 112 | + |
| 113 | + <TextBlock x:Name="currentRangeEnd" |
| 114 | + Grid.Row="6" |
| 115 | + Grid.Column="6" |
| 116 | + Text="{x:Bind rangeSelector.RangeEnd, Mode=OneWay}" /> |
| 117 | + |
| 118 | + <TextBlock x:Name="currentMaximum" |
| 119 | + Grid.Row="6" |
| 120 | + Grid.Column="8" |
| 121 | + Text="{x:Bind rangeSelector.Maximum, Mode=OneWay}" /> |
| 122 | + </Grid> |
| 123 | +</Page> |
0 commit comments