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

prevent double-click for maximaizing per item

3 Answers 89 Views
TileView
This is a migrated thread and some comments may be shown as answers.
rachel
Top achievements
Rank 1
rachel asked on 28 Nov 2011, 01:19 PM
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.

3 Answers, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 30 Nov 2011, 05:05 PM
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 >>

0
rachel
Top achievements
Rank 1
answered on 01 Dec 2011, 07:19 AM
thanks.
but is there any way to do that only in xaml, without code behind?
0
Kiril Stanoev
Telerik team
answered on 05 Dec 2011, 02:14 PM
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 >>

Tags
TileView
Asked by
rachel
Top achievements
Rank 1
Answers by
Zarko
Telerik team
rachel
Top achievements
Rank 1
Kiril Stanoev
Telerik team
Share this question
or