Layout of childrens

4 posts, 0 answers
  1. ppti
    ppti avatar
    12 posts
    Member since:
    Dec 2010

    Posted 13 Sep 2011 Link to this post

    The task is to change the layout of elements in the component (like iGoogle dashboard).
    To do that, you need to override the TileViewPanel methods. 
    The field of that type is not available in the TileView instance, but can be found in the visual tree.

    Is there and option of substituting the TileViewPanel instance in the TileView visual tree for a custom class:
    class MyTileViewPanel: TileViewPanel
    {
    // my methods
    }
  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 14 Sep 2011 Link to this post

    Hello Ppti,
    You can change the default panel of the RadTileView by inheriting the TileViewPanel (as you've suggested)
    public class MyPanel : TileViewPanel
    {
    }

    and then change the RadTileView ItemsPanel in its style
    <Style TargetType="telerik:RadTileView">
         ...
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <local:MyPanel />
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
         ...
        </Setter>
    </Style>
    But I advice you not to do this if it's not really necessary.
    Could you please explain us exactly what you want your TileView to look like and we'll see if it's achievable without overriding the panel?  

    Greetings,
    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. ppti
    ppti avatar
    12 posts
    Member since:
    Dec 2010

    Posted 14 Sep 2011 Link to this post

    mainly for creating an interface like in iGoogle (Dashboard)

    • movable panels
    • the option of collapsing and restoring panels
    • saving panels' layout

    However, in TileView an element is either restored into a single cell or maximized.

    It seems that RadDocking is the most suitable for our task. Unfortunately, RadDocking doesn't allow to make RadDocking nestings into RadDocking.
  5. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 17 Sep 2011 Link to this post

    Hi Ppti,
    Could you please examine the attached project and see if this is what you're looking for?
    If you need further assistance please feel free to ask.

    All the best,
    Zarko
    the Telerik team

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

Back to Top