public void OnUnify(ISplittableViewManager viewmanager) { Debug.WriteLine("SESSIONTEST " + viewmanager.FormatSplitInfo()); }
public void FormatWindowPreference(MainWindow f) { IPreferenceFolder element = _windowArrayPreference.CreateNewFolder(); FormWindowState st = f.WindowState; Rectangle rc = st == FormWindowState.Normal? f.DesktopBounds : f.RestoreBounds; //Normal時にはRestoreBound取得できない、注意 _windowArrayPreference.ConvertItem(element, _windowPositionPreference).AsString().Value = String.Format("({0}{1},{2},{3},{4})", st == FormWindowState.Maximized? "Max," : "", rc.Left, rc.Top, rc.Width, rc.Height); //TODO PreferenceItemのテンプレートをViewManager側に移動したほうが汎用的 ISplittableViewManager vm = (ISplittableViewManager)f.ViewManager.GetAdapter(typeof(ISplittableViewManager)); if (vm != null) { _windowArrayPreference.ConvertItem(element, _windowSplitFormatPreference).AsString().Value = vm.FormatSplitInfo(); } _windowArrayPreference.ConvertItem(element, _toolBarFormatPreference).AsString().Value = f.ToolBar.FormatLocations(); _windowArrayPreference.ConvertItem(element, _tabRowCountPreference).AsInt().Value = f.DocumentTabFeature.TabRowCount; }
public void OnUnify(ISplittableViewManager viewmanager) { Debug.WriteLine("SESSIONTEST " + viewmanager.FormatSplitInfo()); }