Пример #1
0
        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);
        }
Пример #2
0
        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;
                }
            }
        }
Пример #3
0
 public bool CanShowFlyout(FlayoutParamaters flyoutEntity)
 {
     return(true);
 }