|
<UserControl x:Class="HomeGrownMVVM.View.ClassicQueryView"
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:cmd="clr-namespace:VvmScaffolding;assembly=VvmScaffolding" mc:Ignorable="d"
d:DesignHeight="100" d:DesignWidth="400"
>
<Grid HorizontalAlignment="Stretch">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<StackPanel Orientation="Vertical"
Grid.Row="0"
>
<TextBlock Margin="5"
Foreground="Fuchsia"
Text="{Binding QueryText}"
/>
<TextBox Margin="5"
Width="300"
HorizontalAlignment="Left"
cmd:KeyDownCommandBinder.Command="{Binding KeyDownCommand}"
cmd:KeyDownCommandBinder.CommandParameter="{Binding Text, RelativeSource={RelativeSource self}}"
>
</TextBox>
<Button Margin="5"
HorizontalAlignment="Center"
Padding="5,2"
Content="Submit your Pretend Query"
Command="{Binding SubmitCommand}"
>
</Button>
</StackPanel>
<ContentPresenter Height="Auto"
Margin="7,7,2,2"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Grid.Row="1"
Visibility="{Binding ShowQueryResults}"
cmd:LoadedCommandBinder.Command="{Binding LoadedCommand}"
cmd:LoadedCommandBinder.CommandParameter="[ClassicView]"
>
</ContentPresenter>
<!--Loaded="ContentPresenter_Loaded"-->
</Grid>
</UserControl>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.