Implementation method for splicing multiple WPF windows into operable canvas
The invention discloses an implementation method for splicing multiple WPF windows into an operable canvas, which comprises the following steps: step 1, creating a WPF main window, creating a container on the WPF main window, adding at least two WPF sub-windows for forming the canvas into the contai...
Gespeichert in:
Hauptverfasser: | , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses an implementation method for splicing multiple WPF windows into an operable canvas, which comprises the following steps: step 1, creating a WPF main window, creating a container on the WPF main window, adding at least two WPF sub-windows for forming the canvas into the container, and splicing the WPF sub-windows into the canvas; 2, registering a touch response event for each WPF sub-window, wherein the touch response event is used for responding to the canvas operation of the user; and step 3, based on the touch response event, obtaining a transformation quantity generated by the operation on the canvas, the transformation quantity comprising a transverse displacement quantity, a longitudinal displacement quantity and a scaling ratio. And step 4, based on the conversion quantity, responding to zooming and moving operations of the container, thereby realizing zooming and moving operations on the canvas spliced by the plurality of WPF sub-windows. The method is simple to operate, more co |
---|