Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
950
problem with quickaccesstoolbar : TargetID
posted

I Try to make a Quickaccestoolbar. I ahve the following code :

 

 

 

 

 

 

 

 

 

 

 

 

ButtonTool 

 

 

btnToolCopy = new ButtonTool();

btnToolCopy.Id =

 

"copyTool";

 

 

 

// Adding ButtonTool to the QAT

 

 

 

QatPlaceholderTool qatToolCopy = new QatPlaceholderTool();

qatToolCopy.TargetId =

 

"copyTool";

// btnToolCopy.Id

qatToolCopy.TargetType =

 

QatPlaceholderToolType.Tool;

 

 

this.xamRibbon1.QuickAccessToolbar.Items.Add(qatToolCopy);

But i get a exception error :

An item with the specified TargetId 'copyTool' being added to the QuickAccessToolbar is not registered with the associated XamRibbon.

Thank you for help    CaisseOdev

Parents Reply Children