BarSizeSelectionMenuGallery Class
Represents a size selection gallery control, for use within a menu.
public class BarSizeSelectionMenuGallery : BarMenuGallery, IDragResizableControl
- Inheritance:
- object Visual UIElement FrameworkElement Control ItemsControl Selector BarGalleryBase BarMenuGallery object
- Implements:
- IDragResizableControl
Constructors
BarSizeSelectionMenuGallery()
Initializes a new instance of the BarSizeSelectionMenuGallery class.
public BarSizeSelectionMenuGallery()
Properties
ColumnCount
Gets or sets the number of columns.
public int ColumnCount { get; set; }
Property Value
- int:
The number of columns. The default value is
10
.
DefaultHeadingText
Gets or sets the default heading text that is displayed above the menu gallery.
[Localizability(LocalizationCategory.Title)]
public string DefaultHeadingText { get; set; }
Property Value
- string:
The default heading text that is displayed above the menu gallery.
HeadingText
Gets the current heading text that is displayed above the menu gallery.
public string HeadingText { get; }
Property Value
- string:
The current heading text that is displayed above the menu gallery.
RowCount
Gets or sets the number of rows.
SizeHeadingTextFormat
Gets or sets the format string to use for the heading when the end user is selecting a size in the gallery.
[Localizability(LocalizationCategory.Title)]
public string SizeHeadingTextFormat { get; set; }
Property Value
- string:
The format string to use for the heading when the end user is selecting a size in the gallery.
Remarks
The first parameter to the format string is the current width. The second parameter to the format string is the current height.
Methods
CreateItem(int, int)
Creates an item to represent the specified row and column indices.
protected virtual object CreateItem(int rowIndex, int columnIndex)
Parameter | Type | Description |
---|---|---|
rowIndex | int | The zero-based row index. |
columnIndex | int | The zero-based column index. |
Returns
- object:
The item that was created, which by default is a System.Windows.Size with one-based values.
OnHighlightedItemChanged(RoutedEventArgs)
Occurs after the HighlightedItem property has changed.
protected override void OnHighlightedItemChanged(RoutedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | RoutedEventArgs | The RoutedEventArgs that contains the event data. |
Fields
ColumnCountProperty
Identifies the ColumnCount dependency property. This field is read-only.
public static readonly DependencyProperty ColumnCountProperty
DefaultHeadingTextProperty
Identifies the DefaultHeadingText dependency property. This field is read-only.
public static readonly DependencyProperty DefaultHeadingTextProperty
HeadingTextProperty
Identifies the HeadingText dependency property. This field is read-only.
public static readonly DependencyProperty HeadingTextProperty
RowCountProperty
Identifies the RowCount dependency property. This field is read-only.
public static readonly DependencyProperty RowCountProperty
SizeHeadingTextFormatProperty
Identifies the SizeHeadingTextFormat dependency property. This field is read-only.
public static readonly DependencyProperty SizeHeadingTextFormatProperty
Inherited Members
- BarMenuGallery.AreSurroundingSeparatorsAllowedProperty
- BarMenuGallery.CanCategorizeProperty
- BarMenuGallery.CanFilterProperty
- BarMenuGallery.CategoryContainerStyleProperty
- BarMenuGallery.CategoryHeaderTemplateProperty
- BarMenuGallery.HasCategoryHeadersProperty
- BarMenuGallery.IsFilterButtonVisibleProperty
- BarMenuGallery.MaxColumnCountProperty
- BarMenuGallery.MinColumnCountProperty
- BarMenuGallery.ResizeModeProperty
- BarMenuGallery.SelectedFilterCategoryProperty
- BarMenuGallery.UseMenuItemAppearanceProperty
- BarMenuGallery.UseMenuItemIndentProperty
- BarMenuGallery.OnApplyTemplate()
- BarMenuGallery.OnCreateAutomationPeer()
- BarMenuGallery.OnItemsSourceChanged(IEnumerable, IEnumerable)
- BarMenuGallery.PrepareContainerForItemOverride(DependencyObject, object)
- BarMenuGallery.AreSurroundingSeparatorsAllowed
- BarMenuGallery.CanCategorize
- BarMenuGallery.CanFilter
- BarMenuGallery.CategoryContainerStyle
- BarMenuGallery.CategoryHeaderTemplate
- BarMenuGallery.HasCategoryHeaders
- BarMenuGallery.IsFilterButtonVisible
- BarMenuGallery.MaxColumnCount
- BarMenuGallery.MinColumnCount
- BarMenuGallery.ResizeMode
- BarMenuGallery.SelectedFilterCategory
- BarMenuGallery.SelectFilterCategoryCommand
- BarMenuGallery.UseMenuItemAppearance
- BarMenuGallery.UseMenuItemIndent
- 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.OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)
- BarGalleryBase.OnItemSpacingPropertyValueChanged(DependencyPropertyChangedEventArgs)
- BarGalleryBase.OnMinItemHeightPropertyValueChanged(DependencyPropertyChangedEventArgs)
- BarGalleryBase.OnMinItemWidthPropertyValueChanged(DependencyPropertyChangedEventArgs)
- BarGalleryBase.OnMouseLeave(MouseEventArgs)
- BarGalleryBase.OnMouseMove(MouseEventArgs)
- BarGalleryBase.OnSelectionChanged(SelectionChangedEventArgs)
- BarGalleryBase.OnUserInterfaceDensityPropertyValueChanged(DependencyPropertyChangedEventArgs)
- 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