Selecting a carousel item by double click

3 posts, 0 answers
  1. hkdave95
    hkdave95 avatar
    245 posts
    Member since:
    Nov 2006

    Posted 19 Oct 2008 Link to this post

    Hi

    I need to select a carousel item by souble clicking it.

    Once I have double clicked I need to know whcih Item I have clicked.

    Do you have any examples of this ?

    Kind Regards

    David
  2. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 20 Oct 2008 Link to this post

    Hi hkdave95,

    I'm wondering if by selection you mean bringing a carousel item to the center of the path? If this is the case, we can send to you a sample application that demonstrates how an item can be brought into view by double clicking it. Since this application requires a custom build that cannot be posted on our public forum, you can request the application by opening a support ticket.

    Greetings,
    Milan
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Michael
    Michael avatar
    1 posts
    Member since:
    Dec 2012

    Posted 20 Dec 2012 Link to this post

    What about double clikcing on an carousel item (in my case a System.Windows.Controls.Image object) and having it open the actual file as if somone double clicked the *.png

    How do I get the current selected carousel item index/object?

    I have the Image objects in a collection, so I thought returning int myRadCarousel.Items.CurrentPosition; would give me the index of my collection to open, but CurrentPosition is always zero when I select and doubleclick carousel items.
    The other alternative is having the blob of the carousel image returned somehow so i can compare it to items in my collection. 
    (MouseDoubleClikc event triggers fine.)

    EDIT:   Found the simple solution solution after much searching.

    private void myRadCarousel_MouseDoubleClick(object sender, EventArgs e)
    {
        int index = myRadCarousel.Items.IndexOf(myRadCarousel.SelectedItem);
        ImageInterface image = myObservableCollectionOfImageInterfaces.ElementAt(index);

        Process proc = new Process();
        proc.StarInfo = new ProcessStartInfo(image.fullFileName, "");
        proc.Start();
    }
Back to Top