this.RootWorkItem.UIExtensionSites.RegisterSite("ViewMenu", this.Shell.MainMenu[1].Children);
Where 1 is the index of my view menu on the main menu. I then would like to access and modify this using something like:
RadMenuItem menuItem = new RadMenuItem("GIS");
_presenter.WorkItem.RootWorkItem.UIExtensionSites[UIExtensionSiteNames.ViewMenu].Add(menuItem);
I have implemented a RadMenuAdapterFactory, which handles RadMenu and RadItemCollection (using the appraiser workbench sample), but I'm not sure how to handle this specific case.
Any help would be much appreciated.
Best regards
Marek
Hi,
I have created the template form with the control RadTabStrip. When the other form inherites from the template, I can’t add more TabItems in design time, because it fails. The errors are:
at Telerik.WinControls.RadElementCollection.CheckElementAlreadyAdded(Object value) at Telerik.WinControls.RadElementCollection.OnInsert(Int32 index, Object value) at System.Collections.CollectionBase.System.Collections.IList.Insert(Int32 index, Object value) at Telerik.WinControls.RadItemCollection.OnInsertComplete(Int32 index, Object value) at System.Collections.CollectionBase.System.Collections.IList.Add(Object value) at Telerik.WinControls.RadItemCollection.AddRange(RadItem[] value) |
this.radTabStrip1.Items.AddRange(new Telerik.WinControls.RadItem[] {
this.tabItem2});
and change it for
this.radTabStrip1.Items.AddRange(new Telerik.WinControls.RadItem[] {
new Telerik.WinControls.UI.TabItem()
});
there is no error. In run time it doesn´t present this error.
I tried to add a tooltiptext to RadToggleButton and RadTrackBar.
The code is below:
toggleButtonMagnifier.RootElement.ToolTipText = "Magnification Toggle";
toggleButtonMagnifier.ShowItemToolTips = true;
Also tried the other way:
((RadMenu)AttachmentView.Controls[1]).MenuElement.Items[0].ToolTipText = "Magnification Toggle";
but tooltiptext did not pup up.
Any suggestion?
Thanks,
Susan
Dim Result As DialogResult = frmShapedForm.ShowDialog(Me) |
Me.StartPosition = FormStartPosition.CenterParent |