aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml
blob: dfedd05487302378a51c8224c57c5e2373762108 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<Window x:Class="Tango.UITests.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:collection="clr-namespace:System.Collections;assembly=mscorlib"
        xmlns:local="clr-namespace:Tango.UITests"
        xmlns:dragAndDrop="clr-namespace:Tango.DragAndDrop;assembly=Tango.DragAndDrop"
        xmlns:components="clr-namespace:Tango.Touch.Components;assembly=Tango.Touch"
        xmlns:controls="clr-namespace:Tango.SharedUI.Controls;assembly=Tango.SharedUI"
		xmlns:keyboard="clr-namespace:Tango.Touch.Keyboard;assembly=Tango.Touch"
        xmlns:touch="clr-namespace:Tango.Touch.Controls;assembly=Tango.Touch"
        mc:Ignorable="d"
        Title="MainWindow" Height="1000" Width="800" DataContext="{Binding RelativeSource={RelativeSource Self}}" Background="{StaticResource TangoMidBackgroundBrush}">

    <Grid>
        <touch:TouchPanel>
            <Grid DataContext="{Binding RelativeSource={RelativeSource AncestorType=Window},Path=DataContext}">
                <StackPanel HorizontalAlignment="Center" VerticalAlignment="Top" Width="300" Margin="0 0 0 0">
                    <!--<touch:TouchTextBox FontSize="20" Watermark="Email" Text="{Binding Email,NotifyOnValidationError=True,ValidatesOnDataErrors=True}" />-->
                    <touch:TouchTextBox IsPassword="True"  Margin="0 30 0 0" FontSize="20" Watermark="Password" keyboard:KeyboardView.Action="Go" Text="{Binding Password}" />
                    <touch:TouchButton Height="50" Margin="0 60 0 0" IsDefault="True" Command="{Binding LoginCommand}">LOGIN</touch:TouchButton>

                    <touch:TouchCheckBox Margin="0 20 0 0">Keep me signed in</touch:TouchCheckBox>

                    <touch:TouchComboBox ItemsSource="{Binding RelativeSource={RelativeSource AncestorType=Window},Path=Persons}" />

                    <touch:TouchListBox Background="White" SelectionMode="Multiple" Height="50" Margin="0 40 0 0" BorderThickness="1" BorderBrush="Black" ItemsSource="{Binding Names}">
                        <touch:TouchListBox.ItemTemplate>
                            <DataTemplate>
                                <Border BorderBrush="Gray" BorderThickness="0 0 0 1" Padding="5">
                                    <TextBlock Text="{Binding}"></TextBlock>
                                </Border>
                            </DataTemplate>
                        </touch:TouchListBox.ItemTemplate>
                    </touch:TouchListBox>

                    <touch:TouchExpander Margin="0 40 0 0" Header="This is the header" Padding="10">
                        <StackPanel>
                            <touch:TouchCheckBox Margin="0 20 0 0">Item 1</touch:TouchCheckBox>
                            <touch:TouchCheckBox Margin="0 20 0 0">Item 2</touch:TouchCheckBox>
                            <touch:TouchCheckBox Margin="0 20 0 0">Item 3</touch:TouchCheckBox>
                            <touch:TouchCheckBox Margin="0 20 0 0">Item 4</touch:TouchCheckBox>
                        </StackPanel>
                    </touch:TouchExpander>

                    <touch:TouchToggleSlider Height="40" Width="90" Style="{StaticResource TouchToggleButtonCheck}"/>

                    <touch:TouchAutoComplete Margin="0 20 0 0" FontSize="20" Watermark="enter something..." ItemsSource="{Binding RelativeSource={RelativeSource AncestorType=Window},Path=Persons}" DisplayMemberPath="LastName" />

                    <touch:TouchNumericTextBox HasDecimalPoint="False" Margin="0 20 0 0" Value="0" />

                    <touch:TouchSlider/>

                    <Slider IsSelectionRangeEnabled="True" SelectionStart="0" SelectionEnd="{Binding RelativeSource={RelativeSource Self},Path=Value}" TickPlacement="Both" Minimum="0" Maximum="100" Ticks="1 5 10 100" Margin="10" />
                </StackPanel>
            </Grid>
        </touch:TouchPanel>
    </Grid>
</Window>