private static PhoneApplicationPageBackKeyPressCommandBehavior GetOrCreateBehavior(Microsoft.Phone.Controls.PhoneApplicationPage buttonBase) { PhoneApplicationPageBackKeyPressCommandBehavior behavior = buttonBase.GetValue(BackKeyPressCommandBehaviorProperty) as PhoneApplicationPageBackKeyPressCommandBehavior; if (behavior == null) { behavior = new PhoneApplicationPageBackKeyPressCommandBehavior(buttonBase); buttonBase.SetValue(BackKeyPressCommandBehaviorProperty, behavior); } return(behavior); }
public static void SetCommandParameter(Microsoft.Phone.Controls.PhoneApplicationPage buttonBase, object parameter) { buttonBase.SetValue(CommandParameterProperty, parameter); }
public static void SetCommand(Microsoft.Phone.Controls.PhoneApplicationPage buttonBase, ICommand command) { buttonBase.SetValue(CommandProperty, command); }
public static void SetApplicationBar(Microsoft.Phone.Controls.PhoneApplicationPage obj, ApplicationBar value) { obj.SetValue(ApplicationBarProperty, value); }