@@ -99,41 +99,22 @@ export class Button extends view.View implements definition.Button {
9999 }
100100
101101 private onFormattedTextChanged ( eventData : observable . PropertyChangeData ) {
102- this . setFormattedTextPropertyToNative ( eventData . value ) ;
102+ this . _setFormattedTextPropertyToNative ( eventData . value ) ;
103103 }
104104
105105 public _onTextPropertyChanged ( data : dependencyObservable . PropertyChangeData ) {
106- if ( this . android ) {
107- this . android . setText ( data . newValue + "" ) ;
108- }
109- if ( this . ios ) {
110- // In general, if a property is not specified for a state, the default is to use
111- // the UIControlStateNormal value. If the value for UIControlStateNormal is not set,
112- // then the property defaults to a system value. Therefore, at a minimum, you should
113- // set the value for the normal state.
114- this . ios . setTitleForState ( data . newValue + "" , UIControlState . UIControlStateNormal ) ;
115- }
106+ //
116107 }
117108
118- private setFormattedTextPropertyToNative ( value ) {
119- if ( this . android ) {
120- this . android . setText ( value . _formattedText ) ;
121- }
122- if ( this . ios ) {
123- // In general, if a property is not specified for a state, the default is to use
124- // the UIControlStateNormal value. If the value for UIControlStateNormal is not set,
125- // then the property defaults to a system value. Therefore, at a minimum, you should
126- // set the value for the normal state.
127- this . ios . setAttributedTitleForState ( value . _formattedText , UIControlState . UIControlStateNormal ) ;
128- this . style . _updateTextDecoration ( ) ;
129- }
109+ public _setFormattedTextPropertyToNative ( value ) {
110+ //
130111 }
131112
132113 public _onFormattedTextPropertyChanged ( data : dependencyObservable . PropertyChangeData ) {
133114 if ( data . newValue ) {
134115 ( < formattedString . FormattedString > data . newValue ) . parent = this ;
135116 }
136- this . setFormattedTextPropertyToNative ( data . newValue ) ;
117+ this . _setFormattedTextPropertyToNative ( data . newValue ) ;
137118 }
138119
139120 public _addChildFromBuilder ( name : string , value : any ) : void {
0 commit comments