public static Brush GetIconForeground(System.Windows.Controls.TabItem obj) => (Brush)obj.GetValue(IconForegroundProperty);
public static double GetHeaderFontSize(System.Windows.Controls.TabItem obj) => (double)obj.GetValue(HeaderFontSizeProperty);
public static Visibility GetIconVisibility(System.Windows.Controls.TabItem obj) => (Visibility)obj.GetValue(IconVisibilityProperty);
public static PackIconMaterialKind GetIconKind(System.Windows.Controls.TabItem obj) => (PackIconMaterialKind)obj.GetValue(IconKindProperty);
/// <summary> /// Gets the item contained in the <see cref="TabItem"/>. /// </summary> /// <param name="tabItem">The container item.</param> /// <returns>The item contained in the <paramref name="tabItem"/> if it was generated automatically by the behavior; otherwise <paramref name="tabItem"/>.</returns> protected virtual object GetContainedItem(TabItem tabItem) { if (tabItem == null) throw new ArgumentNullException("tabItem"); if ((bool)tabItem.GetValue(IsGeneratedProperty)) { return tabItem.Content; } return tabItem; }
/// <summary> /// Undoes the effects of the <see cref="PrepareContainerForItem"/> method. /// </summary> /// <param name="tabItem">The container element for the item.</param> protected virtual void ClearContainerForItem(TabItem tabItem) { if (tabItem == null) throw new ArgumentNullException("tabItem"); if ((bool)tabItem.GetValue(IsGeneratedProperty)) { tabItem.Content = null; } }
/// <summary> /// Gets the item contained in the <see cref="TabItem"/>. /// </summary> /// <param name="tabItem">The container item.</param> /// <returns>The item contained in the <paramref name="tabItem"/> if it was generated automatically by the behavior; otherwise <paramref name="tabItem"/>.</returns> protected virtual object GetContainedItem(TabItem tabItem) { if ((bool)tabItem.GetValue(IsGeneratedProperty)) { return tabItem.Content; } return tabItem; }
/// <summary> /// Undoes the effects of the <see cref="PrepareContainerForItem"/> method. /// </summary> /// <param name="tabItem">The container element for the item.</param> protected virtual void ClearContainerForItem(TabItem tabItem) { if ((bool)tabItem.GetValue(IsGeneratedProperty)) { tabItem.Content = null; } }