RibbonControlPath Class
Provides a path specification for a ribbon control.
public class RibbonControlPath : List<RibbonControlPathItem>
- Inheritance:
- object List<RibbonControlPathItem> object
Constructors
RibbonControlPath()
Initializes an instance of the class.
public RibbonControlPath()
Properties
IsPathToCloneSource
Gets whether this path is a path to a clone source control.
public bool IsPathToCloneSource { get; }
Property Value
- bool:
true
if this path is a path to a clone source control; otherwise,false
.
SourceLocation
Gets or sets the source location of the path.
public RibbonControlPathSourceLocation SourceLocation { get; set; }
Property Value
- RibbonControlPathSourceLocation:
The source location of the path.
Methods
GetControl(Ribbon)
Tries to return the control that is referenced by this path in the specified Ribbon.
public DependencyObject GetControl(Ribbon ribbon)
Parameter | Type | Description |
---|---|---|
ribbon | Ribbon | The Ribbon at which to begin the search. |
Returns
- DependencyObject:
The control that was located; otherwise,
null
.
GetPath(DependencyObject)
Returns the RibbonControlPath for the target System.Windows.DependencyObject.
public static RibbonControlPath GetPath(DependencyObject target)
Parameter | Type | Description |
---|---|---|
target | DependencyObject | The System.Windows.DependencyObject for which to locate a path. |
Returns
- RibbonControlPath:
The RibbonControlPath for the target System.Windows.DependencyObject.