Showing posts with label Win7. Show all posts
Showing posts with label Win7. Show all posts

WPF: Stack Panel

Tuesday, 28 August 2012


The StackPanel in WPF is a simple and useful layout panel. It stacks its child elements below or beside each other, dependening on its orientation. This is very useful to create any kinds of lists. All WPF ItemsControls like ComboBox, ListBox or Menu use a StackPanel as their internal layout panel.

Stack Items Horizontally
A good example for a horizontal stack panel are the "OK" and "Cancel" buttons of a dialog window. Because the size of the text can change if the user changes the font-size or switches the language we should avoid fixed sized buttons. The stack panel aligns the two buttons depending on their desired size. If they need more space they will get it automatically. Never mess again with too small or too large buttons. You can do the same by setting Orientation property to Horizontal

Introduction To Windows Presentation Foundation

Overview

The Windows Presentation Foundation is Microsofts next generation UI framework to create applications with a rich user experience. It is part of the .NET framework 3.0 and higher.

WPF combines application UIs, 2D graphics, 3D graphics, documents and multimedia into one single framework. Its vector based rendering engine uses hardware acceleration of modern graphic cards. This makes the UI faster, scalable and resolution independent.

The followinig illustration gives you an overview of the main new features of WPF


Separation of Appearance and Behavior
WPF separates the appearance of an user interface from its behavior. The appearance is generally specified in the Extensible Application Markup Language (XAML), the behavior is implemented in a managed programming language like C# or Visual Basic. The two parts are tied together by databinding, events and commands. The separation of appearance and behavior brings the following benefits:

Appearance and behaviour are loosely coupled
Designers and developers can work on separate models.
Graphical design tools can work on simple XML documents instead of parsing code.

Rich composition

Controls in WPF are extremely composable. You can define almost any type of controls as content of another. Although these flexibility sounds horrible to designers, its a very powerful feature if you use it appropriate. Put an image into a button to create an image button, or put a list of videos into a combobox to choose a video file.
                                           



<button>
<stackpanel orientation="Horizontal">
<img source="speaker.png" stretch="Uniform" />
<textblock text="Play Sound">
</textblock></stackpanel>
</button>


 Highly customizable

Because of the strict separation of appearance and behavior you can easily change the look of a control. The concept of styles let you skin controls almost like CSS in HTML. Templates let you replace the entire appearance of a control.

The following example shows an default WPF button and a customized button.


Resolution independence

All measures in WPF are logical units - not pixels. A logical unit is a 1/96 of an inch. If you increase the resolution of your screen, the user interface stays the same size - it just gets crispier. Since WPF builds on a vector based rendering engine it's incredibly easy to build scaleable user interfaces.




Activate Windows 7 Enterprise With OEM

Thursday, 7 July 2011
Step 1:

Step 2:
How to activate windows 7 enterprise? Let’s Start  with Windows 7 Enterprise.

Step 3
Now, we need a software for activate windows 7 enterprise. You can download it by making  A search in Google “w7lxe-v10”. After download complete,double click on w7lxe-v10.exe as shown in figure.

Step 4:
You can also select manual mode. As shown in figure…do this.

 Step 5: 
After click on activate button as shown in figure..

 Step 6: 
Now restart your computer. And go to My Computer properties as shown in figure..
After Click on properties as shown in figure...

 Step 7:
Now your windows 7 enterprise edition is activated with OEM.