Skip to content

Commit a7f43ab

Browse files
committed
fix: cut Description TextBox & Add Button in editing window
1 parent a09094c commit a7f43ab

1 file changed

Lines changed: 18 additions & 12 deletions

File tree

Desktop/Tasks/TaskEditing.xaml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,23 @@
66
mc:Ignorable="d"
77
Title="TaskEditing" Height="{StaticResource PopupWindowHeight}" Width="{StaticResource PopupWindowWidth}"
88
WindowStartupLocation="CenterScreen">
9-
<Grid Margin="{StaticResource DefaultMargin}">
10-
<StackPanel>
11-
<Label Content="_Name:" Target="{Binding ElementName=Name}" />
12-
<TextBox Name="Name" />
13-
<Label Content="_Description:" Margin="{StaticResource SmallMarginAtTop}"
14-
Target="{Binding ElementName=Description}" />
15-
<TextBox Name="Description" Height="{StaticResource DescriptionTextBoxHeight}" AcceptsReturn="True"
16-
TextWrapping="Wrap"
17-
VerticalAlignment="Stretch" />
18-
<Button IsDefault="True" Content="Save" Margin="{StaticResource BigMarginAtTop}"
19-
HorizontalAlignment="Right" Click="SaveTask" />
20-
</StackPanel>
9+
<Grid FocusManager.FocusedElement="{Binding ElementName=Name}" Margin="{StaticResource DefaultMargin}">
10+
<Grid.RowDefinitions>
11+
<RowDefinition Height="Auto" />
12+
<RowDefinition Height="Auto" />
13+
<RowDefinition Height="Auto" />
14+
<RowDefinition />
15+
<RowDefinition Height="Auto" />
16+
</Grid.RowDefinitions>
17+
<Label Grid.Row="0" Content="_Name:" Target="{Binding ElementName=Name}" />
18+
<TextBox Grid.Row="1" Name="Name" />
19+
<Label Grid.Row="2" Content="_Description:" Margin="{StaticResource SmallMarginAtTop}"
20+
Target="{Binding ElementName=Description}" />
21+
<TextBox Grid.Row="3" Name="Description" Height="{StaticResource DescriptionTextBoxHeight}"
22+
AcceptsReturn="True"
23+
TextWrapping="Wrap"
24+
VerticalAlignment="Stretch" />
25+
<Button Grid.Row="4" IsDefault="True" Content="Save" Margin="{StaticResource BigMarginAtTop}"
26+
HorizontalAlignment="Right" Click="SaveTask" />
2127
</Grid>
2228
</Window>

0 commit comments

Comments
 (0)