
Basic Drawing and Shapes in Windows Presentation FoundationThis
article covers the new features introduced in Windows Presentation Foundation
for drawing shapes. A Shape is a type of UIElement, and enables you to draw a
shape to the screen. The Content Panels can contain Shape elements as children.
Whenever the properties of these elements got changed, screen reflects those changes
automatically. WPF
provides number of Shape classes. These are derived from Shape class. Shape
class has following properties:
Stroke - StrokeThickness - Fill - Data ->>
Stretch : Specify the behavior of the shapes, when the width and height of Parent
element got changed. The following are values ->>
Transformation : Specify the type and measure for transformation Example: <StackPanel> </StackPanel> The
result of the above code will give you an image as shown below:
_______________________________________________________________________ _______________________________________________________________________
FREE
Subscription
Subscribe to our mailing list and receive new articles Note
: We never rent, trade, or sell my email lists to Visit
.NET Programming Tutorial Homepage ______________________________________________________ |