MouseLeftButtonDown-Event don't works

2 posts, 0 answers
  1. Josef
    Josef avatar
    25 posts
    Member since:
    Nov 2010

    Posted 28 Jan 2011 Link to this post

    Hello friends,

    I am trying to implement the MouseLeftButtonDown-Event for some PanelBarItems. But the Event isn't fired. Could you please help me to find out why it isn't?

    <telerik:RadPanelBar ExpandMode="Multiple" VerticalAlignment="Stretch" Name="pbarMain">
        <!-- Kapazitäten -->
        <telerik:RadPanelBarItem VerticalAlignment="Stretch" IsExpanded="True">
                <StackPanel Orientation="Horizontal" Margin="5 4 5 5">
                    <Image Source="Images/kapazität.ico"
                           Style="{StaticResource style_image_20x20}"/>
                    <Label Content="Kapazitäten" FontWeight="Bold"/>
            <telerik:RadPanelBarItem MouseLeftButtonDown="RadPanelBarItem_MouseDown"
                    <StackPanel Orientation="Horizontal" Margin="10 4 5 5">
                        <Image Source="Images/Document_search.ico"
                               Style="{StaticResource style_image_16x16}"/>
                        <Label Content="Anzeigen/Bearbeiten"/>

    private void RadPanelBarItem_MouseDown(object sender, MouseButtonEventArgs e)
        if (sender != null)
            RadPanelBarItem item = sender as RadPanelBarItem;
            if (item.Tag != null)
                string ziel = item.Tag.ToString();
                if (ziel.Length > 0) mvm.Navigate(ziel);

  2. Petar Mladenov
    Petar Mladenov avatar
    2882 posts

    Posted 02 Feb 2011 Link to this post

    Hi Josef,

    This event is handled by other events of the RadPanelItem. You can wire it by the UIElement.AddHandler method like it is  done in the attached sample. You can also use the new RadPanelBar events:RadPanelBar.ItemClick and RadPanelItem.Click. Feel free to ask if you need further assistance.

    Petar Mladenov
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. DevCraft banner
Back to Top