コード例 #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);
 }