Maximized Item Template - User Control

We need to inject via the Maximizing event a user control in to the Maximized version of the tile, while preserving the minimized content.

How would we go about doing that?

We can't seem to get access to a property to drop the user control in to.

Thanks,

Morgan

3 Replies

DR Durga Rajan Syncfusion Team December 18, 2017 10:27 AM UTC

Hi Morgan, 

Thanks for contacting Syncfusion support. 

We suggest you to use MaximizedItemContent property of TileViewItem to display the desired content in TileItem while maximizing it. We have prepared sample which tries to meet your requirement.  Please refer the below code snippets and download the sample for the same from below location, 

       
       private void TileViewControl_Maximizing(object sender, Syncfusion.Windows.Shared.TileViewCancelEventArgs args) 
       { 
           (args.Source as TileViewItem).MaximizedItemContent = new UserControl1(); 
       } 



If the above sample doesn’t meet your requirement please provide more details like screenshot or video or sample to demonstrate your requirement. This would help us to provide solution at earliest. 

Regards, 
Durga S. 



JO John May 4, 2023 05:25 PM UTC

I know this question was asked some time ago, but I have a similar question.  I'm using a ItemTemplateSelector to associate a DataTemplate with the object I'm displaying in the TileViewControl.   I would like to be able to select a different template when the item is maximized.  Is that possible?


Thank-you,


-John



KA Karthick Arjunan Syncfusion Team July 3, 2023 11:58 AM UTC

By utilizing the MaximizedItemTemplate property, we are able to set the DataTemplate for the item in its maximized state. However, it is important to note that there is no TemplateSelector available for the maximized item.

Please refer to the below UG documentation for more,

https://help.syncfusion.com/wpf/tile-view/maximize-tileviewitem#custom-ui-of-maximized-tileviewitem-content

https://help.syncfusion.com/wpf/tile-view/minimizeditemtemplate-and-maximizeditemtemplate#adding-minimizeditemtemplate--maximizeditemtemplate-to-an-application


Loader.
Up arrow icon