Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
item click on xamcarouselpanel
posted

hi.

i know it's a stupid question but i couldn't solve. is there any way to catch the clicked item on xamcarouselpanel?

  • 185
    posted

    We use the RecordActivated event

  • 9836
    posted

    Hi,
    You can try to register MouseDownEvent instead of Click event for the CarouselPanelItem class.

    public Window1()
    {
         InitializeComponent();
         //register the event
         EventManager.RegisterClassHandler (typeof  (CarouselPanelItem), CarouselPanelItem.MouseDownEvent, 
     new MouseButtonEventHandler(OnCarouselPanelItemMouseDown));
    }

    //your event handler
    private static void OnCarouselPanelItemMouseDown(object sender, MouseButtonEventArgs e)
    {
     
    }

    Regards

    Vlad