Skip to content

Commit

Permalink
Updates badgeGrid to have four (4) RowDefinitions to better center ad…
Browse files Browse the repository at this point in the history
…ditionalContentOverBadge and the badge control when the NotificationMessage has a large height
  • Loading branch information
amkuchta committed Jun 9, 2018
1 parent cc2617a commit f1db25e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Enterwell.Clients.Wpf.Notifications/Themes/Generic.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,19 +171,21 @@
VerticalAlignment="Stretch"
HorizontalAlignment="Stretch">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<!-- Additional Content - Over Badge -->
<ContentControl x:Name="additionalContentOverBadge"
Grid.Row="0"
Grid.Row="1"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Margin="10,2,0,2"
Padding="4,2"
Content="{TemplateBinding AdditionalContentOverBadge}" />
<!-- Badge -->
<TextBlock Grid.Row="1"
<TextBlock Grid.Row="2"
Style="{StaticResource NotificationBadgeAccentStyle}"
Text="{TemplateBinding BadgeText}"
Visibility="{TemplateBinding BadgeVisibility}" />
Expand Down

0 comments on commit f1db25e

Please sign in to comment.