BinaryRibbonLivePreviewEventArgs
class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Controls.Office
The data for the live preview events of BinaryRibbonLivePreview: which item to preview
or apply.
public class BinaryRibbonLivePreviewEventArgs : RoutedEventArgs
Inherits from / implements: RoutedEventArgs
Remarks
RoutedEventArgs.Source is the gallery that raised the event, which tells one gallery
from another when a single handler on the window serves them all.
See also
Members at a glance
| Constructors | |
|---|---|
BinaryRibbonLivePreviewEventArgs | Creates the data for one live preview event. |
| Properties | |
Item | Gets the item to preview or apply. |
Constructors
BinaryRibbonLivePreviewEventArgs
public BinaryRibbonLivePreviewEventArgs(RoutedEvent routedEvent, object source, object item) : base(routedEvent, source)
Creates the data for one live preview event.
Parameters
routedEvent- The event being raised: one of the three events of
BinaryRibbonLivePreview. source- The control offering the preview – the gallery.
item- The item to preview or apply;
nullforBinaryRibbonLivePreview.PreviewCancelledEvent.
Remarks
A control of your own that offers a live preview raises the same events with this class, so that the application's handlers serve it unchanged.
Properties
Item
public object Item
Gets the item to preview or apply.
- Value
- The item the pointer is resting on, for
BinaryRibbonLivePreview.PreviewRequestedEvent; the item chosen, forBinaryRibbonLivePreview.PreviewCommittedEvent;nullforBinaryRibbonLivePreview.PreviewCancelledEvent, where there is nothing to show and the document should be put back. For a gallery whose thumbnails were added directly, it is theBinaryRibbonThumbnailControl.