.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Articles >> WPF >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Windows Presentation Foundation-- Chapter I

Posted By:Narayanan       Posted Date: December 09, 2011    Points: 200    Category: WPF    URL: http://www.dotnetspark.com  

Summary: Now we will discuss about WPF and step by step processing of WPF.
 

 Introduction of WPF:

Ø New graphical display system for windows

Ø Designed for .NET influenced by HTML and Flash

Ø WPF recognized Three  rendering Tires

                                                                       I.            Rendering Tire 0

                                                                     II.            Rendering Tire 1

                                                                  III.            Rendering Tire 2

Rendering Tire 0: The Video card will not provide any hardware                acceleration. This corresponds to a DirectX version level of less than 7.0.

 

Rendering Tire 1: The Video card can provide partial hardware                acceleration. This corresponds to a DirectX version level greater than 7.0 and lesser than 9.0.

 

Rendering Tire 2:  All features that can be hardware accelerated will be. This corresponds to a DirectX version level greater than or equal 9.0.

 

Refer: Pro WPF in C# 2008 by Matthew MacDonald.

 

 

Create WPF Application:

 

                                Open Visual Studio 2008 >> Create a Project >> you could see the following screen.

 

 

        I.            Select a Framework version 3.5 on the Right side of the top of Screen.

      II.            Select a WPFApplication in the template section of the Screen.

    III.            Specify Application name in the Input Box.

    IV.            Now, you could see the following screen.


In this screen, we see two sections. One is design section and XAML Section.

Generally, we know design section. But what is that XAML section. I will explain.

XAML:

        I.            It is a Short term of Extensible Application Markup Language.

      II.            It Pronounced "Zammel".

    III.            Primary role of XAML is Construct WPF User Interface.

 


    
       
    

 

  This document includes two elements.One is Top level and other one is grid

1)    In Top level:

                                                          I.      Windows

                                                      II.      Page (It is like a Windows.But used for Navigation Application)

                                                  III.      Application(Application resources and startup setting)

 

2)     Grid:

    In which you can place al controls.

 

        I.         Window x:Class="MyFirstWPFApplication.Window1"

Here, x namespace prefix place the class attributes in the XML namespace.

 

    II.         xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation

xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml

               These two lines are namespace of WPF.

 

III.         Title="Window1" Height="300" Width="300">

                              Here, Three Properties are of windows.

                       Title: Title of the Window

                       Height: default Height of the window is 300

                       Width: default Width of the window is 300


Conclusion:

                 Any updates and feedback send to my ID: irnaraayanan@yahoo.com


 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend