Dear Syncfusion ,
I have an SfPicker that works without any problems on Android, but it won't show up in UWP.
1) In app.xaml.cs (method OnLaunched) I have add following lines :
List<Assembly> assembliesToInclude = new List<Assembly>();
assembliesToInclude.Add(typeof(SfPickerRenderer).GetTypeInfo().Assembly);
// replaces Xamarin.Forms.Forms.Init(e);
Xamarin.Forms.Forms.Init(e, assembliesToInclude);
2) in mainpage.cs I have add this line
SfPickerRenderer.Init();
3) Version of the SfPicker =15.3451.0.33
4) Version of Xamarin.Forms = 2.3.4.270
5) PCL sXaml
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:syncfusionPicker="clr-namespace:Syncfusion.SfPicker.XForms;assembly=Syncfusion.SfPicker.XForms" >
<syncfusionPicker:SfPicker x:Name="contextMenuPicker" ShowHeader="True" HeaderText="Maak een keuze" PickerMode="Dialog" ShowFooter="true" OkButtonClicked="contextMenuPicker_OkButtonClicked" IsOpen="False" IsVisible="False" HeightRequest="0"></syncfusionPicker:SfPicker>
<StackLayout x:Name="stackMain">..........
.....
6) PCL C#
public void InitContextMenu()
{
List<String> list = new List<String>();
list.Add("Add Item");
list.Add("Delete Item");
contextMenuPicker.ItemsSource = list;
contextMenuPicker.Parent = stackMain;
}
private void DataGrid_GridLongPressed(object sender, Syncfusion.SfDataGrid.XForms.GridLongPressedEventArgs e)
{
contextMenuPicker.IsOpen = true;
}
Can you please help me out. I'm using the SfPicker as Contextmenu. On android it runs good , in UWP nothing appears on the screen.