VG.net 2.4b
VG.net Version 2.4b was released yesterday. It contains a small set of changes.
Designer Enhancements
- If you wish to make all invisible Elements visible at design-time, select the top-level Picture and set the InvisibleAreDisplayed property to true. This has no effect at run-time.
- If you wish to select disabled Elements by clicking with the mouse, select the top-level Picture and set the property DisabledArePickable to true. A "disabled" Element is one with Enabled set to false.
Run-time Only Enhancements
- The CustomElement copy constructor is now protected, to be used by derived classes. We added the InternalFill, InternalStroke, and InternalTextAppearance protected properties, as well as supporting members so that a CustomElement based class can expose a Fill, Stroke, or TextAppearance property.
- In DrawContext, we made several members public to support CustomElement derived clases: Font, TextBrush, GetFullTextBounds, GetTextPixelBounds, DrawText, PushTransformation, and PopTransformation.
- We created a preliminary CustomElement sample, which draws text along an arbitrary Shape path. If you need to build a CustomElement (an advanced topic) please request a copy of this sample. In the future the sample will be added to the Extras package.
Bug Fixes and Obsolete Members
- In the VG.net Designer Lite version only, if you attempted to exceed the object count limit, the Rotation and Shearing adornments would disappear. This bug is fixed.
- Setting the Enabled property from true to false on a Shape caused problems with mouse events and display updates, if the DrawAction was set to Fill. This bug is fixed.
- We added an overload for the Element HitTest method: bool HitTest(Vector point, out Element hitElement). The existing HitTest method has an additional boolean parameter called skipDisabled. This parameter is no longer supported, and the HitTest(Vector, bool, out Element) overload is now obsolete.