Added NotificationFlyoutPlacement enum

This commit is contained in:
Daniel Clark
2021-02-25 15:08:45 +00:00
parent bc42e0cff1
commit 36f2953fd4
2 changed files with 21 additions and 0 deletions
@@ -40,6 +40,11 @@ namespace TheXamlGuy.NotificationFlyout.Uwp.UI.Controls
typeof(NotificationFlyoutContextMenu), typeof(NotificationFlyout),
new PropertyMetadata(null, OnContextMenuPropertyChanged));
public static DependencyProperty PlacementProperty =
DependencyProperty.Register(nameof(Placement),
typeof(NotificationFlyoutContextMenu), typeof(NotificationFlyout),
new PropertyMetadata(NotificationFlyoutPlacement.Auto));
private static INotificationFlyoutApplication _applicationInstance;
public event EventHandler<object> Closed;
@@ -80,6 +85,11 @@ namespace TheXamlGuy.NotificationFlyout.Uwp.UI.Controls
set => SetValue(LightIconSourceProperty, value);
}
public NotificationFlyoutPlacement Placement
{
get => (NotificationFlyoutPlacement)GetValue(PlacementProperty);
set => SetValue(PlacementProperty, value);
}
public ElementTheme RequestedTheme
{
get => (ElementTheme)GetValue(RequestedThemeProperty);
@@ -0,0 +1,11 @@
namespace TheXamlGuy.NotificationFlyout.Uwp.UI.Controls
{
public enum NotificationFlyoutPlacement
{
Auto,
Left,
Top,
Right,
Bottom
}
}