Hi Jayaleshwari,
It looks like it is validation that messes up the value. To reproduce the bug using your sample:
1. Change MainPage.xaml to this:
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataFormPassword"
xmlns:dataForm="clr-namespace:Syncfusion.XForms.DataForm;assembly=Syncfusion.SfDataForm.XForms"
x:Class="DataFormPassword.MainPage">
<ContentPage.Behaviors>
<local:DataFormBehavior/>
</ContentPage.Behaviors>
<StackLayout>
<dataForm:SfDataForm x:Name="dataForm" />
<Button Text="Validate"
HorizontalOptions="Center"
Clicked="Button_OnClicked"/>
</StackLayout>
</ContentPage>
2. Change MainPage.xaml.cs to this:
using System;
using Xamarin.Forms;
namespace DataFormPassword
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
private void Button_OnClicked(Object sender, EventArgs e)
{
dataForm.Validate();
String password = ((LoginInfo)dataForm.DataObject).Password;
}
}
}
3. Set a breakpoint on the line after the one that begins with "String password".
4. Run the UWP version of the program and click the "Validate" button.
When the breakpoint is hit, you will see that the value of "password" is all dots instead of the actual password value.
Thanks,
Chris