Last active
September 15, 2018 20:46
-
-
Save worldbeater/7ac3587f86fcd7afe45176ccdb0d30be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<StackPanel Width="300" VerticalAlignment="Center"> | |
<TextBlock Text="Feedback" Style="{StaticResource TitleTextBlockStyle}" /> | |
<TextBox Text="{x:Bind ViewModel.Title, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | |
MaxLength="{x:Bind ViewModel.TitleLengthMax}" | |
PlaceholderText="Title" /> | |
<TextBlock Style="{StaticResource CaptionTextBlockStyle}" Margin="0 5"> | |
<Run Text="{x:Bind ViewModel.TitleLength, Mode=OneWay}"/> | |
<Run Text="letters used from"/> | |
<Run Text="{x:Bind ViewModel.TitleLengthMax}"/> | |
</TextBlock> | |
<TextBox Text="{x:Bind ViewModel.Message, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | |
MaxLength="{Binding MessageLengthMax}" | |
PlaceholderText="Message" /> | |
<TextBlock Style="{StaticResource CaptionTextBlockStyle}" Margin="0 5"> | |
<Run Text="{x:Bind ViewModel.MessageLength, Mode=OneWay}"/> | |
<Run Text="letters used from"/> | |
<Run Text="{x:Bind ViewModel.MessageLengthMax}"/> | |
</TextBlock> | |
<ComboBox Width="170" SelectedIndex="{x:Bind ViewModel.Section, Mode=TwoWay}"> | |
<ComboBoxItem Content="User Interface"/> | |
<ComboBoxItem Content="Audio"/> | |
<ComboBoxItem Content="Video"/> | |
<ComboBoxItem Content="Voice"/> | |
</ComboBox> | |
<Grid Margin="0 5"> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition /> | |
<ColumnDefinition /> | |
</Grid.ColumnDefinitions> | |
<CheckBox IsChecked="{x:Bind ViewModel.Idea, Mode=TwoWay}" | |
Grid.Column="0" Content="Idea" /> | |
<CheckBox IsChecked="{x:Bind ViewModel.Issue, Mode=TwoWay}" | |
Grid.Column="1" Content="Issue" /> | |
</Grid> | |
<TextBlock Text="Please, fill in all the form fields." | |
Visibility="{x:Bind (Visibility)ViewModel.HasErrors, Mode=OneWay}" | |
Foreground="{ThemeResource SystemControlForegroundAccentBrush}"/> | |
<Button Width="150" Content="Send Feedback" Margin="0 5" | |
Command="{x:Bind ViewModel.Submit}" /> | |
</StackPanel> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment