diff options
Diffstat (limited to 'Xamarin.Forms.Platform.WP8/NavigationMenuRenderer.cs')
-rw-r--r-- | Xamarin.Forms.Platform.WP8/NavigationMenuRenderer.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.WP8/NavigationMenuRenderer.cs b/Xamarin.Forms.Platform.WP8/NavigationMenuRenderer.cs index 83af320b..3613a180 100644 --- a/Xamarin.Forms.Platform.WP8/NavigationMenuRenderer.cs +++ b/Xamarin.Forms.Platform.WP8/NavigationMenuRenderer.cs @@ -2,6 +2,7 @@ using System.ComponentModel; using System.Windows.Media.Imaging; using Microsoft.Phone.Controls; +using Xamarin.Forms.Internals; namespace Xamarin.Forms.Platform.WinPhone { @@ -9,6 +10,8 @@ namespace Xamarin.Forms.Platform.WinPhone { const int Spacing = 12; + INavigationMenuController ElementController => Element; + protected override void OnElementChanged(ElementChangedEventArgs<NavigationMenu> e) { base.OnElementChanged(e); @@ -63,7 +66,7 @@ namespace Xamarin.Forms.Platform.WinPhone hubTile.Background = target.BackgroundColor.ToBrush(); Page tmp = target; - hubTile.Tap += (sender, args) => Element.SendTargetSelected(tmp); + hubTile.Tap += (sender, args) => ElementController.SendTargetSelected(tmp); hubTile.SetValue(System.Windows.Controls.Grid.RowProperty, y); hubTile.SetValue(System.Windows.Controls.Grid.ColumnProperty, x); |