prevent double-click for maximaizing per item

4 posts, 0 answers
  1. rachel
    rachel avatar
    36 posts
    Member since:
    Sep 2010

    Posted 28 Nov 2011 Link to this post

    hello,
    i have a class foreach tileViewItem that contains CanEnlarge property, so i'm doing binding for this property with the maximaize icon.
    the problem is that if i'm doing double-click on the header i can enlarge it anyway.
    what could i do about it?

    thanks.
  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 30 Nov 2011 Link to this post

    Hi Rachel,
    If you want to disable the maximization of all RadTileViewItems with click/double click you should set the TileStateChangeTrigger property of the RadTileView to None. If you want to prevent the maximization of some specific items you should handle the PreviewTileStateChanged event for those items with something like this:
    <telerik:RadTileView PreviewTileStateChanged="RadTileView_PreviewTileStateChanged">
         ...       
    </telerik:RadTileView>
    C#:
    private void RadTileView_PreviewTileStateChanged(object sender, Telerik.Windows.Controls.PreviewTileStateChangedEventArgs e)
    {
        if(something)
            e.Handled = true;
    }

    If you need further assistance please feel free to ask.

    Regards,
    Zarko
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. rachel
    rachel avatar
    36 posts
    Member since:
    Sep 2010

    Posted 01 Dec 2011 Link to this post

    thanks.
    but is there any way to do that only in xaml, without code behind?
  5. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 05 Dec 2011 Link to this post

    Hello Rachel,

     Disabling maximization of all items can happen in XAML (TileStateChangeTrigger property of the RadTileView to None). However, if you want to stop the maximization of certain items, you will have to use code-behind.

    Kind regards,
    Kiril Stanoev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top