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

Set TileState to Maximized

1 Answer 61 Views
TileView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jeremy
Top achievements
Rank 1
Jeremy asked on 12 Jun 2012, 09:38 AM
Hi,

How would I go about setting a TileState to Maximized from a command. Essentially I have a RadGridView with a list of items. Each item represents a tile.

I would like to fire a command from the celltemplate of a gridviewcolumn and maximize the appropriate tile.

The tiles and Grid are populated dynamically.

Many Thanks
Jeremy

1 Answer, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 13 Jun 2012, 07:52 AM
Hi Jeremy,
If you want to maximize an item from within it's content you could use the default ToggleTileState command like this:
<telerik:RadTileView x:Name="tileView" MinimizedColumnWidth="250">
    <telerik:RadTileView.ContentTemplate>
        <DataTemplate>
            <Grid>
                <telerik:RadButton Width="160" Height="30" VerticalAlignment="Bottom"
                                Command="tileView:TileViewCommands.ToggleTileState" Content="Toggle TileState" />
            </Grid>
        </DataTemplate>
    </telerik:RadTileView.ContentTemplate
</telerik:RadTileView>
If you want to maximize an item from somewhere else you'll have to create your own command and maybe bind the TileState of your items to some a property in your business object so that you could change it from the ViewModel on command execute.
If you need further assistance please feel free to ask.

Kind regards,
Zarko
the Telerik team

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

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