This is a migrated thread and some comments may be shown as answers.

Unable to show popup

3 Answers 286 Views
Popup
This is a migrated thread and some comments may be shown as answers.
jeljeljel
Top achievements
Rank 2
jeljeljel asked on 08 Jul 2019, 02:53 PM

I am using FreshMVVM and am having trouble getting a simple popup example to work.  

For my View I have...

<?xml version="1.0" encoding="utf-8" ?>     <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"                  xmlns:telerikPrimitives="clr-namespace:Telerik.XamarinForms.Primitives;assembly=Telerik.XamarinForms.Primitives"                  xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"                  xmlns:local="clr-namespace:SampleApp"                  x:Class="SampleApp.MainPage"
        <StackLayout>             <telerikPrimitives:RadPopup.Popup>                 <telerikPrimitives:RadPopup IsOpen="{Binding Dialog1Open}">                     <Label Text="Dialog 1" />                 </telerikPrimitives:RadPopup>             </telerikPrimitives:RadPopup.Popup
            <telerikPrimitives:RadPopup.Popup>                 <telerikPrimitives:RadPopup IsOpen="{Binding Dialog2Open}">                     <Label Text="Dialog 2" />                 </telerikPrimitives:RadPopup>             </telerikPrimitives:RadPopup.Popup
            <Button Text="Open Dialog 1" Command="{Binding OpenDialog1}" />             <Button Text="Open Dialog 2" Command="{Binding OpenDialog2}" /> 
        </StackLayout
    </ContentPage>

and the ViewModel I have...

public class MainPageModel : FreshBasePageModel {
    public bool Dialog1Open { get; set; }
    public bool Dialog2Open { get; set; }
  
    public ICommand OpenDialog1
    {
        get         {
            return new Command(() => { Dialog1Open = true; });
        }
    }
  
    public ICommand OpenDialog2
    {
        get         {
            return new Command(() => { Dialog2Open = true; });
        }
    }
}

How would this code be changed to make my example work?

The complete source for my example can be found at...

https://github.com/JohnLivermore/SampleXamarinApp/tree/telerikpopupexample

3 Answers, 1 is accepted

Sort by
0
jeljeljel
Top achievements
Rank 2
answered on 08 Jul 2019, 02:53 PM
0
jeljeljel
Top achievements
Rank 2
answered on 08 Jul 2019, 06:15 PM
Never mind, I figured out the issue.
0
Accepted
Yana
Telerik team
answered on 09 Jul 2019, 06:25 AM
Hi John,

I am glad to hear you've resolved the case.

Let me know if you have any additional questions related to RadPopup control.

Regards,
Yana
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Popup
Asked by
jeljeljel
Top achievements
Rank 2
Answers by
jeljeljel
Top achievements
Rank 2
Yana
Telerik team
Share this question
or