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
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
Regards,
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
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
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"
All the best,
Zarko
the Telerik team
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
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!
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
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;
}
}
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!