SfPicker on UWP not showing

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.
      

3 Replies

MS Mariappan S Syncfusion Team October 17, 2017 10:34 AM UTC

Hi Asterinex 

Thank you for contacting Syncfusion support. 

We have checked the reported query. The reported issue occur due to setting IsVisible property to false in your code. We have prepared SfPicker sample using code which you have provided. Please download the sample from the following link. 

Sample link: SfPickerSample
 

Please look at the sample. If the issue still persist, could you please provide more information about your issue. It would be helpful for us to resolve your problem earlier. 

Regards, 
Mariappan S. 



AS asterinex October 19, 2017 04:53 AM UTC

Thx Mariappan. After downgrading my Xamarin.Forms version to 2.3.4 224, it works now.
I cannot go lower because of other components. I'm looking forward for the November Release which will support the latest Xamarin.Forms.



RB Rabhia Beham Kathar Mideenar Syncfusion Team October 20, 2017 06:58 AM UTC

Hi Asterinex,

Thanks for your update,

We are glad to hear that you have achieved your requirement.And the changes will be included in our Volume 4 which is expected to be rolled out by the end of November.We will let you know once it is released.

Please let us know if you have any concerns.

Regards,
Rabhia Beham K. 


Loader.
Up arrow icon