UISettings.TextScaleFactorChanged Event


Occurs when the system text size setting is changed.

// Register
event_token TextScaleFactorChanged(TypedEventHandler<UISettings, IInspectable const &> const& handler) const;

// Revoke with event_token
void TextScaleFactorChanged(event_token const* cookie) const;

// Revoke with event_revoker
TextScaleFactorChanged_revoker TextScaleFactorChanged(auto_revoke_t, TypedEventHandler<UISettings, IInspectable const &> const& handler) const;
public event TypedEventHandler<UISettings,object> TextScaleFactorChanged;
function onTextScaleFactorChanged(eventArgs) { /* Your code */ }
uISettings.addEventListener("textscalefactorchanged", onTextScaleFactorChanged);
uISettings.removeEventListener("textscalefactorchanged", onTextScaleFactorChanged);
- or -
uISettings.ontextscalefactorchanged = onTextScaleFactorChanged;
Public Custom Event TextScaleFactorChanged As TypedEventHandler(Of UISettings, Object) 

Event Type



The value ranges from 1 to 2.25.


Not all text is scaled by the same factor. Generally speaking, the larger text is, the less it’s affected by scaling.

Applies to

See also