|
Comments
Did you read today's front page stories & breaking news?
SYS-CON.TV
|
Features Dare to Use the Current Capabilities of Windows Presentation Foundation
And get 3D layout effects
Oct. 13, 2008 07:30 AM
The Windows Presentation Foundation community is growing because WPF facilitates the development of better graphical user interfaces and graphical applications. But WPF's tri-dimensional resources are not developed compared to DirectX's capabilities and existing hardware potential. This article will explain how to develop panels to make it easier to lay out tri-dimensional figures in a Viewport3D. The Bi-dimensional Hierarchy Shape is the representation of bi-dimensional geometric figures that can be used to build the appearance of windows and it is also useful as the main kind of artistic components in control templates. Decorators (descendants from type Decorator) can decorate a contained element. Controls are the main actors of the user interface. They can be seen through its control template that can be defined using any WPF element. Panels are not properly "visible" objects because their function is to lay out a collection of elements in the bi-dimensional world. Is the Tri-Dimensional World Organized As Well As the Bi-Dimensional? Building a Panel3D Because ContainerUIElement3D and ModelVisual3D are both container elements, they could be used as a base class for our Panel3D. To obtain a 3D hierarchy similar to the bi-dimensional one shown in Figure 1, the suitable base type should be ContainerUIElement3D, but unfortunately that class is sealed, so we will use ModelVisual3D as the base class of the "panel" class. Reader Feedback: Page 1 of 1
Latest Cloud Developer Stories
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
|
SYS-CON Featured Whitepapers
Most Read This Week
Breaking Cloud Computing News
|
|||||||||||||||||||||||||||||||||||||||||||||||||