Skip to content

Commit 9803351

Browse files
Fix error message display for InAppNotification used in Sample App
1 parent ebb12e0 commit 9803351

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

Microsoft.Toolkit.Uwp.SampleApp/Pages/SampleController.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ protected override async void OnNavigatedTo(NavigationEventArgs e)
209209
method.Invoke(SamplePage, new object[] { e });
210210
}
211211
}
212-
catch
212+
catch (Exception ex)
213213
{
214-
ExceptionNotification.Show("Sample Page failed to load.");
214+
ExceptionNotification.Show("Sample Page failed to load: " + ex.Message);
215215
}
216216

217217
if (SamplePage != null)

Microsoft.Toolkit.Uwp.SampleApp/Styles/Generic.xaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -600,15 +600,18 @@
600600
Foreground="DarkRed"
601601
Glyph="" />
602602

603-
<ContentPresenter Grid.Column="1"
603+
<ContentPresenter x:Name="PART_Presenter"
604+
Grid.Column="1"
604605
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
605-
VerticalAlignment="Center"
606+
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
606607
HorizontalContentAlignment="Stretch"
607608
VerticalContentAlignment="Center"
609+
ContentTransitions="{TemplateBinding ContentTransitions}"
610+
FontWeight="SemiBold"
608611
TextWrapping="WrapWholeWords" />
609612

610613
<Button x:Name="PART_DismissButton"
611-
Grid.Column="3"
614+
Grid.Column="2"
612615
Margin="10,0,-10,0"
613616
AutomationProperties.Name="Dismiss"
614617
Content="&#xE894;"

0 commit comments

Comments
 (0)