Hi,
I´m create custom function that have screen interaction, to permit user define interaction from cell.
But when made SfPopUp.Show() , this can´t wait SfPopUp end to return and continue program. Custom Function ended before SfPopUp
Thanks in advance for any help.
Custom function Example :
public string InputRB(string args)
{
strReturn = String.Empty;
var splitArgs = args.Split(new char[] { CalcEngine.ParseArgumentSeparator });
DataTemplate templateview = new DataTemplate(() =>
{
StackLayout slMain = new StackLayout();
SfRadioGroup radioGroup = new SfRadioGroup();
foreach (var item in splitArgs)
{
SfRadioButton rb = new SfRadioButton();
rb.Text = item;
rb.StateChanged += RadioButton_StateChanged;
radioGroup.Children.Add(rb);
}
slMain.Children.Add(radioGroup);
return slMain;
});
PopUpInput ppcnt = new PopUpInput();
SfPopupLayout pplt = ppcnt.Content as SfPopupLayout;
pplt.PopupView.ContentTemplate = templateview;
pplt.Show(); /* returning from SFPopUp without wait SFPopUp close. */
return strReturn;
}
private void RadioButton_StateChanged(object sender, StateChangedEventArgs e)
{
strReturn = (sender as SfRadioButton).Text;
}