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

[Solved] RadContextMenu is viewed as a ListBoxItem and is always open

3 Answers 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Adam
Top achievements
Rank 1
Adam asked on 13 Dec 2010, 09:23 PM
Hi, I'm fairly new at using telerik controls and was looking to try the RadContextMenu.  Basically I'm making an IM client and wanted the ability to right click on any conversation item and get a context menu where other options for the conversation could be selected.  To be able to right click on the individual conversation items I used a ListBox.  However the context menu control is viewed as a ListBoxItem and is always displayed.  Below is the XAML snippet of my code.  I am almost exclusivly using Blend 4 for all of my UI design and have found other anomilies doing this.  Please let me know what I can do to perform the interaction that I want, thanks!

            <ListBox Margin="8,116,0,0" Height="180" VerticalAlignment="Top" x:Name="Message_List_Box" HorizontalAlignment="Left" Width="205" BorderBrush="Black" FontFamily="Arial" FontWeight="Bold" FontSize="13.333">
                <telerik:RadContextMenu FontFamily="Arial" FontWeight="Bold" FontSize="8" EventName="MouseRightButtonUp">
                    <telerik:RadMenuItem Header="NEW CONVERSATION">
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem Header="GET HISTORY">
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem IsSeparator="True">
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem Header="GOTO UNIT ON MAP">
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem Header="CALL UNIT">
                    </telerik:RadMenuItem>
                </telerik:RadContextMenu>
            </ListBox>

3 Answers, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 14 Dec 2010, 09:32 AM
Hello Adam,

You have to attach the context menu in order to work (now you are placing it like content).
Here is the getting started section of RadContextMenu:
http://www.telerik.com/help/silverlight/contextmenu-getting-started.html

And here are example that you can use to get familiar with RadContextMenu:
http://demos.telerik.com/silverlight/#ContextMenu/PopUpMenu

Let us know if you need more information.

Greetings,
Hristo
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Adam
Top achievements
Rank 1
answered on 14 Dec 2010, 02:30 PM
Thank you, apparently I was just not setting the properties correct within the XAML code.  I am trying to use Blend 4 mostly in creating this application and have found some difficulties using the radcontrols.  In response I am having to learn some of the XAML code as I go.

Thanks again,
Adam Burdette
0
Hristo
Telerik team
answered on 14 Dec 2010, 02:58 PM
Hello Adam,

We are constantly improving our design time support. Please let us know if you are having troubles using RadControls and Blend 4. Such feedback is highly appreciated and will allow us to further improve RadControls integration with Blend.

Kind regards,
Hristo
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
General Discussions
Asked by
Adam
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Adam
Top achievements
Rank 1
Share this question
or