BarMenuGalleryHostBase Class
Represents an abstract base class for a gallery control that can host a related BarMenuGallery in its popup.
public abstract class BarMenuGalleryHostBase : BarGalleryBase
- Inheritance:
- object Visual UIElement FrameworkElement Control ItemsControl Selector BarGalleryBase object
- Derived:
- BarComboBox RibbonGallery
Constructors
BarMenuGalleryHostBase()
Initializes a new instance of the BarMenuGalleryHostBase class.
protected BarMenuGalleryHostBase()
Properties
AboveMenuItems
Gets the collection of menu items that appear above the implicitly-created menu gallery in this gallery's popup.
public IList AboveMenuItems { get; set; }
Property Value
- IList:
The collection of menu items that appear above the implicitly-created menu gallery in this gallery's popup.
Remarks
This property is only used when the control is not created via MVVM.
See Also
AreSurroundingSeparatorsAllowedOnMenu
Gets or sets whether the implicitly-created menu gallery in this gallery's popup can render surrounding separators.
public bool AreSurroundingSeparatorsAllowedOnMenu { get; set; }
Property Value
- bool:
true
if the implicitly-created menu gallery in this gallery's popup can render surrounding separators; otherwise,false
. The default value istrue
.
Remarks
This property is only used when the control is not created via MVVM.
BelowMenuItems
Gets the collection of menu items that appear below the implicitly-created menu gallery in this gallery's popup.
public IList BelowMenuItems { get; set; }
Property Value
- IList:
The collection of menu items that appear below the implicitly-created menu gallery in this gallery's popup.
Remarks
This property is only used when the control is not created via MVVM.
See Also
CanCategorizeOnMenu
Gets or sets whether the implicitly-created menu gallery in this gallery's popup sorts and displays items by category
when an System.ComponentModel.ICollectionView is set to the ItemsSource
.
public bool CanCategorizeOnMenu { get; set; }
Property Value
- bool:
true
if the implicitly-created menu gallery in this gallery's popup sorts and displays items by category when an System.ComponentModel.ICollectionView is set to theItemsSource
; otherwise,false
. The default value istrue
.
Remarks
This property is only used when the control is not created via MVVM.
CanFilterOnMenu
Gets or sets whether the implicitly-created menu gallery in this gallery's popup supports filtering of items by category.
public bool CanFilterOnMenu { get; set; }
Property Value
- bool:
true
if the implicitly-created menu gallery in this gallery's popup supports filtering of items by category; otherwise,false
. The default value isfalse
.
Remarks
This property is only used when the control is not created via MVVM.
CategoryHeaderTemplate
Gets or sets the DataTemplate to display the category header on the implicitly-created menu gallery in this gallery's popup.
public DataTemplate CategoryHeaderTemplate { get; set; }
Property Value
- DataTemplate:
The DataTemplate to display the category header on the implicitly-created menu gallery in this gallery's popup.
Remarks
This property is only used when the control is not created via MVVM.
HasCategoryHeadersOnMenu
Gets or sets whether the implicitly-created menu gallery in this gallery's popup has category headers when categorizing.
public bool HasCategoryHeadersOnMenu { get; set; }
Property Value
- bool:
true
if the implicitly-created menu gallery in this gallery's popup has category headers when categorizing; otherwise,false
. The default value istrue
.
Remarks
This property is only used when the control is not created via MVVM.
MaxMenuColumnCount
Gets or sets the maximum number of columns in the implicitly-created menu gallery in this gallery's popup.
public int MaxMenuColumnCount { get; set; }
Property Value
- int:
The maximum number of columns in the implicitly-created menu gallery in this gallery's popup. The default value is MaxValue.
Remarks
This property is only used when the control is not created via MVVM.
MenuResizeMode
Gets or sets a ControlResizeMode that indicates how the popup menu can resize.
public ControlResizeMode MenuResizeMode { get; set; }
Property Value
- ControlResizeMode:
A ControlResizeMode that indicates how the popup menu can resize. The default value is None.
Remarks
This property is only used when the control is not created via MVVM.
MinMenuColumnCount
Gets or sets the minimum number of columns in the implicitly-created menu gallery in this gallery's popup.
public int MinMenuColumnCount { get; set; }
Property Value
- int:
The minimum number of columns in the implicitly-created menu gallery in this gallery's popup. The default value is
1
.
Remarks
This property is only used when the control is not created via MVVM.
PopupOpeningCommand
Gets or sets the ICommand that executes before the gallery's popup is opened, allowing its items to be customized in MVVM scenarios.
public ICommand PopupOpeningCommand { get; set; }
Property Value
SelectedFilterCategory
Gets or sets the selected filter category name.
[Localizability(LocalizationCategory.Title)]
public string SelectedFilterCategory { get; set; }
Property Value
- string:
The selected filter category name.
UseMenuItemAppearance
Gets or sets whether to use a menu item appearance for gallery items, common for single-column menu galleries.
public bool UseMenuItemAppearance { get; set; }
Property Value
- bool:
true
if gallery items should use a menu item appearance; otherwise,false
. The default value isfalse
.
Remarks
This property is only used when the control is not created via MVVM.
UseMenuItemIndent
Gets or sets whether to align gallery items in the implicitly-created menu gallery in this gallery's popup so that they indent past the menu's icon column.
public bool UseMenuItemIndent { get; set; }
Property Value
- bool:
true
if gallery items should be indented past the menu's icon column; otherwise,false
. The default value isfalse
.
Remarks
This property is only used when the control is not created via MVVM.
Fields
AboveMenuItemsProperty
Identifies the AboveMenuItems dependency property. This field is read-only.
public static readonly DependencyProperty AboveMenuItemsProperty
AreSurroundingSeparatorsAllowedOnMenuProperty
Identifies the AreSurroundingSeparatorsAllowedOnMenu dependency property. This field is read-only.
public static readonly DependencyProperty AreSurroundingSeparatorsAllowedOnMenuProperty
BelowMenuItemsProperty
Identifies the BelowMenuItems dependency property. This field is read-only.
public static readonly DependencyProperty BelowMenuItemsProperty
CanCategorizeOnMenuProperty
Identifies the CanCategorizeOnMenu dependency property. This field is read-only.
public static readonly DependencyProperty CanCategorizeOnMenuProperty
CanFilterOnMenuProperty
Identifies the CanFilterOnMenu dependency property. This field is read-only.
public static readonly DependencyProperty CanFilterOnMenuProperty
CategoryHeaderTemplateProperty
Identifies the CategoryHeaderTemplate dependency property. This field is read-only.
public static readonly DependencyProperty CategoryHeaderTemplateProperty
HasCategoryHeadersOnMenuProperty
Identifies the HasCategoryHeadersOnMenu dependency property. This field is read-only.
public static readonly DependencyProperty HasCategoryHeadersOnMenuProperty
MaxMenuColumnCountProperty
Identifies the MaxMenuColumnCount dependency property. This field is read-only.
public static readonly DependencyProperty MaxMenuColumnCountProperty
MenuResizeModeProperty
Identifies the MenuResizeMode dependency property. This field is read-only.
public static readonly DependencyProperty MenuResizeModeProperty
MinMenuColumnCountProperty
Identifies the MinMenuColumnCount dependency property. This field is read-only.
public static readonly DependencyProperty MinMenuColumnCountProperty
PopupOpeningCommandProperty
Identifies the PopupOpeningCommand dependency property. This field is read-only.
public static readonly DependencyProperty PopupOpeningCommandProperty
SelectedFilterCategoryProperty
Identifies the SelectedFilterCategory dependency property. This field is read-only.
public static readonly DependencyProperty SelectedFilterCategoryProperty
UseMenuItemAppearanceProperty
Identifies the UseMenuItemAppearance dependency property. This field is read-only.
public static readonly DependencyProperty UseMenuItemAppearanceProperty
UseMenuItemIndentProperty
Identifies the UseMenuItemIndent dependency property. This field is read-only.
public static readonly DependencyProperty UseMenuItemIndentProperty
Inherited Members
- BarGalleryBase.HighlightedItemChangedEvent
- BarGalleryBase.BetweenPreviewDelayProperty
- BarGalleryBase.CanCloneToRibbonQuickAccessToolBarProperty
- BarGalleryBase.CommandProperty
- BarGalleryBase.CommandTargetProperty
- BarGalleryBase.HighlightedItemProperty
- BarGalleryBase.InitialPreviewDelayProperty
- BarGalleryBase.IsSelectionSupportedProperty
- BarGalleryBase.ItemSpacingProperty
- BarGalleryBase.KeyProperty
- BarGalleryBase.LabelProperty
- BarGalleryBase.LargeImageSourceProperty
- BarGalleryBase.MinItemHeightProperty
- BarGalleryBase.MinItemWidthProperty
- BarGalleryBase.MediumImageSourceProperty
- BarGalleryBase.PreviewedItemProperty
- BarGalleryBase.SmallImageSourceProperty
- BarGalleryBase.TitleProperty
- BarGalleryBase.UseAccentedItemBorderProperty
- BarGalleryBase.UserInterfaceDensityProperty
- BarGalleryBase.ClearContainerForItemOverride(DependencyObject, object)
- BarGalleryBase.GetContainerForItemOverride()
- BarGalleryBase.IsItemItsOwnContainerOverride(object)
- BarGalleryBase.OnHighlightedItemChanged(RoutedEventArgs)
- BarGalleryBase.OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)
- BarGalleryBase.OnItemSpacingPropertyValueChanged(DependencyPropertyChangedEventArgs)
- BarGalleryBase.OnMinItemHeightPropertyValueChanged(DependencyPropertyChangedEventArgs)
- BarGalleryBase.OnMinItemWidthPropertyValueChanged(DependencyPropertyChangedEventArgs)
- BarGalleryBase.OnMouseLeave(MouseEventArgs)
- BarGalleryBase.OnMouseMove(MouseEventArgs)
- BarGalleryBase.OnSelectionChanged(SelectionChangedEventArgs)
- BarGalleryBase.OnUserInterfaceDensityPropertyValueChanged(DependencyPropertyChangedEventArgs)
- BarGalleryBase.PrepareContainerForItemOverride(DependencyObject, object)
- BarGalleryBase.ScrollToSelectedItem(bool)
- BarGalleryBase.ToString()
- BarGalleryBase.BetweenPreviewDelay
- BarGalleryBase.CanCloneToRibbonQuickAccessToolBar
- BarGalleryBase.CanStopPreviewingOnMouseLeave
- BarGalleryBase.Command
- BarGalleryBase.CommandTarget
- BarGalleryBase.HighlightedItem
- BarGalleryBase.InitialPreviewDelay
- BarGalleryBase.IsSelectionSupported
- BarGalleryBase.ItemSpacing
- BarGalleryBase.Key
- BarGalleryBase.Label
- BarGalleryBase.LargeImageSource
- BarGalleryBase.MediumImageSource
- BarGalleryBase.MinItemHeight
- BarGalleryBase.MinItemWidth
- BarGalleryBase.PreviewedItem
- BarGalleryBase.SmallImageSource
- BarGalleryBase.Title
- BarGalleryBase.UseAccentedItemBorder
- BarGalleryBase.UserInterfaceDensity
- BarGalleryBase.HighlightedItemChanged