C# Class BindableApplicationBar.BindableApplicationBarButton

A wrapper for an ApplicationBarIconButton object that adds support for data binding.
To be used in BindableApplicationBar.Buttons or BindableApplicationBar.ButtonTemplate The class derives from FrameworkElement to support DataContext and bindings.
Inheritance: System.Windows.FrameworkElement
Afficher le fichier Open project: nokiadatagathering/WP7-Official Class Usage Examples

Méthodes publiques

Свойство Type Description
CommandParameterProperty System.Windows.DependencyProperty
CommandProperty System.Windows.DependencyProperty
IconUriProperty System.Windows.DependencyProperty
IsEnabledProperty System.Windows.DependencyProperty
TextProperty DependencyProperty

Méthodes publiques

Méthode Description
Attach ( Microsoft.Phone.Shell.ApplicationBar parentApplicationBar, int i ) : void

Creates an associated ApplicationBarIconButton and attaches it to the specified application bar.

Detach ( ) : void

Detaches the associated ApplicationBarIconButton from the ApplicationBar and from this instance.

Méthodes protégées

Méthode Description
OnCommandChanged ( ICommand oldCommand, ICommand newCommand ) : void

Provides derived classes an opportunity to handle changes to the Command property.

OnCommandParameterChanged ( object oldCommandParameter, object newCommandParameter ) : void

Provides derived classes an opportunity to handle changes to the CommandParameter property.

OnIconUriChanged ( Uri oldIconUri, Uri newIconUri ) : void

Provides derived classes an opportunity to handle changes to the IconUri property.

OnIsEnabledChanged ( bool oldIsEnabled, bool newIsEnabled ) : void

Provides derived classes an opportunity to handle changes to the IsEnabled property.

OnTextChanged ( string oldText, string newText ) : void

Provides derived classes an opportunity to handle changes to the Text property.

Private Methods

Méthode Description
ApplicationBarIconButtonClick ( object sender, EventArgs e ) : void
CommandCanExecuteChanged ( object sender, EventArgs e ) : void
OnCommandChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles changes to the Command property.

OnCommandParameterChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the CommandParameter property.

OnIconUriChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the IconUri property.

OnIsEnabledChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the IsEnabled property.

OnTextChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the Text property.

Method Details

Attach() public méthode

Creates an associated ApplicationBarIconButton and attaches it to the specified application bar.
public Attach ( Microsoft.Phone.Shell.ApplicationBar parentApplicationBar, int i ) : void
parentApplicationBar Microsoft.Phone.Shell.ApplicationBar /// The application bar to attach to. ///
i int /// The index at which the associated /// will be inserted. ///
Résultat void

Detach() public méthode

Detaches the associated ApplicationBarIconButton from the ApplicationBar and from this instance.
public Detach ( ) : void
Résultat void

OnCommandChanged() protected méthode

Provides derived classes an opportunity to handle changes to the Command property.
protected OnCommandChanged ( ICommand oldCommand, ICommand newCommand ) : void
oldCommand ICommand The old Command value.
newCommand ICommand The new Command value.
Résultat void

OnCommandParameterChanged() protected méthode

Provides derived classes an opportunity to handle changes to the CommandParameter property.
protected OnCommandParameterChanged ( object oldCommandParameter, object newCommandParameter ) : void
oldCommandParameter object /// The old CommandParameter value. ///
newCommandParameter object /// The new CommandParameter value. ///
Résultat void

OnIconUriChanged() protected méthode

Provides derived classes an opportunity to handle changes to the IconUri property.
protected OnIconUriChanged ( Uri oldIconUri, Uri newIconUri ) : void
oldIconUri Uri The old IconUri value.
newIconUri Uri The new IconUri value.
Résultat void

OnIsEnabledChanged() protected méthode

Provides derived classes an opportunity to handle changes to the IsEnabled property.
protected OnIsEnabledChanged ( bool oldIsEnabled, bool newIsEnabled ) : void
oldIsEnabled bool The old IsEnabled value.
newIsEnabled bool The new IsEnabled value.
Résultat void

OnTextChanged() protected méthode

Provides derived classes an opportunity to handle changes to the Text property.
protected OnTextChanged ( string oldText, string newText ) : void
oldText string The old Text value.
newText string The new Text value.
Résultat void

Property Details

CommandParameterProperty public_oe static_oe property

CommandParameter Dependency Property
public static DependencyProperty,System.Windows CommandParameterProperty
Résultat System.Windows.DependencyProperty

CommandProperty public_oe static_oe property

Command Dependency Property
public static DependencyProperty,System.Windows CommandProperty
Résultat System.Windows.DependencyProperty

IconUriProperty public_oe static_oe property

IconUri Dependency Property
public static DependencyProperty,System.Windows IconUriProperty
Résultat System.Windows.DependencyProperty

IsEnabledProperty public_oe static_oe property

IsEnabled Dependency Property
public static DependencyProperty,System.Windows IsEnabledProperty
Résultat System.Windows.DependencyProperty

TextProperty public_oe static_oe property

Text Dependency Property
public static DependencyProperty TextProperty
Résultat DependencyProperty