TextBase and Button text-decoration and text-transform fixes

This commit is contained in:
Vladimir Enchev
2016-04-11 11:47:32 +03:00
parent 24d0db70bd
commit f06af80260
8 changed files with 52 additions and 5 deletions

View File

@@ -25,16 +25,20 @@ var textProperty = new dependencyObservable.Property(
"text",
"Button",
new proxy.PropertyMetadata("", dependencyObservable.PropertyMetadataSettings.AffectsLayout)
);
);
var formattedTextProperty = new dependencyObservable.Property(
"formattedText",
"Button",
new proxy.PropertyMetadata("", dependencyObservable.PropertyMetadataSettings.AffectsLayout)
);
);
function onTextPropertyChanged(data: dependencyObservable.PropertyChangeData) {
var button = <Button>data.object;
button.style._updateTextDecoration();
button.style._updateTextTransform();
button._onTextPropertyChanged(data);
}
@@ -63,6 +67,9 @@ export class Button extends view.View implements definition.Button {
if (this.formattedText) {
this.formattedText.updateSpansBindingContext(newValue);
}
this.style._updateTextDecoration();
this.style._updateTextTransform();
}
get text(): string {