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