Back to Devexpress

DXTabControl.RestoreLayoutFromXml(String) Method

wpf-devexpress-dot-xpf-dot-core-dot-dxtabcontrol-dot-restorelayoutfromxml-x28-system-dot-string-x29.md

latest1.8 KB
Original Source

DXTabControl.RestoreLayoutFromXml(String) Method

SECURITY-RELATED CONSIDERATIONS

Deserializing layout settings from untrusted resources may create security issues. Review the following help topic for additional information: Safe Deserialization.

Restores the layout of tab items from an XML file.

Namespace : DevExpress.Xpf.Core

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public void RestoreLayoutFromXml(
    string path
)
vb
Public Sub RestoreLayoutFromXml(
    path As String
)

Parameters

NameTypeDescription
pathString

An XML file from that contains the layout of tab items to be loaded.

|

Remarks

The DXTabControl supports serialization/deserialization in unbound mode only, and this functionality is disabled by default. To enable it, it is necessary to explicitly set the dx:DXSerializer.Enabled attached property to true for your DXTabControl.

xaml
<dx:DXTabControl dx:DXSerializer.Enabled="True">
...
</dx:DXTabControl>

See Also

DXTabControl Class

DXTabControl Members

DevExpress.Xpf.Core Namespace