Skip to content

Commit

Permalink
NavigationViewItem input handling fixes (microsoft/microsoft-ui-xaml#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinnara committed Jun 12, 2020
1 parent 91f5bb6 commit 924d5e9
Show file tree
Hide file tree
Showing 11 changed files with 431 additions and 87 deletions.
2 changes: 1 addition & 1 deletion ModernWpf.Controls/Common/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static VisualStateGroup GetVisualStateGroup(FrameworkElement control, str
}
*/

public static void GotToStateIfGroupExists(Control control, string groupName, string stateName, bool useTransitions)
public static void GoToStateIfGroupExists(Control control, string groupName, string stateName, bool useTransitions)
{
//var visualStateGroup = GetVisualStateGroup(control, groupName);
//if (visualStateGroup != null)
Expand Down
19 changes: 19 additions & 0 deletions ModernWpf.Controls/Flyout/EventRevokers.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
namespace ModernWpf.Controls.Primitives
{
internal class FlyoutBaseClosingRevoker : EventRevoker<FlyoutBase, TypedEventHandler<FlyoutBase, FlyoutBaseClosingEventArgs>>
{
public FlyoutBaseClosingRevoker(FlyoutBase source, TypedEventHandler<FlyoutBase, FlyoutBaseClosingEventArgs> handler) : base(source, handler)
{
}

protected override void AddHandler(FlyoutBase source, TypedEventHandler<FlyoutBase, FlyoutBaseClosingEventArgs> handler)
{
source.Closing += handler;
}

protected override void RemoveHandler(FlyoutBase source, TypedEventHandler<FlyoutBase, FlyoutBaseClosingEventArgs> handler)
{
source.Closing -= handler;
}
}
}

0 comments on commit 924d5e9

Please sign in to comment.