-
Notifications
You must be signed in to change notification settings - Fork 3
Ribbon
Sébastien Bouez edited this page Apr 29, 2023
·
1 revision
This method returns a string
corresponding to identify a ribbon child control to be used to memorize the QAT commands.
FrameworkElement
A button that belongs to the Ribbon children.
string
Represents a static hash code produced using the Name property of the provided FrameworkElement
.
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));
}