共用方式為


EmbeddedObjectHelper Class

Definition

Static helper class that contains dependency properties used by containers such as Peek to obtain references to command handling and user context objects defined by the objects they contain.

public ref class EmbeddedObjectHelper abstract sealed
public ref class EmbeddedObjectHelper abstract sealed
class EmbeddedObjectHelper abstract sealed
public static class EmbeddedObjectHelper
type EmbeddedObjectHelper = class
Public Class EmbeddedObjectHelper
Inheritance
EmbeddedObjectHelper

Fields

OleCommandTargetProperty

DependencyProperty used to bind the IOleCommandTarget on embedded objects.

UserContextProviderProperty

DependencyProperty used to bind the IVsProvideUserContext on embedded objects.

Attached Properties

OleCommandTarget
UserContextProvider

Methods

GetOleCommandTarget(UIElement)

Gets IOleCommandTarget value for the provided embedded UIElement.

GetUserContextProvider(UIElement)

Gets IVsProvideUserContext value for the provided embedded UIElement.

SetOleCommandTarget(UIElement, IOleCommandTarget)

Sets IOleCommandTarget value for the provided embedded UIElement.

SetUserContextProvider(UIElement, IVsProvideUserContext)

Sets IVsProvideUserContext value for the provided embedded UIElement.

Applies to