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

Tile View Minimized - Need to show a Maximize Button

9 Answers 161 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Madhu
Top achievements
Rank 1
Madhu asked on 08 Jun 2011, 05:33 AM
Hi,

We are using the Tileview in our project and when we minimize tiles, they line up on the right side, but the button which currently shows up is a restore down button (The double square button). We would like to display a single square button when tiles are minimized.

Can you please tell us how to achieve this.

Regards,
Madhu

9 Answers, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 09 Jun 2011, 04:02 PM
Hello Madhu,
At the moment the RadTileViewItem can have only two different Maximize/Minimize icons - one for when the item is maximized and one for when it is minimized or restored. If you want to have a different icon for restored and minimized you'll have to change the style of the items dynamically. To edit any of this icons you'll have to edit the default template of the RadTileViewItem.
For further references could you please examine the attached project and if you have more questions feel free to ask.

All the best,
Zarko
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Madhu
Top achievements
Rank 1
answered on 22 Jun 2011, 06:05 AM
Thanks Zarko, this worked fine for us. Another question - Is this possible for FluidControl as well?

Regards,
Madhu
0
Zarko
Telerik team
answered on 23 Jun 2011, 06:42 PM
Hello Madhu,
Do you mean the RadFluidContentControl or some other control, because the RadFluidContentControl doesn't have any buttons and I'm not sure what exactly you are trying to do? I'd like to ask you to give us a little bit more information on the subject.

Best wishes,
Zarko
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Madhu
Top achievements
Rank 1
answered on 24 Jun 2011, 08:13 AM

Hi Zarko,

Please ignore the previous question. We were using RadTileViewItem everywhere.

However there is one more issue we are facing. In the sample project that you shared with us there is a code

<telerik:RadToggleButton x:Name="MaximizeToggleButton" Command="tileView:TileViewCommands.ToggleTileState"
Style="{StaticResource maximizeToggleStyle}" />

We are using version 2011.1.427.1040.

This line throws an error - Error 26 Type 'tileView:TileViewCommands' was not found. 

Could you tell us what could be the issue.

Regards,
Madhu

0
Zarko
Telerik team
answered on 24 Jun 2011, 03:25 PM
Hello Madhu,
Could you please try to add this namespace and see if it helps:
xmlns:tileView="clr-namespace:Telerik.Windows.Controls.TileView;assembly=Telerik.Windows.Controls.Navigation"
If you have more questions feel free to ask.

All the best,
Zarko
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Buddhika
Top achievements
Rank 1
answered on 21 Jul 2011, 12:33 PM
Hi Zarko,
Is it possible to trigger "tileView:TileViewCommands.ToggleTileState" command outside the toggle button of the tile? for example when user click on somewhere on the tile (not only the toggle button).

Thanks,
Buddhika
0
Zarko
Telerik team
answered on 26 Jul 2011, 01:33 PM
Hello Buddhika,
Could you please explain what exactly do you mean by "Is it possible to trigger "tileView:TileViewCommands.ToggleTileState" command outside the toggle button " ? Do you want to trigger this command with another button or you want to change the tilestates by clicking on (for example) the content ?
You can set this command to any button that is inside a RadTileViewItem and it should work fine and with a little bit of code behind and some events you can toggle the tilestates with almost anything.
For further references could you please examine the attached project and if you have more questions please feel free to ask.

Kind regards,
Zarko
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Buddhika
Top achievements
Rank 1
answered on 27 Jul 2011, 04:44 AM
Hi Zarko,

I just wanted to trigger the command on datagrid item click event, but I found "tileView:TileViewCommands.ToggleTileState" command is not a System.Windows.Input.IComman, that mean I cannot trigger the command using expression blend behaviors.

If you have any idea how to achieve this goad, please mention, highly appreciate your earliest respond. 

Thanks,
Buddhika
 
0
Zarko
Telerik team
answered on 28 Jul 2011, 03:43 PM
Hello Buddhika,
You can try to handle the SelectionChanged event of the RadGridView and in there you can manually toggle the desired RadTileViewItems state like this:
private void ToggleTileState(RadTileViewItem container)
{
    if (container.TileState == TileViewItemState.Maximized)
    {
        container.TileState = TileViewItemState.Restored;
    }
    else
    {
        container.TileState = TileViewItemState.Maximized;
    }
}
If you have further questions feel free to ask,

All the best,
Zarko
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

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