Changing the Z-Order Dynamically in Code

To change z-order of the element from the application code, you should:

  1. get this element;
  2. create the ElementCollection collection and add the needed element to it;
  3. set the needed z-order using the PutToBack, MoveBackward, MoveForward, BringToFront functions.

For example:

PerpetuumSoft.Instrumentation.Model.ElementCollection elementCollection = 
 new PerpetuumSoft.Instrumentation.Model.ElementCollection();

Add Feedback