Skip to content

Commit

Permalink
Support multilne formats
Browse files Browse the repository at this point in the history
  • Loading branch information
danielchalmers committed Jul 23, 2024
1 parent e4cab6c commit f309d83
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions DesktopClock/SettingsWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
<ColumnDefinition Width="*" />
<ColumnDefinition Width="20" />
</Grid.ColumnDefinitions>
<TextBox Grid.Column="0" Text="{Binding Settings.Format, UpdateSourceTrigger=PropertyChanged}" />
<TextBox Grid.Column="0"
Text="{Binding Settings.Format, UpdateSourceTrigger=PropertyChanged}"
AcceptsReturn="True"
MaxLines="3" />
<ComboBox Grid.Column="1"
DisplayMemberPath="Example"
ItemsSource="{x:Static local:DateFormatExample.DefaultExamples}"
Expand All @@ -49,7 +52,9 @@
</TextBlock>

<TextBlock Text="Countdown Format:" />
<TextBox Text="{Binding Settings.CountdownFormat, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
<TextBox Text="{Binding Settings.CountdownFormat, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
AcceptsReturn="True"
MaxLines="3" />
<TextBlock FontStyle="Italic"
FontSize="10"
Margin="0,0,0,12">
Expand Down

0 comments on commit f309d83

Please sign in to comment.