This is a migrated thread and some comments may be shown as answers.

Missing ContextMenu Property

1 Answer 87 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Calvin
Top achievements
Rank 1
Calvin asked on 12 Jul 2010, 06:50 PM
When I add the Control Template for the Telerik Tab Control to my project, I get the following build error:   The property 'ContextMenu' does not exist on the type 'ToggleButton' in the XML namespace 'clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls'.    

The version of Telerik Silverlight Controls which we are using is RadControls_for_Silverlight_4_2010_1_0603_DEV. 

Here is the offending section from the Control Template:

<ToggleButton x:Name="DropDownButtonElement" telerik:RadDockPanel.Dock="Right" IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Margin="2 4 4 2" Style="{TemplateBinding DropDownButtonStyle}" Visibility="Collapsed">
                               <telerik:RadContextMenu.ContextMenu >
                                   <Telerik_Windows_Controls_TabControl:DropDownMenu x:Name="DropDownMenuElement" DisplayMemberPath="{TemplateBinding DropDownDisplayMemberPath}" ItemTemplate="{TemplateBinding ItemDropDownContentTemplate}" IsOpen="{Binding IsChecked, ElementName=DropDownButtonElement, Mode=Twoway}" ItemTemplateSelector="{TemplateBinding ItemDropDownContentTemplateSelector}" Placement="Bottom" Style="{TemplateBinding DropDownStyle}" StaysOpen="False"/>
                               </telerik:RadContextMenu.ContextMenu>
                           </ToggleButton>

There is also an error message stating that The attachable property 'ContextMenu' was not found in type 'RadContextMenu'. 

We have been working on this project for a while and previously were using an earlier version of the Telerik Controls.

1 Answer, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 15 Jul 2010, 12:54 PM
Hello Calvin,

Thank you for contacting us. We are not aware of such problem with RadTabControl. Is it possible for you to isolate the problem in a separate project and send us this project so we can debug and determine what is causing the issue. This way we will be better able to assist you.

On a side note, I'd like to inform you that we've just released an online tool that allows you to reduce the size of your Silverlight applications. For more information, please visit http://blogs.telerik.com/blogs/posts/10-06-10/telerik_assembly_minifier.aspx

Greetings,
Kiril Stanoev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TabControl
Asked by
Calvin
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Share this question
or