'Declaration Public Property TargetType As QatPlaceholderToolType
public QatPlaceholderToolType TargetType {get; set;}
Depending on the value of the TargetType property, the RibbonToolHelper.IdProperty is used to locate the tool or RibbonGroupthat has been defined somewhere on the XamRibbon and which will be cloned and displayed inside this QatPlaceholderTool.
' Creating ButtonTool Dim btnToolCopy As New ButtonTool() btnToolCopy.Id = "copyTool" ' Adding ButtonTool to the QAT Dim qatToolCopy As New QatPlaceholderTool() qatToolCopy.TargetId = "copyTool" ' btnToolCopy.Id qatToolCopy.TargetType = QatPlaceholderToolType.Tool xamRibbon.QuickAccessToolbar.Items.Add(qatToolCopy)
// Creating ButtonTool 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; xamRibbon.QuickAccessToolbar.Items.Add(qatToolCopy);
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2