diff options
author | Samantha Houts <samantha@teamredwall.com> | 2016-06-17 03:10:18 -0700 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2016-06-17 11:10:18 +0100 |
commit | 925fc0aa588a060eb23fa16c1d225dd030012c23 (patch) | |
tree | 83676c25c29d97d9250516b217020ba85425796d /Xamarin.Forms.Platform.WinRT/MenuItemCommand.cs | |
parent | d44396a4534b1e2bc81143c809e4adaee656ab15 (diff) | |
download | xamarin-forms-925fc0aa588a060eb23fa16c1d225dd030012c23.tar.gz xamarin-forms-925fc0aa588a060eb23fa16c1d225dd030012c23.tar.bz2 xamarin-forms-925fc0aa588a060eb23fa16c1d225dd030012c23.zip |
Prep Cell & friends for removal of InternalsVisibleTo (#142)
* Prep Cell & friends for removal of InternalsVisibleTo
Includes:
- Cell
- EntryCell
- ListView
- MenuItem
- TableView
- ViewCell
- Toolbar
Moved extensions to Internal & removed TPH
* Update docs
* [Controls] Ignore Issue2411 on iOS <9
* [Controls] Formatting for Issue2411
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT/MenuItemCommand.cs')
-rw-r--r-- | Xamarin.Forms.Platform.WinRT/MenuItemCommand.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/MenuItemCommand.cs b/Xamarin.Forms.Platform.WinRT/MenuItemCommand.cs index 31574b44..6f65f315 100644 --- a/Xamarin.Forms.Platform.WinRT/MenuItemCommand.cs +++ b/Xamarin.Forms.Platform.WinRT/MenuItemCommand.cs @@ -13,6 +13,7 @@ namespace Xamarin.Forms.Platform.WinRT internal class MenuItemCommand : ICommand { readonly MenuItem _menuItem; + IMenuItemController Controller => _menuItem; public MenuItemCommand(MenuItem item) { @@ -22,14 +23,14 @@ namespace Xamarin.Forms.Platform.WinRT public virtual bool CanExecute(object parameter) { - return _menuItem.IsEnabled; + return Controller.IsEnabled; } public event EventHandler CanExecuteChanged; public void Execute(object parameter) { - _menuItem.Activate(); + Controller.Activate(); } void OnCanExecuteChanged() |