C# 클래스 BindableApplicationBar.BindableApplicationBarMenuItem

A wrapper for an ApplicationBarMenuItem object that adds support for data binding.
To be used in BindableApplicationBar.MenuItems or BindableApplicationBar.MenuItemTemplate The class derives from FrameworkElement to support DataContext and bindings. Note that ApplicationBarMenuItem.Click event is not wrapped since /// the purpose of this class is to bind to view models and use Commands instead.
상속: System.Windows.FrameworkElement
파일 보기 프로젝트 열기: nokiadatagathering/WP7-Official 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CommandParameterProperty System.Windows.DependencyProperty
CommandProperty System.Windows.DependencyProperty
IsEnabledProperty System.Windows.DependencyProperty
TextProperty System.Windows.DependencyProperty

공개 메소드들

메소드 설명
Attach ( Microsoft.Phone.Shell.ApplicationBar parentApplicationBar, int i ) : void

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

Detach ( ) : void

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

보호된 메소드들

메소드 설명
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.

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.

비공개 메소드들

메소드 설명
ApplicationBarMenuItemClick ( 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, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles changes to the CommandParameter property.

OnIsEnabledChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles changes to the IsEnabled property.

OnTextChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles changes to the Text property.

메소드 상세

Attach() 공개 메소드

Creates an associated ApplicationBarMenuItem 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. ///
리턴 void

Detach() 공개 메소드

Detaches the associated ApplicationBarMenuItem from the ApplicationBar and from this instance.
public Detach ( ) : void
리턴 void

OnCommandChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the Command property.
protected OnCommandChanged ( ICommand oldCommand, ICommand newCommand ) : void
oldCommand ICommand The old command.
newCommand ICommand The new command.
리턴 void

OnCommandParameterChanged() 보호된 메소드

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. ///
리턴 void

OnIsEnabledChanged() 보호된 메소드

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.
리턴 void

OnTextChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the Text property.
protected OnTextChanged ( string oldText, string newText ) : void
oldText string The old text.
newText string The new text.
리턴 void

프로퍼티 상세

CommandParameterProperty 공개적으로 정적으로 프로퍼티

CommandParameter Dependency Property
public static DependencyProperty,System.Windows CommandParameterProperty
리턴 System.Windows.DependencyProperty

CommandProperty 공개적으로 정적으로 프로퍼티

Command Dependency Property
public static DependencyProperty,System.Windows CommandProperty
리턴 System.Windows.DependencyProperty

IsEnabledProperty 공개적으로 정적으로 프로퍼티

IsEnabled Dependency Property
public static DependencyProperty,System.Windows IsEnabledProperty
리턴 System.Windows.DependencyProperty

TextProperty 공개적으로 정적으로 프로퍼티

Text Dependency Property
public static DependencyProperty,System.Windows TextProperty
리턴 System.Windows.DependencyProperty