//var WeightStyle = new Style(typeof(SfNumericUpDown))
//{
// Setters = {
// new Setter { Property = SfNumericUpDown.HorizontalOptionsProperty, Value = LayoutOptions.FillAndExpand},
// new Setter { Property = SfNumericUpDown.VerticalOptionsProperty, Value = LayoutOptions.FillAndExpand},
// new Setter { Property = SfNumericUpDown.TextAlignmentProperty, Value = LayoutOptions.Center},
//new Setter { Property = SfNumericUpDown.TextColorProperty, Value = Color.Black},
// new Setter { Property = SfNumericUpDown.ParsingModeProperty, Value=ParsingMode.Decimal},
// new Setter { Property = SfNumericUpDown.FormatStringProperty, Value= WeightFormat},
// new Setter { Property = SfNumericUpDown.CultureProperty, Value=Helpers.Settings.CurrentCultureInfo},
// }
//};
//this.Resources["NumericStyle"] = NumericStyle;
<numeric:SfNumericUpDown MaximumDecimalDigits="2" Style="{DynamicResource NumericStyle}"
x:Name="weightNumericUpDown" Maximum="100000"
Value="0" >