private static object CoerceVisibility(DependencyObject d, object baseValue) { RibbonContextualTabGroupItemsControl headerItemsControl = (RibbonContextualTabGroupItemsControl)d; if (headerItemsControl.ForceCollapse) { return(Visibility.Collapsed); } return(baseValue); }
private static object CoerceItemContainerStyle(DependencyObject d, object baseValue) { RibbonContextualTabGroupItemsControl me = (RibbonContextualTabGroupItemsControl)d; return(PropertyHelper.GetCoercedTransferPropertyValue( me, baseValue, ItemContainerStyleProperty, me.Ribbon, Ribbon.ContextualTabGroupStyleProperty)); }
public RibbonContextualTabGroupItemsControlAutomationPeer(RibbonContextualTabGroupItemsControl owner) : base(owner) { }