wip
This commit is contained in:
+1
-1
@@ -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()
|
||||||
|
|||||||
+1
-1
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user