-
Notifications
You must be signed in to change notification settings - Fork 127
WorkspaceManager
Eduard Scherf edited this page Feb 16, 2022
·
3 revisions
VisualComponents
Handy tools for visual representation. source:trunk/CrypPlugins/WorkspaceManager/View/VisualComponents Source: VisualComponents
ModifiedCanvas
A modifed Canvas to enable feature such as ZIndex managing and scrolling. source:trunk/CrypPlugins/WorkspaceManager/View/VisualComponents/ModifiedCanvas/ModifiedCanvas.cs Source: ModifiedCanvas
-
OnVisualChildrenChanged(DependencyObject visualAdded, DependencyObject visualRemoved)
- Eventhandler from the Panel class which will be executed if an UIElement is added to the Panel. If the added element is type of source:trac/CrypTool2/browser/trunk/CrypPlugins/WorkspaceManager/View/Base/Interfaces/IRouting.cs IRouting then the canvas add an event handle; the event handle is used to update the canvas for the ScrollViewer which is wrapped around the canvas. If the element is type of source:trac/CrypTool2/browser/trunk/CrypPlugins/WorkspaceManager/View/Base/Interfaces/IZOrdering.cs IZOrdering the element will be appended in an LinkedList which is used for the managing of the ZIndex property.
-
MeasureOverride(Size constraint)
- Enables scrolling with the Canvas class. It calculates the size of the content which is needed for scrolling. The LinkedList is converted to a List; each element has a index in the list this property is used to determine the ZIndex value of the element. (The conversion is needed because the LinkedList has no indexation)
-
RequestZIndexModification(ModifiedCanvas panel,IZOrdering obj, ZPaneRequest req) (static)
- test