C# 클래스 Microsoft.Phone.Controls.ToggleSwitch

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

공개 프로퍼티들

프로퍼티 타입 설명
HeaderProperty System.Windows.DependencyProperty
HeaderTemplateProperty System.Windows.DependencyProperty
IsCheckedProperty System.Windows.DependencyProperty
SwitchForegroundProperty System.Windows.DependencyProperty

Private Properties

프로퍼티 타입 설명
ChangeVisualState void
OnChecked void
OnClick void
OnIndeterminate void
OnIsCheckedChanged void
OnUnchecked void
SetDefaultContent void

공개 메소드들

메소드 설명
OnApplyTemplate ( ) : void

Gets all the template parts and initializes the corresponding state.

ToString ( ) : string

Returns a T:System.String that represents the current T:System.Object .

ToggleSwitch ( ) : System

Initializes a new instance of the ToggleSwitch class.

보호된 메소드들

메소드 설명
OnContentChanged ( object oldContent, object newContent ) : void

Makes the content an "Off" or "On" string to match the state if the content is set to null in the design tool.

비공개 메소드들

메소드 설명
ChangeVisualState ( bool useTransitions ) : void

Change the visual state.

OnChecked ( object sender, RoutedEventArgs e ) : void

Mirrors the E:System.Windows.Controls.Primitives.ToggleButton.Checked event.

OnClick ( object sender, RoutedEventArgs e ) : void

Mirrors the E:System.Windows.Controls.Primitives.ToggleButton.Click event.

OnIndeterminate ( object sender, RoutedEventArgs e ) : void

Mirrors the E:System.Windows.Controls.Primitives.ToggleButton.Indeterminate event.

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

Invoked when the IsChecked DependencyProperty is changed.

OnUnchecked ( object sender, RoutedEventArgs e ) : void

Mirrors the E:System.Windows.Controls.Primitives.ToggleButton.Unchecked event.

SetDefaultContent ( ) : void

Makes the content an "Off" or "On" string to match the state.

메소드 상세

OnApplyTemplate() 공개 메소드

Gets all the template parts and initializes the corresponding state.
public OnApplyTemplate ( ) : void
리턴 void

OnContentChanged() 보호된 메소드

Makes the content an "Off" or "On" string to match the state if the content is set to null in the design tool.
protected OnContentChanged ( object oldContent, object newContent ) : void
oldContent object The old content.
newContent object The new content.
리턴 void

ToString() 공개 메소드

Returns a T:System.String that represents the current T:System.Object .
public ToString ( ) : string
리턴 string

ToggleSwitch() 공개 메소드

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

프로퍼티 상세

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

Identifies the Header DependencyProperty.
public static DependencyProperty,System.Windows HeaderProperty
리턴 System.Windows.DependencyProperty

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

Identifies the HeaderTemplate DependencyProperty.
public static DependencyProperty,System.Windows HeaderTemplateProperty
리턴 System.Windows.DependencyProperty

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

Identifies the IsChecked DependencyProperty.
public static DependencyProperty,System.Windows IsCheckedProperty
리턴 System.Windows.DependencyProperty

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

Identifies the SwitchForeground DependencyProperty.
public static DependencyProperty,System.Windows SwitchForegroundProperty
리턴 System.Windows.DependencyProperty