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
615
Adding Panels to a Row\Column Position
posted

If you programmatically added tile panes to the web tile view, is there a way to specify the position of the tile pane in the tile view, instead of using the control's default positioning; left to right, top to bottom.  For example, if I had a two row, two column tile view and wanted to add a tile pane to the second column, second row position; is that possible?

Parents
No Data
Reply
  • 1140
    Suggested Answer
    posted

    You could accomplish that by using the tileView.Items.Insert(index, tilepane) method.  for instance, if you have a layout of 2 X 2 then you would want to insert at index 3, since the collection is base zero.

     

     

    TilePane

     

     

    tptest = new TilePane();

    tptest.Background =

    new SolidColorBrush(Colors.Black);

    tileView.Items.Insert(3, tptest);

     

Children
No Data