Hi,
I'm using a sfMaskedEdit control with the clear button visible. However when I click the clear button, the property binded to the "Value" property doesn't get updated / cleared.
XAML:
<maskedEdit:SfMaskedEdit Grid.Row="1" Grid.ColumnSpan="3"
ValidationMode="KeyPress"
Value="{Binding API, Mode=TwoWay}"
Style="{DynamicResource BorderlessMaskedEditDefaultStyle}"
Watermark="569C08..."
Margin="16,2,16,4"
/>
CS:
private string _api = "";
public string API
{
get => _api;
set
{
if (_api == value) return;
_api = value;
OnPropertyChanged();
}
}
It works fine, when I type in some text for the API. Is there a way to bind a command to "OnButtonPressed"? Or to set a default value when this button is clicked?
Thank you for helping out on that matter!