C# 클래스 BindableApplicationBar.BindableApplicationBar

상속: System.Windows.Controls.Control
파일 보기 프로젝트 열기: nokiadatagathering/WP7-Official 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
BackgroundColorProperty System.Windows.DependencyProperty
BindableOpacityProperty System.Windows.DependencyProperty
ButtonTemplateProperty System.Windows.DependencyProperty
ButtonsProperty System.Windows.DependencyProperty
ButtonsSourceProperty System.Windows.DependencyProperty
ForegroundColorProperty System.Windows.DependencyProperty
IsMenuEnabledProperty System.Windows.DependencyProperty
IsMenuVisibleProperty System.Windows.DependencyProperty
IsVisibleProperty System.Windows.DependencyProperty
MenuItemTemplateProperty System.Windows.DependencyProperty
MenuItemsProperty System.Windows.DependencyProperty
MenuItemsSourceProperty System.Windows.DependencyProperty
ModeProperty System.Windows.DependencyProperty

공개 메소드들

메소드 설명
Attach ( PhoneApplicationPage parentPage ) : void

Attaches the BindableApplicationBar to the specified page, creating the ApplicationBar if required and adding the buttons and menu items specified in the Buttons and MenuItems properties.

BindableApplicationBar ( ) : System

Initializes a new instance of the BindableApplicationBar class.

Detach ( PhoneApplicationPage parentPage ) : void

Detaches from the specified page, removing all the buttons and menu items specified in the Buttons and MenuItems properties.

Note: The code in this method has not been tested and is likely not to work properly, will possibly raise exceptions and leak memory.

보호된 메소드들

메소드 설명
OnBackgroundColorChanged ( Color oldBackgroundColor, Color newBackgroundColor ) : void

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

OnBindableOpacityChanged ( double oldBindableOpacity, double newBindableOpacity ) : void

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

OnButtonTemplateChanged ( System.Windows.DataTemplate oldButtonTemplate, System.Windows.DataTemplate newButtonTemplate ) : void

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

OnButtonsChanged ( DependencyObjectCollection oldButtons, DependencyObjectCollection newButtons ) : void

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

OnButtonsSourceChanged ( IEnumerable oldButtonsSource, IEnumerable newButtonsSource ) : void

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

OnForegroundColorChanged ( Color oldForegroundColor, Color newForegroundColor ) : void

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

OnIsMenuEnabledChanged ( bool oldIsMenuEnabled, bool newIsMenuEnabled ) : void

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

OnIsMenuVisibleChanged ( bool oldIsMenuVisible, bool newIsMenuVisible ) : void

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

OnIsVisibleChanged ( bool oldIsVisible, bool newIsVisible ) : void

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

OnMenuItemTemplateChanged ( System.Windows.DataTemplate oldMenuItemTemplate, System.Windows.DataTemplate newMenuItemTemplate ) : void

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

OnMenuItemsChanged ( DependencyObjectCollection oldMenuItems, DependencyObjectCollection newMenuItems ) : void

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

OnMenuItemsSourceChanged ( IEnumerable oldMenuItemsSource, IEnumerable newMenuItemsSource ) : void

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

OnModeChanged ( ApplicationBarMode oldMode, ApplicationBarMode newMode ) : void

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

비공개 메소드들

메소드 설명
ApplicationBarStateChanged ( object sender, Microsoft.Phone.Shell.ApplicationBarStateChangedEventArgs e ) : void
AttachButton ( BindableApplicationBarButton button, int i ) : void
AttachButtons ( IEnumerable buttons ) : void
AttachMenuItem ( BindableApplicationBarMenuItem menuItem, int i ) : void
AttachMenuItems ( IEnumerable menuItems ) : void
ButtonsCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
ButtonsSourceCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
DetachButton ( BindableApplicationBarButton button ) : void
DetachButtons ( IEnumerable buttons ) : void
DetachMenuItem ( BindableApplicationBarMenuItem menuItem ) : void
DetachMenuItems ( IEnumerable menuItems ) : void
GenerateButtonsFromSource ( ) : void
GenerateMenuItemsFromSource ( ) : void
MenuItemsCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
MenuItemsSourceCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
OnBackgroundColorChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles changes to the BackgroundColor property.

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

Handles changes to the BindableOpacity property.

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

Handles changes to the ButtonTemplate property.

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

Handles changes to the Buttons property.

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

Handles changes to the ButtonsSource property.

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

Handles changes to the ForegroundColor property.

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

Handles changes to the IsMenuEnabled property.

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

Handles changes to the IsMenuVisible property.

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

Handles changes to the IsVisible property.

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

Handles changes to the MenuItemTemplate property.

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

Handles changes to the MenuItems property.

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

Handles changes to the MenuItemsSource property.

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

Handles changes to the Mode property.

OnPageLoaded ( object sender, RoutedEventArgs e ) : void
OnPageNavigating ( object sender, System e ) : void
SetButtonsEnabled ( ) : void
SynchronizeProperties ( ) : void

메소드 상세

Attach() 공개 메소드

Attaches the BindableApplicationBar to the specified page, creating the ApplicationBar if required and adding the buttons and menu items specified in the Buttons and MenuItems properties.
public Attach ( PhoneApplicationPage parentPage ) : void
parentPage PhoneApplicationPage The parentPage to attach to.
리턴 void

BindableApplicationBar() 공개 메소드

Initializes a new instance of the BindableApplicationBar class.
public BindableApplicationBar ( ) : System
리턴 System

Detach() 공개 메소드

Detaches from the specified page, removing all the buttons and menu items specified in the Buttons and MenuItems properties.
Note: The code in this method has not been tested and is likely not to work properly, will possibly raise exceptions and leak memory.
public Detach ( PhoneApplicationPage parentPage ) : void
parentPage PhoneApplicationPage The parentPage.
리턴 void

OnBackgroundColorChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the BackgroundColor property.
protected OnBackgroundColorChanged ( Color oldBackgroundColor, Color newBackgroundColor ) : void
oldBackgroundColor Color /// The old BackgroundColor value. ///
newBackgroundColor Color /// The new BackgroundColor value. ///
리턴 void

OnBindableOpacityChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the BindableOpacity property.
protected OnBindableOpacityChanged ( double oldBindableOpacity, double newBindableOpacity ) : void
oldBindableOpacity double /// The old BindableOpacity value. ///
newBindableOpacity double /// The new BindableOpacity value. ///
리턴 void

OnButtonTemplateChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the ButtonTemplate property.
protected OnButtonTemplateChanged ( System.Windows.DataTemplate oldButtonTemplate, System.Windows.DataTemplate newButtonTemplate ) : void
oldButtonTemplate System.Windows.DataTemplate The old button template.
newButtonTemplate System.Windows.DataTemplate The new button template.
리턴 void

OnButtonsChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the Buttons property.
protected OnButtonsChanged ( DependencyObjectCollection oldButtons, DependencyObjectCollection newButtons ) : void
oldButtons DependencyObjectCollection The old buttons.
newButtons DependencyObjectCollection The new buttons.
리턴 void

OnButtonsSourceChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the ButtonsSource property.
protected OnButtonsSourceChanged ( IEnumerable oldButtonsSource, IEnumerable newButtonsSource ) : void
oldButtonsSource IEnumerable The old buttons source.
newButtonsSource IEnumerable The new buttons source.
리턴 void

OnForegroundColorChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the ForegroundColor property.
protected OnForegroundColorChanged ( Color oldForegroundColor, Color newForegroundColor ) : void
oldForegroundColor Color /// The old ForegroundColor value. ///
newForegroundColor Color /// The new ForegroundColor value. ///
리턴 void

OnIsMenuEnabledChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the IsMenuEnabled property.
protected OnIsMenuEnabledChanged ( bool oldIsMenuEnabled, bool newIsMenuEnabled ) : void
oldIsMenuEnabled bool /// The old IsMenuEnabled value. ///
newIsMenuEnabled bool /// The new IsMenuEnabled value. ///
리턴 void

OnIsMenuVisibleChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the IsMenuVisible property.
protected OnIsMenuVisibleChanged ( bool oldIsMenuVisible, bool newIsMenuVisible ) : void
oldIsMenuVisible bool /// The old IsMenuVisible value. ///
newIsMenuVisible bool /// The new IsMenuVisible value. ///
리턴 void

OnIsVisibleChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the IsVisible property.
protected OnIsVisibleChanged ( bool oldIsVisible, bool newIsVisible ) : void
oldIsVisible bool The old IsVisible value.
newIsVisible bool The new IsVisible value.
리턴 void

OnMenuItemTemplateChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the MenuItemTemplate property.
protected OnMenuItemTemplateChanged ( System.Windows.DataTemplate oldMenuItemTemplate, System.Windows.DataTemplate newMenuItemTemplate ) : void
oldMenuItemTemplate System.Windows.DataTemplate /// The old MenuItemTemplate value. ///
newMenuItemTemplate System.Windows.DataTemplate /// The new MenuItemTemplate value. ///
리턴 void

OnMenuItemsChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the MenuItems property.
protected OnMenuItemsChanged ( DependencyObjectCollection oldMenuItems, DependencyObjectCollection newMenuItems ) : void
oldMenuItems DependencyObjectCollection The old menu items.
newMenuItems DependencyObjectCollection The new menu items.
리턴 void

OnMenuItemsSourceChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the MenuItemsSource property.
protected OnMenuItemsSourceChanged ( IEnumerable oldMenuItemsSource, IEnumerable newMenuItemsSource ) : void
oldMenuItemsSource IEnumerable /// The old MenuItemsSource value. ///
newMenuItemsSource IEnumerable /// The new MenuItemsSource value. ///
리턴 void

OnModeChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the Mode property.
protected OnModeChanged ( ApplicationBarMode oldMode, ApplicationBarMode newMode ) : void
oldMode ApplicationBarMode The old Mode value.
newMode ApplicationBarMode The new Mode value.
리턴 void

프로퍼티 상세

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

BackgroundColor Dependency Property
public static DependencyProperty,System.Windows BackgroundColorProperty
리턴 System.Windows.DependencyProperty

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

BindableOpacity Dependency Property
public static DependencyProperty,System.Windows BindableOpacityProperty
리턴 System.Windows.DependencyProperty

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

ButtonTemplate Dependency Property
public static DependencyProperty,System.Windows ButtonTemplateProperty
리턴 System.Windows.DependencyProperty

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

Buttons Dependency Property
public static DependencyProperty,System.Windows ButtonsProperty
리턴 System.Windows.DependencyProperty

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

ButtonsSource Dependency Property
public static DependencyProperty,System.Windows ButtonsSourceProperty
리턴 System.Windows.DependencyProperty

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

ForegroundColor Dependency Property
public static DependencyProperty,System.Windows ForegroundColorProperty
리턴 System.Windows.DependencyProperty

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

IsMenuEnabled Dependency Property
public static DependencyProperty,System.Windows IsMenuEnabledProperty
리턴 System.Windows.DependencyProperty

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

IsMenuVisible Dependency Property
public static DependencyProperty,System.Windows IsMenuVisibleProperty
리턴 System.Windows.DependencyProperty

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

IsVisible Dependency Property
public static DependencyProperty,System.Windows IsVisibleProperty
리턴 System.Windows.DependencyProperty

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

MenuItemTemplate Dependency Property
public static DependencyProperty,System.Windows MenuItemTemplateProperty
리턴 System.Windows.DependencyProperty

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

MenuItems Dependency Property
public static DependencyProperty,System.Windows MenuItemsProperty
리턴 System.Windows.DependencyProperty

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

MenuItemsSource Dependency Property
public static DependencyProperty,System.Windows MenuItemsSourceProperty
리턴 System.Windows.DependencyProperty

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

Mode Dependency Property
public static DependencyProperty,System.Windows ModeProperty
리턴 System.Windows.DependencyProperty