/// <summary> /// Is the associated frame visible. /// </summary> /// <param name="context">Context used to build the cell view tree.</param> /// <param name="frame">The frame with the associated visibility.</param> public virtual bool IsVisible(IFocusCellViewTreeContext context, IFocusNodeFrameWithVisibility frame) { bool IsVisible = true; IsVisible &= ((IFocusInternalControllerView)context.ControllerView).CollectionHasItems(context.StateView, PropertyName, MaxInvisibleCount); return(IsVisible); }
/// <summary> /// Is the associated frame visible. /// </summary> /// <param name="context">Context used to build the cell view tree.</param> /// <param name="frame">The frame with the associated visibility.</param> public virtual bool IsVisible(IFocusCellViewTreeContext context, IFocusNodeFrameWithVisibility frame) { bool IsVisible = true; IsVisible &= !((IFocusInternalControllerView)context.ControllerView).StringMatchTextPattern(context.StateView, PropertyName, TextPattern); return(IsVisible); }
/// <summary> /// Is the associated frame visible. /// </summary> /// <param name="context">Context used to build the cell view tree.</param> /// <param name="frame">The frame with the associated visibility.</param> public virtual bool IsVisible(IFocusCellViewTreeContext context, IFocusNodeFrameWithVisibility frame) { bool IsVisible = true; IsVisible &= !((IFocusInternalControllerView)context.ControllerView).IsFirstItem(context.StateView); return(IsVisible); }
/// <summary> /// Is the associated frame visible. /// </summary> /// <param name="context">Context used to build the cell view tree.</param> /// <param name="frame">The frame with the associated visibility.</param> public virtual bool IsVisible(IFocusCellViewTreeContext context, IFocusNodeFrameWithVisibility frame) { bool IsVisible = true; IsVisible &= ((IFocusInternalControllerView)context.ControllerView).IsOptionalNodeAssigned(context.StateView, PropertyName); return(IsVisible); }
/// <summary> /// Is the associated frame visible. /// </summary> /// <param name="context">Context used to build the cell view tree.</param> /// <param name="frame">The frame with the associated visibility.</param> public virtual bool IsBlockVisible(IFocusCellViewTreeContext context, IFocusBlockFrame frame) { bool IsVisible = true; IsVisible &= ((IFocusInternalControllerView)context.ControllerView).IsInReplicatedBlock(context.BlockStateView); return(IsVisible); }
/// <summary> /// Is the associated frame visible. /// </summary> /// <param name="context">Context used to build the cell view tree.</param> /// <param name="frame">The frame with the associated visibility.</param> public virtual bool IsVisible(IFocusCellViewTreeContext context, IFocusNodeFrameWithVisibility frame) { bool IsVisible = true; IsVisible &= !((IFocusInternalControllerView)context.ControllerView).DiscreteHasDefaultValue(context.StateView, PropertyName, DefaultValue); return(IsVisible); }
/// <summary> /// Is the associated frame visible. /// </summary> /// <param name="context">Context used to build the cell view tree.</param> /// <param name="frame">The frame with the associated visibility.</param> public virtual bool IsVisible(IFocusCellViewTreeContext context, IFocusNodeFrameWithVisibility frame) { foreach (IFocusNodeFrameVisibility Item in Items) { if (Item.IsVisible(context, frame)) { return(true); } } return(false); }
private protected override IFrameCellViewTreeContext InitializedCellViewTreeContext(IFrameNodeStateView stateView) { IFocusCellViewTreeContext Context = (IFocusCellViewTreeContext)CreateCellViewTreeContext(stateView); ForcedCommentStateView = null; IList <FocusFrameSelectorList> SelectorStack = ((IFocusNodeStateView)stateView).GetSelectorStack(); foreach (FocusFrameSelectorList Selectors in SelectorStack) { Context.AddSelectors(Selectors); } return(Context); }
private protected virtual void ValidateEmptyCellView(IFocusCellViewTreeContext context, IFocusEmptyCellView emptyCellView) { Debug.Assert(emptyCellView.StateView == context.StateView); IFocusCellViewCollection ParentCellView = emptyCellView.ParentCellView; }
private protected override void ValidateEmptyCellView(IFocusCellViewTreeContext context, IFocusEmptyCellView emptyCellView) { Debug.Assert(((ILayoutEmptyCellView)emptyCellView).StateView == ((ILayoutCellViewTreeContext)context).StateView); ILayoutCellViewCollection ParentCellView = ((ILayoutEmptyCellView)emptyCellView).ParentCellView; }