}
set
{
- selectorData?.TranslatableText.UpdateIfNeeds(this, value);
+ selectorData?.TranslatableText?.Reset(this);
SetValue(TranslatableTextProperty, value);
}
}
set
{
SetValue(TranslatablePlaceholderTextProperty, value);
- selectorData?.TranslatablePlaceholderText.UpdateIfNeeds(this, value);
+ selectorData?.TranslatablePlaceholderText?.Reset(this);
}
}
private string translatablePlaceholderText
set
{
SetValueAndForceSendChangeSignal(TextProperty, value);
- selectorData?.Text.UpdateIfNeeds(this, value);
+ selectorData?.Text?.Reset(this);
NotifyPropertyChanged();
}
}
set
{
SetValue(FontFamilyProperty, value);
- selectorData?.FontFamily.UpdateIfNeeds(this, value);
+ selectorData?.FontFamily?.Reset(this);
NotifyPropertyChanged();
}
}
set
{
SetValue(PointSizeProperty, value);
- selectorData?.PointSize.UpdateIfNeeds(this, value);
+ selectorData?.PointSize?.Reset(this);
NotifyPropertyChanged();
}
}
set
{
SetValue(TextColorProperty, value);
- selectorData?.TextColor.UpdateIfNeeds(this, value);
+ selectorData?.TextColor?.Reset(this);
NotifyPropertyChanged();
}
}
set
{
SetValue(PlaceholderTextColorProperty, value);
- selectorData?.PlaceholderTextColor.UpdateIfNeeds(this, value);
+ selectorData?.PlaceholderTextColor?.Reset(this);
NotifyPropertyChanged();
}
}
set
{
SetValue(PrimaryCursorColorProperty, value);
- selectorData?.PrimaryCursorColor.UpdateIfNeeds(this, value);
+ selectorData?.PrimaryCursorColor?.Reset(this);
NotifyPropertyChanged();
}
}
set
{
SetValue(PixelSizeProperty, value);
- selectorData?.PixelSize.UpdateIfNeeds(this, value);
+ selectorData?.PixelSize?.Reset(this);
NotifyPropertyChanged();
}
}
}
}
- private TextFieldSelectorData SelectorData
- {
- get
- {
- if (selectorData == null)
- {
- selectorData = new TextFieldSelectorData();
- }
- return selectorData;
- }
- }
+ private TextFieldSelectorData EnsureSelectorData() => selectorData ?? (selectorData = new TextFieldSelectorData());
/// <summary>
/// Get the InputMethodContext instance.