Subversion Repositories SoapBoxCore

Rev

Rev 7 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7 Rev 17
Line 1... Line 1...
1
//Copyright (c) 2007-2009, Adolfo Marinucci
1
//Copyright (c) 2007-2010, Adolfo Marinucci
2
//All rights reserved.
2
//All rights reserved.
3
 
3
 
4
//Redistribution and use in source and binary forms, with or without modification, 
4
//Redistribution and use in source and binary forms, with or without modification, 
5
//are permitted provided that the following conditions are met:
5
//are permitted provided that the following conditions are met:
6
//
6
//
Line 54... Line 54...
54
            Anchor = _referencedPane.Anchor;
54
            Anchor = _referencedPane.Anchor;
55
 
55
 
56
            SetValue(ResizingPanel.ResizeWidthProperty, new GridLength(ResizingPanel.GetEffectiveSize(_referencedPane).Width));
56
            SetValue(ResizingPanel.ResizeWidthProperty, new GridLength(ResizingPanel.GetEffectiveSize(_referencedPane).Width));
57
            SetValue(ResizingPanel.ResizeHeightProperty, new GridLength(ResizingPanel.GetEffectiveSize(_referencedPane).Height));
57
            SetValue(ResizingPanel.ResizeHeightProperty, new GridLength(ResizingPanel.GetEffectiveSize(_referencedPane).Height));
58
 
58
 
59
 
-
 
60
            //if (double.IsInfinity(ResizingPanel.GetResizeWidth(this)))
-
 
61
            //    ResizingPanel.SetResizeWidth(this, 200);
59
            this.Style = _referencedPane.Style;
62
            //if (double.IsInfinity(ResizingPanel.GetResizeHeight(this)))
-
 
63
            //    ResizingPanel.SetResizeHeight(this, 200);
-
 
64
 
60
 
65
            //remove content from container pane
61
            //remove content from container pane
66
            //and add content to my temporary pane
62
            //and add content to my temporary pane
67
            _referencedPane.Items.RemoveAt(_arrayIndexPreviousPane);
63
            _referencedPane.Items.RemoveAt(_arrayIndexPreviousPane);
68
            this.Items.Add(content);
64
            this.Items.Add(content);
Line 87... Line 83...
87
            }            
83
            }            
88
        }
84
        }
89
 
85
 
90
 
86
 
91
        DockablePane _referencedPane = null;
87
        DockablePane _referencedPane = null;
-
 
88
 
-
 
89
        internal DockablePane ReferencedPane
-
 
90
        {
-
 
91
            get { return _referencedPane; }
-
 
92
        }
92
 
93
 
93
        DockingManager _manager = null;
94
        DockingManager _manager = null;
94
 
95
 
95
        public override DockingManager GetManager()
96
        public override DockingManager GetManager()
96
        {
97
        {
97
            return _manager;
98
            return _manager;
98
        }
99
        }
99
 
100
 
100
        internal override void ToggleAutoHide()
101
        public override void ToggleAutoHide()
101
        {
102
        {
102
            GetManager().ToggleAutoHide(_referencedPane);
103
            GetManager().ToggleAutoHide(_referencedPane);
103
        }
104
        }
104
        //internal override void Close()
-
 
105
        //{
-
 
106
        //    DockingManager manager = GetManager();
-
 
107
        //    if (manager != null)
-
 
108
        //    Manager.Hide(SelectedItem as DockableContent);
-
 
109
        //}
-
 
110
   }
105
   }
111
}
106
}
112
 
107