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
735
Add dynamic Tile pane into Tileview
posted

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