<exclude>
Markup Extension to provide an MaxActionItemCommand command handler around a native ActionItem from Max.
Given of the following property pairs: TableId and ActionId, ActionName and GroupName, or MacroName and MacroCategory, ActionItemExtension.ProvideValue will look up the native ActionItem associated with those keys, then return the ActionItem wrapped in a MaxActionItemCommand.
Example XAML attribute usage:
<ApplicationMenuItem Text="New All" CommandHandler="{wpfmax:ActionItem TableId=0, ActionId=13}"/>
With string properties:
<ApplicationMenuItem Text="Export to DWF" CommandHandler="{wpfmax:ActionItem MacroCategory=File, MacroName=Publish_To_DWF}"/>
Note that XAML Markup Extension syntax automatically applies "Extension" to a markup extension's name, allowing us to refer to ActionItemExtension as "ActionItem."
Public Member Functions |
|
override object | ProvideValue (IServiceProvider serviceProvider) |
<exclude> |
|
override string | ToString () |
Properties |
|
UInt32 |
ActionId [get, set] |
<exclude> |
|
UInt32 |
TableId [get, set] |
<exclude> |
|
String |
ActionName [get, set] |
<exclude> |
|
String |
GroupName [get, set] |
<exclude> |
|
String |
MacroName [get, set] |
<exclude> |
|
String |
MacroCategory [get, set] |
<exclude> |
override object WPFCustomControls::ActionItemExtension::ProvideValue | ( | IServiceProvider | serviceProvider | ) | [inline] |
<exclude>
Construct a MaxActionItemCommand around the ActionItem specified by the given properties.
serviceProvider | Provides services for the markup extension. |
ArgumentException | One of the following pairs is not set: TableId and ActionId, ActionName and GroupName, or MacroName and MacroCategory, or the Action Item is not found. |
override string WPFCustomControls::ActionItemExtension::ToString | ( | ) | [inline] |
UInt32
WPFCustomControls::ActionItemExtension::ActionId [get,
set] |
<exclude>
Action Item Id key within the Action Table specified by Table Id.
UInt32
WPFCustomControls::ActionItemExtension::TableId [get,
set] |
<exclude>
Id key used to look up an Action Table.
String
WPFCustomControls::ActionItemExtension::ActionName [get,
set] |
<exclude>
CUI name used as a search key within the Action Table specified by GroupName.
Note that using TableId and ActionId is preferred over ActionName and GroupName. The Ids are more efficient and more portable for localized builds.
String
WPFCustomControls::ActionItemExtension::GroupName [get,
set] |
<exclude>
CUI Group Name describing an Action Table. Used a search key to find an Action Table.
String
WPFCustomControls::ActionItemExtension::MacroName [get,
set] |
<exclude>
Specifies a function name within a Macro category for Maxscript Macro Script Action Items.
String
WPFCustomControls::ActionItemExtension::MacroCategory [get,
set] |
<exclude>
Specifies a Macro category for Maxscript Macro Script Action Items.