Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
185
Close DataBound Tiles
posted

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.

Parents
  • 1990
    posted

    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

Reply Children