Version

LoadFromXml(Stream) Method

Loads data about the UltraTilePanel from the specified stream previously saved in XML (Soap) format.
Syntax
'Declaration
 
Public Overloads Sub LoadFromXml( _
   ByVal stream As Stream _
) 
public void LoadFromXml( 
   Stream stream
)

Parameters

stream
The stream from which to load the data.
Example
The following code demonstrates how to load an UltraTilePanel layout from an XML file.

Imports System.Windows.Forms
Imports Infragistics.Win
Imports Infragistics.Win.Misc

Try
    ' Load the layout of the UltraTilePanel from an XML file.
    Dim stream As New System.IO.FileStream("C:\\TilePanelLayout.xml", System.IO.FileMode.Open)
    Me.UltraTilePanel1.LoadFromXml(stream)
    stream.Close()
Catch
    Debug.WriteLine("Error encountered while saving stream!")
End Try
using System.Windows.Forms;
using Infragistics.Win;
using Infragistics.Win.Misc;

try
{
	// Load the layout of the UltraTilePanel from an XML file.
	using ( FileStream stream = new FileStream( "C:\\TilePanelLayout.xml", FileMode.Open ) )
		this.ultraTilePanel1.LoadFromXml( stream );
}
catch
{
	Debug.WriteLine( "Error encountered while loading stream!" );
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also