feat: add DialogFocusHint attached property.
This commit is contained in:
@@ -17,7 +17,10 @@
|
||||
<GradientStop Offset="0.9" Color="{DynamicResource SemiLightBlue1Color}" />
|
||||
</LinearGradientBrush>
|
||||
</UserControl.Background>
|
||||
<Grid Margin="24" RowDefinitions="Auto, *, Auto" MinWidth="400">
|
||||
<Grid
|
||||
MinWidth="400"
|
||||
Margin="24"
|
||||
RowDefinitions="Auto, *, Auto">
|
||||
<TextBlock
|
||||
Grid.Row="0"
|
||||
Margin="8"
|
||||
@@ -45,7 +48,10 @@
|
||||
Grid.Column="1"
|
||||
Margin="32,8,0,8"
|
||||
Label="Owner">
|
||||
<TextBox u:FormItem.Label="Owner" Text="{Binding Owner}" />
|
||||
<TextBox
|
||||
u:FocusHelper.DialogFocusHint="True"
|
||||
u:FormItem.Label="Owner"
|
||||
Text="{Binding Owner}" />
|
||||
</u:FormItem>
|
||||
<u:FormItem
|
||||
Grid.Row="1"
|
||||
@@ -69,9 +75,20 @@
|
||||
HorizontalAlignment="Right"
|
||||
Orientation="Horizontal"
|
||||
Spacing="8">
|
||||
<Button Command="{Binding DialogCommand}" Content="Dialog" Theme="{DynamicResource SolidButton}" />
|
||||
<Button Command="{Binding OKCommand}" Content="OK" Theme="{DynamicResource SolidButton}" Classes="Tertiary"/>
|
||||
<Button Command="{Binding CancelCommand}" Content="Cancel" Theme="{DynamicResource SolidButton}" Classes="Tertiary"/>
|
||||
<Button
|
||||
Command="{Binding DialogCommand}"
|
||||
Content="Dialog"
|
||||
Theme="{DynamicResource SolidButton}" />
|
||||
<Button
|
||||
Classes="Tertiary"
|
||||
Command="{Binding OKCommand}"
|
||||
Content="OK"
|
||||
Theme="{DynamicResource SolidButton}" />
|
||||
<Button
|
||||
Classes="Tertiary"
|
||||
Command="{Binding CancelCommand}"
|
||||
Content="Cancel"
|
||||
Theme="{DynamicResource SolidButton}" />
|
||||
<ComboBox>
|
||||
<ComboBoxItem>A</ComboBoxItem>
|
||||
<ComboBoxItem>B</ComboBoxItem>
|
||||
@@ -79,5 +96,5 @@
|
||||
</ComboBox>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
|
||||
</UserControl>
|
||||
|
||||
Reference in New Issue
Block a user