static UserHandPreferenceStateTrigger() { handPreference = new UISettings().HandPreference; HandPreferenceProperty = DependencyProperty .Register( "HandPreference", typeof(HandPreference), typeof(UserHandPreferenceStateTrigger), new PropertyMetadata(HandPreference.RightHanded, OnHandPreferencePropertyChanged) ); }
static UserHandPreferenceStateTrigger() { handPreference = new Windows.UI.ViewManagement.UISettings().HandPreference; }
private void OnHandPreferenceChanged(HandPreference value) { IsActive = handPreference == value; }