2
Vote

Errors in BaseAppBarItem

description

1)
MenuItem.IsEnabled can't be set:
FIX (line 91):
Change DependencyProperty IsEnabledProperty = DependencyProperty.Register("IsEnabled", ...
to
DependencyProperty IsEnabledProperty = DependencyProperty.RegisterAttached("IsEnabled",...
 
2) Invalid cast for MenuItems in OnVisibilityChanged
FIX (line 158):
var button = ((AdvancedApplicationBarIconButton)d);
to
var button = ((BaseAppBarItem)d);

comments