public override Flyout CreateFlyoutControl(IFlyoutBaseVm baseVm) { var name = baseVm.GetType().Name; if (name == typeof(UpsertClientFoVm).Name) { var view = new UpsertClientFo { DataContext = baseVm }; return(view); } if (name == typeof(UpsertAddressFoVm).Name) { var view = new UpsertAddressFo { DataContext = baseVm }; return(view); } if (name == typeof(LastOrderFoVm).Name) { var view = new LastOrderFo { DataContext = baseVm }; return(view); } return(null); }
public void AddOrUpdateFlyouts(IFlyoutBaseVm flyout) { var flyoutType = flyout.GetType(); var oldFlyout = Flyouts.FirstOrDefault(e => e.GetType().Name == flyoutType.Name); if (oldFlyout != null) { Flyouts.Remove(oldFlyout); } Flyouts.Add(BootStrapper.CreateFlyoutControl(flyout)); }
public virtual Flyout CreateFlyoutControl(IFlyoutBaseVm baseVm) { return(null); }