Change Default Docking and Hide Minimize Buttons

4 posts, 1 answers
  1. Paul
    Paul avatar
    23 posts
    Member since:
    Feb 2013

    Posted 11 Dec 2015 Link to this post

    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

  2. Ivan
    Admin
    Ivan avatar
    44 posts

    Posted 14 Dec 2015 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Paul
    Paul avatar
    23 posts
    Member since:
    Feb 2013

    Posted 15 Dec 2015 in reply to Ivan Link to this post

    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

  5. Answer
    Ivan
    Admin
    Ivan avatar
    44 posts

    Posted 16 Dec 2015 Link to this post

    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
Back to Top