例外 | 解説 |
---|---|
System.InvalidOperationException | SaveInLayout が True になっている ContentPane の「Name」プロパティが設定されていないか、もしくは、保存される他のコンテンツ ペインと区別できない名前です。 |
Imports Infragistics.Windows.DockManager Private _originalLayout As String Private Sub dmResetLayout_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs) ' save the original layout when the dockmanager was first ' loaded so we can restore it later Dim dm As XamDockManager = TryCast(sender, XamDockManager) Me._originalLayout = dm.SaveLayout() End Sub Private Sub mnuResetLayout_Click(ByVal sender As Object, ByVal e As RoutedEventArgs) Me.dmResetLayout.LoadLayout(Me._originalLayout) End Sub
using Infragistics.Windows.DockManager; private string _originalLayout; private void dmResetLayout_Loaded(object sender, RoutedEventArgs e) { // save the original layout when the dockmanager was first // loaded so we can restore it later XamDockManager dm = sender as XamDockManager; this._originalLayout = dm.SaveLayout(); } private void mnuResetLayout_Click(object sender, RoutedEventArgs e) { this.dmResetLayout.LoadLayout(this._originalLayout); }