Browse by Tags
All Tags » runtime (RSS)
-
The Runtime class ( Model.Runtime ) acts as an object factory. You can either create a subclass of Runtime and override the CreateLine methods, or you could override the OnCreateElement event method or you could simply attach an event handler to the Runtime.CreateElement event.
-
Override the CanDelete method in the Runtime class. This will allow you to determine if an element should be deleted through any user interaction. You will need to assign a new instance of your class to Model.Runtime property
-
1. You may want to expand the logic that determines if the line can dock to the shape it is over. You can do this by overriding the Runtime.CanDock method and providing your own implementation. In the example below we prevent docking to any element with an Opacity less than 100%: public class MyRuntime...
-
Refer to the Model.Runtime.Create* factory methods for items that are created at runtime interactively. Override this class to allow interactive users to create instances of your own custom classes.
Page 1 of 1 (4 items)
|
|
|