Added notification icon fallback support

This commit is contained in:
Daniel Clark
2021-02-14 20:59:45 +00:00
parent 9869470c24
commit 50033d9aa3
14 changed files with 80 additions and 42 deletions
@@ -46,11 +46,6 @@ namespace TheXamlGuy.NotificationFlyout.Uwp.UI.Controls
flyout.Hide();
}
internal void UpdateThemeVisualState()
{
}
public void SetFlyoutPlacement(string placement)
{
if (!_isLoaded)
@@ -73,7 +68,7 @@ namespace TheXamlGuy.NotificationFlyout.Uwp.UI.Controls
});
}
internal void SetOwningFlyout(NotificationFlyout flyout)
public void SetOwningFlyout(NotificationFlyout flyout)
{
_notificationFlyout = flyout;
@@ -103,12 +98,8 @@ namespace TheXamlGuy.NotificationFlyout.Uwp.UI.Controls
});
}
private NotificationFlyoutPresenter _flyoutPresenter;
protected override void OnApplyTemplate()
{
_flyoutPresenter = GetTemplateChild("FlyoutPresenter") as NotificationFlyoutPresenter;
_flyout = GetTemplateChild("Flyout") as Flyout;
if (_flyout != null)
{