ImageGear .NET v25.2 - Updated
ImGearPageViewContextMenu Class
Members 




ImageGear.Windows.Controls Assembly > ImageGear.Windows.Controls Namespace : ImGearPageViewContextMenu Class
This class represents a context menu for the PageView control.
Object Model
ImGearPageViewContextMenu ClassImGearAnnotationItems Class
Syntax
'Declaration
 
<DefaultEventAttribute("Opened")>
<LocalizabilityAttribute(LocalizationCategory.Menu)>
<StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=System.Windows.Controls.MenuItem)>
<DefaultPropertyAttribute("Items")>
<ContentPropertyAttribute("Items")>
<XmlLangPropertyAttribute("Language")>
<UsableDuringInitializationAttribute(True)>
<RuntimeNamePropertyAttribute("Name")>
<UidPropertyAttribute("Uid")>
<TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
<NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
Public Class ImGearPageViewContextMenu 
   Inherits System.Windows.Controls.ContextMenu
'Usage
 
Dim instance As ImGearPageViewContextMenu
[DefaultEvent("Opened")]
[Localizability(LocalizationCategory.Menu)]
[StyleTypedProperty(Property="ItemContainerStyle", StyleTargetType=System.Windows.Controls.MenuItem)]
[DefaultProperty("Items")]
[ContentProperty("Items")]
[XmlLangProperty("Language")]
[UsableDuringInitialization(true)]
[RuntimeNameProperty("Name")]
[UidProperty("Uid")]
[TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
[NameScopeProperty("NameScope", System.Windows.NameScope)]
public class ImGearPageViewContextMenu : System.Windows.Controls.ContextMenu 
[DefaultEvent("Opened")]
[Localizability(LocalizationCategory.Menu)]
[StyleTypedProperty(Property="ItemContainerStyle", StyleTargetType=System.Windows.Controls.MenuItem)]
[DefaultProperty("Items")]
[ContentProperty("Items")]
[XmlLangProperty("Language")]
[UsableDuringInitialization(true)]
[RuntimeNameProperty("Name")]
[UidProperty("Uid")]
[TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
[NameScopeProperty("NameScope", System.Windows.NameScope)]
public __gc class ImGearPageViewContextMenu : public System.Windows.Controls.ContextMenu 
[DefaultEvent("Opened")]
[Localizability(LocalizationCategory.Menu)]
[StyleTypedProperty(Property="ItemContainerStyle", StyleTargetType=System.Windows.Controls.MenuItem)]
[DefaultProperty("Items")]
[ContentProperty("Items")]
[XmlLangProperty("Language")]
[UsableDuringInitialization(true)]
[RuntimeNameProperty("Name")]
[UidProperty("Uid")]
[TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
[NameScopeProperty("NameScope", System.Windows.NameScope)]
public ref class ImGearPageViewContextMenu : public System.Windows.Controls.ContextMenu 
Remarks

By default a PageViewContextMenu with default menu items is shown when right clicking on the PageView control. The default menu items may change from version to version.

The PageView.ContextMenu property can be set to an instance of PageViewContextMenu to specify a custom context menu. This class can be used to specify menu items that are always displayed (ImageGear.Windows.Controls.PageViewContextMenu.Items), menu items that are displayed when right clicking on a page (PageItems), menu items that are displayed when right clicking on any annotation (ImageGear.Windows.Controls.PageViewContextMenu.MarkItems.Common), and menu items that are displayed when right clicking on specific types of annotations (ImageGear.Windows.Controls.PageViewContextMenu.MarkItems.Line, ImageGear.Windows.Controls.PageViewContextMenu.MarkItems.Rectangle, etc.).

Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  System.Windows.Controls.Control
                     System.Windows.Controls.ItemsControl
                        System.Windows.Controls.Primitives.MenuBase
                           System.Windows.Controls.ContextMenu
                              ImageGear.Windows.Controls.ImGearPageViewContextMenu

See Also

Reference

ImGearPageViewContextMenu Members
ImageGear.Windows.Controls Namespace

Is this page helpful?
Yes No
Thanks for your feedback.