Version

LoadFromXml(Stream) Method

Loads UltraExplorerBar data 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
A Stream containing saved layout data.
Remarks

This method loads the data emitted by the SaveAsXml(Stream) method.

Example
The following code show how to load the control's state from a previously saved stream in XML format.

Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinExplorerBar


	Private Sub Button20_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button20.Click

		Try
			Dim stream As New FileStream("C:\\Layout.xml", FileMode.Open)

			If (Not stream Is Nothing) Then
				stream.Seek(0, SeekOrigin.Begin)

				Me.ultraExplorerBar1.LoadFromXml(stream)

				stream.Close()
			End If
		Catch
			Debug.WriteLine("Error encountered while loading stream!")
		End Try

	End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinExplorerBar;

		private void button20_Click(object sender, System.EventArgs e)
		{

			try
			{
				FileStream stream = new FileStream("C:\\Layout.xml", FileMode.Open);
				if (stream != null)
				{
					stream.Seek(0, SeekOrigin.Begin); 
					this.ultraExplorerBar1.LoadFromXml(stream);
					stream.Close();
				}
			}
			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