Hello,
I have defined a NumericTextBox with this code:
<xForms:SfNumericTextBox x:Name="precio"
HorizontalOptions="FillAndExpand"
TextColor="Chartreuse"
FontSize="22"
FontFamily="{StaticResource FuenteNormal}"
FormatString="c"
BackgroundColor="Black"
MaximumNumberDecimalDigits="2"
Maximum="999"
WatermarkColor="Chartreuse"
IsEnabled="True"/>
...and i want to read its value to be able to save it and update a listview...
The code to update values:
public void GrabarButton_OnClicked(object sender, EventArgs e)
{
var vEmployee = new Employee()
{
EmpName = nombreComboBox.Text,
Company = marcaComboBox.Text,
Department = articulosComboBox.Text,
Designation = familiaComboBox.Text,
Qualification = packComboBox.Text,
Precio = (int)precio.Value
};
App.DAUtil.SaveEmployee(vEmployee);
Navigation.PushAsync(new CatalogoArticulos());
...but with the code Precio = (int)precio.Value, don´t save anyting...without this line, saves all (all, but without Precio)
Variable Precio is defined as int, the other variables are defined as string and works well, but i can´t make it work including Precio...
What am i doing wrong? How can i read the value of NumericTextBox?
Thanks in advance