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

Change Default Docking and Hide Minimize Buttons

3 Answers 148 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 11 Dec 2015, 11:24 PM

Hi,

I'm looking for a way to change the default docking of the minimized tiles. Changing the FlowDirection property from LeftToRight to RightToLeft almost works, but it causes all of the controls in the RadTileViewItems to be right justified instead of left justified.

 

Also, is there a way to hide the Minimize button in a RadTileViewItem?

 

Thanks,

Paul

3 Answers, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 14 Dec 2015, 03:17 PM
Hello Paul,

To change the default docking position of the minimized tiles you can set the MinimizedItemsPosition property of RadTileView to "Left".

About hiding the minimize button, it can be achieved using several approaches. One way to do it is to use an attached property and set it on the tileview items. In the OnPropertyChangedCallback of the property you can get the item's minimize button with the ChildrenOfType<T>() method and change its Visibility based on the attached property's value.

Bear in mind, that in case of deep nesting of controls ChildrenOfType<T>() ​can be an expensive method. In such scenarios we recommend to hide the button by redefining the template of TileViewItemHeader. ​You can see how to do that in the Editing Control Templates help article.

If you have further questions about this let us know.

Regards,
Ivan
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Paul
Top achievements
Rank 1
answered on 15 Dec 2015, 06:21 PM

Thank you for the quick response. I'm not sure how I missed the MinimizedItemsPosition property.

 Due to performance concerns, I decided to go with redefining the template of the TileViewItemHeader. Unfortunately, when I try to extract the RadTileViewItem template with Visual Studio, the header template does not come with it. Do you have a copy of the XAML that I can use?

 Thanks again,

Paul

0
Accepted
Ivan
Telerik team
answered on 16 Dec 2015, 12:23 PM
Hi Paul,

In the Editing Control Templates help article is explained how to extract the templates from your files. The template of the tile view is located in the Telerik.Windows.Controls.Navigation.xaml file in the installation folder of UI for WPF. If you have any difficulties extracting the template from there, you can take it from the attached ResourceDictionary.

If you have further questions about this, let us know.

Regards,
Ivan
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
TileView
Asked by
Paul
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Paul
Top achievements
Rank 1
Share this question
or