We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to add or remove Layout groups and image streamer dynamically in TileLayout?

In Tile Layout, the Layout groups and ImageStreamer can be added or removed dynamically in TileLayout by following below steps.

 

Adding an ImageStreamer:

 

  • Need to add the LayoutGroup to TileGroupCollection by using the property named “Groups” in TileLayout.
  • Need to add required control to ControlCollection of the Layout Group.

 

Removing an ImageStreamer:

 

  • Need to iterate the Layout groups.
  • Need to iterate all the controls of the Layout group.
  • Remove the required control from the control collection.

 

The following code example demonstrates the same.

C#

 

VB

 

 

Figure 1. Layout group and Image streamer added dynamically.

Figure 2. Layout group and Image streamer removed dynamically.

Sample Links:

 

C#: TileLayout_Groups_C#

VB: TileLayout_Groups_VB

Article ID: Published Date: Last Revised Date: Platform: Control:
6346 02/19/2016 02/19/2016 WinForms TileLayout
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon