Normal 0 false false false EN-US X-NONE X-NONE
Hi,
I am working “XamTileView“. My requirement is load the 5 dynamic tile pane with controls and set the control’s ItemSource.
In Xaml that code is running fine.
<ig:TilePane Header="GridPane" TileState="Minimized" Name="tpGridPane" Key="tpGridPane" Loaded="tpGridPane_Loaded">
<ig:TilePane.ContentTemplate>
<DataTemplate>
<StackPanel>
<ig:XamGrid x:Name="xamGrid1" AutoGenerateColumns="False" VerticalAlignment="Stretch" Loaded="xamGrid1_Loaded">
<ig:XamGrid.Columns>
<ig:TextColumn Key="CategoryName" />
<ig:TextColumn Key="Description" />
</ig:XamGrid.Columns>
</ig:XamGrid>
</StackPanel>
</DataTemplate>
</ig:TilePane.ContentTemplate>
</ig:TilePane>
Now as per my dynamic Tile pane creation, i used the following code.
First create the TilePane, DataTemplate and XamContextMenu object.
TilePane _TilePane = new TilePane();
DataTemplate _DataTemplate = new DataTemplate();
Then create the object of XamWebChart.
XamWebChart _XamWebChart = new XamWebChart();
Add the XamWebChart into stackpanel.
_StackPanel.Children.Add(_XamWebChart);
Now I am unable to bind into data template.
Kindly tell me , what is solution of dynamic tiles add.
Thanks
Asit Sinha
Hello Asit.
Did setting the content to the Stack Panel resolve your issue?
Sincerely,ValerieDeveloper Support Engineer Infragisticswww.infragistics.com/support
Hello Asit,
You can set the content of the tile pane to the stack panel:
_TilePane.Content = _StackPanel;