public object SetDataContext(FlayoutParamaters parameters, object dataContext) { var region = _regionManager.Regions[RegionNames.FlyoutRegion]; var flyout = region.Views.Where(v => v is IFlyoutView && ((IFlyoutView)v).FlyoutName.Equals(parameters.FlyoutName)).FirstOrDefault() as Flyout; flyout.DataContext = dataContext; return(dataContext); }
public void ShowFlyout(FlayoutParamaters flyoutEntity) { var region = _regionManager.Regions[RegionNames.FlyoutRegion]; if (region != null) { var flyout = region.Views.Where(v => v is IFlyoutView && ((IFlyoutView)v).FlyoutName.Equals(flyoutEntity.FlyoutName)).FirstOrDefault() as Flyout; if (flyout != null) { flyout.IsOpen = true; } } }
public bool CanShowFlyout(FlayoutParamaters flyoutEntity) { return(true); }