blob: 563cd49a6169b0d2c61d5f505a2e5cac20d79452 (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
<UserControl x:Class="Tango.PPC.BugReporting.Views.MainView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:vm="clr-namespace:Tango.PPC.BugReporting.ViewModels"
xmlns:tfs="clr-namespace:Tango.TFS;assembly=Tango.TFS"
xmlns:keyboard="clr-namespace:Tango.Touch.Keyboard;assembly=Tango.Touch"
xmlns:touch="clr-namespace:Tango.Touch.Controls;assembly=Tango.Touch"
xmlns:global="clr-namespace:Tango.PPC.BugReporting"
xmlns:local="clr-namespace:Tango.PPC.BugReporting.Views"
mc:Ignorable="d"
d:DesignHeight="1280" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=vm:MainViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.MainViewVM}">
<Grid Background="{StaticResource TangoMidBackgroundBrush}" IsEnabled="{Binding IsFree}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<Border Padding="20" Background="{StaticResource TangoPrimaryBackgroundBrush}" BorderThickness="0 0 0 1" BorderBrush="{StaticResource TangoDividerBrush}">
<Border.Effect>
<DropShadowEffect Color="Silver" ShadowDepth="0" BlurRadius="20" Opacity="1" />
</Border.Effect>
<TextBlock VerticalAlignment="Center" FontSize="{StaticResource TangoHeaderFontSize}" FontWeight="SemiBold">Report Issue</TextBlock>
</Border>
<Grid Grid.Row="1">
<DockPanel>
<touch:TouchDropShadowBorder DockPanel.Dock="Bottom" Margin="20" Padding="20">
<DockPanel>
<touch:TouchButton Command="{Binding SubmitCommand}" DockPanel.Dock="Right" Style="{StaticResource TangoHollowButton}" Width="200" Height="60">SUBMIT</touch:TouchButton>
<Grid Visibility="{Binding IsBusy,Converter={StaticResource BooleanToVisibilityConverter}}">
<StackPanel Orientation="Horizontal">
<touch:TouchBusyIndicator Width="45" Height="45" IsIndeterminate="{Binding IsBusy}"></touch:TouchBusyIndicator>
<TextBlock VerticalAlignment="Center" Margin="10 0 0 0" Foreground="{StaticResource TangoPrimaryAccentBrush}">Submitting report..</TextBlock>
</StackPanel>
</Grid>
</DockPanel>
</touch:TouchDropShadowBorder>
<StackPanel>
<touch:TouchDropShadowBorder Margin="20" Padding="20">
<StackPanel>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<touch:TouchIcon Icon="PencilCircle" Width="30"></touch:TouchIcon>
<TextBlock FontWeight="Medium" Margin="20 0 0 0" FontSize="{StaticResource TangoExpanderHeaderFontSize}">Details</TextBlock>
</StackPanel>
<StackPanel Margin="0 40 0 0">
<DockPanel>
<touch:TouchIcon VerticalAlignment="Bottom" Icon="Pencil" Width="22" Height="22" />
<touch:TouchTextBox FontSize="{StaticResource TangoTitleFontSize}" Margin="10 0 0 0" Watermark="Title" Text="{Binding Title}" KeyboardAction="Next"></touch:TouchTextBox>
</DockPanel>
<DockPanel Margin="0 40 0 0">
<touch:TouchIcon VerticalAlignment="Bottom" Icon="UserTieSolid" Width="22" Height="22" />
<touch:TouchAutoComplete FontSize="{StaticResource TangoTitleFontSize}" Margin="10 0 0 0" Watermark="Created By" ItemsSource="{Binding Members}" AutoCompleteProvider="{Binding TeamMembersProvider}" SelectedItem="{Binding FromMember,Mode=TwoWay}" KeyboardAction="Next"></touch:TouchAutoComplete>
</DockPanel>
<DockPanel Margin="0 40 0 0">
<touch:TouchIcon VerticalAlignment="Bottom" Icon="UserTagSolid" Width="22" Height="22" />
<touch:TouchAutoComplete FontSize="{StaticResource TangoTitleFontSize}" Margin="10 0 0 0" Watermark="Assigned To" ItemsSource="{Binding Members}" AutoCompleteProvider="{Binding TeamMembersProvider}" SelectedItem="{Binding ToMember,Mode=TwoWay}" KeyboardAction="Next"></touch:TouchAutoComplete>
</DockPanel>
<DockPanel Margin="0 40 0 0">
<touch:TouchIcon VerticalAlignment="Bottom" Icon="CommentAlertOutline" Width="22" Height="22" />
<touch:TouchComboBox FontSize="{StaticResource TangoTitleFontSize}" ItemsSource="{Binding Source={x:Type tfs:Severity},Converter={StaticResource EnumToItemsSourceConverter},ConverterParameter='false'}" SelectedItem="{Binding Severity}" DisplayMemberPath="DisplayName" ValuePath="Value" Margin="10 0 0 0" Watermark="Severity" ></touch:TouchComboBox>
</DockPanel>
</StackPanel>
</StackPanel>
</touch:TouchDropShadowBorder>
<touch:TouchDropShadowBorder Margin="20" Padding="20">
<StackPanel>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<touch:TouchIcon Icon="Repeat" Width="30"></touch:TouchIcon>
<TextBlock FontWeight="Medium" Margin="20 0 0 0" FontSize="{StaticResource TangoExpanderHeaderFontSize}">Steps To Reproduce</TextBlock>
</StackPanel>
<StackPanel Margin="0 40 0 0">
<DockPanel>
<touch:TouchIcon VerticalAlignment="Top" Icon="ChevronRight" Width="24" />
<TextBox Margin="10 0 0 0" Text="{Binding Steps}" FocusVisualStyle="{x:Null}" BorderBrush="{StaticResource TangoDividerBrush}" Foreground="{StaticResource TangoDarkForegroundBrush}" AcceptsReturn="True" TextWrapping="Wrap" Height="80" Padding="5" keyboard:KeyboardView.Mode="AlphaNumeric" keyboard:KeyboardView.Action="Return" />
</DockPanel>
</StackPanel>
</StackPanel>
</touch:TouchDropShadowBorder>
</StackPanel>
</DockPanel>
</Grid>
</Grid>
</UserControl>
|