fix(ui): notes add row stays visible, English 'Add' label, Enter to add
This commit is contained in:
@@ -13,10 +13,15 @@
|
|||||||
<TextBlock Classes="meta" VerticalAlignment="Center" Text="{Binding CurrentDayLabel}"/>
|
<TextBlock Classes="meta" VerticalAlignment="Center" Text="{Binding CurrentDayLabel}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<StackPanel DockPanel.Dock="Top" Orientation="Horizontal" Spacing="8" Margin="0,12,0,8">
|
<DockPanel DockPanel.Dock="Top" Margin="0,12,0,8">
|
||||||
<TextBox Width="420" PlaceholderText="Neue Notiz…" Text="{Binding NewBulletText}"/>
|
<Button DockPanel.Dock="Right" Classes="btn" Content="Add" Margin="8,0,0,0"
|
||||||
<Button Classes="btn" Content="Hinzufügen" Command="{Binding AddBulletCommand}"/>
|
Command="{Binding AddBulletCommand}"/>
|
||||||
</StackPanel>
|
<TextBox PlaceholderText="Neue Notiz…" Text="{Binding NewBulletText}">
|
||||||
|
<TextBox.KeyBindings>
|
||||||
|
<KeyBinding Gesture="Enter" Command="{Binding AddBulletCommand}"/>
|
||||||
|
</TextBox.KeyBindings>
|
||||||
|
</TextBox>
|
||||||
|
</DockPanel>
|
||||||
|
|
||||||
<ScrollViewer>
|
<ScrollViewer>
|
||||||
<ItemsControl ItemsSource="{Binding Bullets}">
|
<ItemsControl ItemsSource="{Binding Bullets}">
|
||||||
|
|||||||
Reference in New Issue
Block a user