List<FloatingWindowInfo> ConvertFloatingWindows(ObservableCollection<LayoutFloatingWindow> windows) { var list = new List<FloatingWindowInfo>(); foreach (var x in windows) { var x2 = x as LayoutDocumentFloatingWindow; if (x2 == null) throw new NotSupportedException("Anchorables are not supported yet"); var winInfo = new FloatingWindowInfo { X = x2.RootDocument.FloatingLeft, Y = x2.RootDocument.FloatingTop, Width = x2.RootDocument.FloatingWidth, Height = x2.RootDocument.FloatingHeight, IsMaximized = x2.RootDocument.IsMaximized, View = ConvertView(x2.RootDocument) }; list.Add(winInfo); } return list; }
List <FloatingWindowInfo> ConvertFloatingWindows(ObservableCollection <LayoutFloatingWindow> windows) { var list = new List <FloatingWindowInfo>(); foreach (var x in windows) { var x2 = x as LayoutDocumentFloatingWindow; if (x2 == null) { throw new NotSupportedException("Anchorables are not supported yet"); } var winInfo = new FloatingWindowInfo { X = x2.RootDocument.FloatingLeft, Y = x2.RootDocument.FloatingTop, Width = x2.RootDocument.FloatingWidth, Height = x2.RootDocument.FloatingHeight, IsMaximized = x2.RootDocument.IsMaximized, View = ConvertView(x2.RootDocument) }; list.Add(winInfo); } return(list); }