In This Article

GalleryItem Class

Represents a selectable item in a ActiproSoftware.Windows.Controls.Ribbon.Controls.GalleryItem.Gallery.

public class GalleryItem : Button
Inheritance:
object Visual UIElement FrameworkElement Control ContentControl ButtonBase Button object

Constructors

GalleryItem()

Initializes an instance of the class.

public GalleryItem()

Properties

CanZoomIn

Gets whether mouse moves over the item can show a zoomed-in popup.

public bool CanZoomIn { get; }

Property Value

bool:

true if mouse moves over the item can show a zoomed-in popup; otherwise, false.

IsMouseOverBounds

Gets whether the mouse is really over the item.

public bool IsMouseOverBounds { get; }

Property Value

bool:

true if the mouse is really over the item; otherwise, false.

Remarks

This is added because the zoomed-in popup won't let IsMouseOver work appropriately.

IsSelected

Gets whether the item is selected.

public bool IsSelected { get; }

Property Value

bool:

true if the item is selected; otherwise, false.

ScreenTipDescription

Gets or sets the description object that will be displayed in screen tips for the control.

[Localizability(LocalizationCategory.ToolTip)]
public object ScreenTipDescription { get; set; }

Property Value

object:

The description object that will be displayed in screen tips for the control.

ScreenTipFooter

Gets or sets the footer object that will be displayed in screen tips for the control.

[Localizability(LocalizationCategory.ToolTip)]
public object ScreenTipFooter { get; set; }

Property Value

object:

The footer object that will be displayed in screen tips for the control.

ScreenTipHeader

Gets or sets the header object that will be displayed in screen tips for the control.

[Localizability(LocalizationCategory.ToolTip)]
public object ScreenTipHeader { get; set; }

Property Value

object:

The header object that will be displayed in screen tips for the control.

ScreenTipHelpUri

Gets or sets the System.Uri specifying the location of context-sensitive help related to the control when its screen tip is displayed and F1 is pressed.

public Uri ScreenTipHelpUri { get; set; }

Property Value

Uri:

The System.Uri specifying the location of context-sensitive help related to the control when its screen tip is displayed and F1 is pressed.

ScreenTipImageSource

Gets or sets the ImageSource for the image that will be displayed in screen tips for the control.

public ImageSource ScreenTipImageSource { get; set; }

Property Value

ImageSource:

The ImageSource for the image that will be displayed in screen tips for the control.

Methods

OnClick()

Occurs when the button is clicked.

protected override void OnClick()

OnMouseEnter(MouseEventArgs)

Occurs when the mouse enters the control.

protected override void OnMouseEnter(MouseEventArgs e)
Parameter Type Description
e MouseEventArgs

A MouseEventArgs that contains the event data.

OnMouseLeave(MouseEventArgs)

Occurs when the mouse leaves the control.

protected override void OnMouseLeave(MouseEventArgs e)
Parameter Type Description
e MouseEventArgs

A MouseEventArgs that contains the event data.

OnMouseLeftButtonUp(MouseButtonEventArgs)

Invoked when an unhandled MouseLeftButtonUp routed event is raised on this element. Implement this method to add class handling for this event.

protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameter Type Description
e MouseButtonEventArgs

The event data for the MouseLeftButtonUp event.

OnMouseMove(MouseEventArgs)

Invoked when an unhandled Mouse.MouseMoveEvent attached event is raised on this element. Implement this method to add class handling for this event.

protected override void OnMouseMove(MouseEventArgs e)
Parameter Type Description
e MouseEventArgs

A MouseEventArgs that contains the event data.

OnScreenTipClosing(RoutedEventArgs)

Invoked when an unhandled ScreenTipClosing attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

protected virtual void OnScreenTipClosing(RoutedEventArgs e)
Parameter Type Description
e RoutedEventArgs

A RoutedEventArgs that contains the event data.

Remarks

This method has no default implementation. Because an intermediate class in the inheritance might implement this method, we recommend that you call the base implementation in your implementation.

OnScreenTipOpening(RoutedEventArgs)

Invoked when an unhandled ScreenTipOpening attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

protected virtual void OnScreenTipOpening(RoutedEventArgs e)
Parameter Type Description
e RoutedEventArgs

A RoutedEventArgs that contains the event data.

Remarks

This method has no default implementation. Because an intermediate class in the inheritance might implement this method, we recommend that you call the base implementation in your implementation.

Events

ScreenTipClosing

Occurs before any screen tip on the control is closed.

public event RoutedEventHandler ScreenTipClosing

Event Type

RoutedEventHandler

ScreenTipOpening

Occurs before any screen tip on the control is opened.

public event RoutedEventHandler ScreenTipOpening

Event Type

RoutedEventHandler

Fields

CanZoomInProperty

Identifies the CanZoomIn dependency property. This field is read-only.

public static readonly DependencyProperty CanZoomInProperty

IsMouseOverBoundsProperty

Identifies the IsMouseOverBounds dependency property. This field is read-only.

public static readonly DependencyProperty IsMouseOverBoundsProperty

IsSelectedProperty

Identifies the IsSelected dependency property. This field is read-only.

public static readonly DependencyProperty IsSelectedProperty

ScreenTipClosingEvent

Identifies the ScreenTipClosing routed event. This field is read-only.

public static readonly RoutedEvent ScreenTipClosingEvent

ScreenTipDescriptionProperty

Identifies the ScreenTipDescription dependency property. This field is read-only.

public static readonly DependencyProperty ScreenTipDescriptionProperty

ScreenTipFooterProperty

Identifies the ScreenTipFooter dependency property. This field is read-only.

public static readonly DependencyProperty ScreenTipFooterProperty

ScreenTipHeaderProperty

Identifies the ScreenTipHeader dependency property. This field is read-only.

public static readonly DependencyProperty ScreenTipHeaderProperty

ScreenTipHelpUriProperty

Identifies the ScreenTipHelpUri dependency property. This field is read-only.

public static readonly DependencyProperty ScreenTipHelpUriProperty

ScreenTipImageSourceProperty

Identifies the ScreenTipImageSource dependency property. This field is read-only.

public static readonly DependencyProperty ScreenTipImageSourceProperty

ScreenTipOpeningEvent

Identifies the ScreenTipOpening routed event. This field is read-only.

public static readonly RoutedEvent ScreenTipOpeningEvent