If I do binding as below. So I want this can be calculated in ViewModel and update UI, or can be entered by user. But if user enters, it freezes UI and It cause some kind of deadlock.
<Style x:Key="NumericStyle" TargetType="numeric:SfNumericUpDown">
<Setter Property="HorizontalOptions" Value="FillAndExpand"/>
<Setter Property="VerticalOptions" Value="FillAndExpand"/>
<Setter Property="TextColor" Value="Black"/>
<Setter Property="ParsingMode" Value="Decimal"/>
<Setter Property="SpinButtonAlignment" Value="Both"/>
</Style>
<numeric:SfNumericUpDown Maximum="100" MaximumDecimalDigits="2" Style="{StaticResource NumericStyle}" x:Name="bodyfatNumericUpDown"
FormatString="p" PercentDisplayMode="Value" Value="{Binding BodyStat.Bodyfat}" />
private decimal bodyfat { get; set; }
[Column("bodyfat")]
public decimal Bodyfat
{
get { return bodyfat; }
set
{
bodyfat = value;
OnPropertyChanged("Bodyfat");
}
}