-
Notifications
You must be signed in to change notification settings - Fork 33
WorkspaceManager
Eduard Scherf edited this page Feb 16, 2022
·
3 revisions
VisualComponents
Handy tools for visual representation.
ModifiedCanvas
A modifed Canvas to enable feature such as ZIndex managing and scrolling.
-
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 Routing 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 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