I am currently binding my XamTilesControl to a ObservableCollection of custom ViewModel objects with a data template defined elsewhere.
How do I enable close on the tiles?
The sample demo'd how to do this on a tile by tile basis, but I am databinding.
<igTiles:Tile Header="Tile 3" Content="Removable Tile" CloseAction="RemoveItem" />
I have code like this:
<igTiles:XamTilesControl Name="xamTilesControl1" Margin="2,0,0,0" HeaderPath="QueryText" ItemsSource="{Binding DataQueryViewModels}" > <igTiles:XamTilesControl.ItemTemplateMinimized> <DataTemplate> <TextBlock Margin="5, 2, 5, 2" Text="Expand for more Info" /> </DataTemplate> </igTiles:XamTilesControl.ItemTemplateMinimized> </igTiles:XamTilesControl>
Thanks.
Hi David,
You can set the CloseAction directly to the XamTilesControl. Here is a snippet:
<igTiles:XamTilesControl
Name="xamTilesControl1"
CloseAction="CollapseTile"/>
Hope that helps
Sincerly,
Horen
Sorry, I can not get the above Xaml to compile....
I tried to put it right into my view but no luck...
Error 1 The property 'CloseAction' does not exist in XML namespace 'http://infragistics.com/Tiles'.
<UserControl x:Class="Test.UI.View.UserControl1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:igTiles="http://infragistics.com/Tiles"> <Grid> <igTiles:XamTilesControl CloseAction="CollapseTile" Name="xamTilesControl1"/> </Grid></UserControl>