This commit is contained in:
Daniel Clark
2021-02-05 01:42:11 +00:00
parent 45a9eb9cd2
commit 275bded665
3 changed files with 3 additions and 3 deletions
@@ -23,7 +23,7 @@ namespace NotificationFlyout.Uwp.UI.Controls
{ {
if (_root == null) return; if (_root == null) return;
var flyout = FlyoutBase.GetAttachedFlyout(_root); var flyout = FlyoutBase.GetAttachedFlyout(_root);
flyout.ShowAt(_root, new FlyoutShowOptions { Placement = placementMode }); flyout.ShowAt(_root, new FlyoutShowOptions { Placement = placementMode, ShowMode = FlyoutShowMode.Standard });
} }
public void ShowFlyout() public void ShowFlyout()
@@ -8,7 +8,7 @@
<ControlTemplate TargetType="controls:NotificationFlyoutPresenter"> <ControlTemplate TargetType="controls:NotificationFlyoutPresenter">
<Grid x:Name="Root"> <Grid x:Name="Root">
<FlyoutBase.AttachedFlyout> <FlyoutBase.AttachedFlyout>
<Flyout ShouldConstrainToRootBounds="False" ShowMode="Standard"> <Flyout ShouldConstrainToRootBounds="False">
<ContentControl Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" /> <ContentControl Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" />
</Flyout> </Flyout>
</FlyoutBase.AttachedFlyout> </FlyoutBase.AttachedFlyout>
@@ -56,7 +56,7 @@ namespace NotificationFlyout.Wpf.UI.Controls
{ {
var taskbarState = _taskbarHelper.GetCurrentState(); var taskbarState = _taskbarHelper.GetCurrentState();
var flyoutPlacement = FlyoutPlacementMode.Bottom; var flyoutPlacement = FlyoutPlacementMode.Auto;
switch (taskbarState.Position) switch (taskbarState.Position)
{ {
case TaskbarPosition.Left: case TaskbarPosition.Left: