Skip to content
Sébastien Bouez edited this page Apr 29, 2023 · 1 revision

Methods

GetCommandIdentifier

This method returns a string corresponding to identify a ribbon child control to be used to memorize the QAT commands.

Arguments

FrameworkElement A button that belongs to the Ribbon children.

Returns

string Represents a static hash code produced using the Name property of the provided FrameworkElement.

Examples

private void MainWindow_Loaded(object sender, RoutedEventArgs e)
{
    ...
    // Set the QAT controls when window loads
    LocalRibbonControl.QatCommands.Add(LocalRibbonControl.GetCommandIdentifier(Btn1));
    LocalRibbonControl.QatCommands.Add(LocalRibbonControl.GetCommandIdentifier(Btn2));
}
Clone this wiki locally