Click here to Skip to main content
15,914,488 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: MaskText box is not scrolling in scrollviewer, in WPF Pin
Mark Salsbery22-May-09 6:31
Mark Salsbery22-May-09 6:31 
QuestionCreating this sort of style in WPF/Blend Pin
pancakesOfMassDeliciousness22-May-09 2:15
pancakesOfMassDeliciousness22-May-09 2:15 
AnswerRe: Creating this sort of style in WPF/Blend Pin
Mark Salsbery22-May-09 5:09
Mark Salsbery22-May-09 5:09 
AnswerRe: Creating this sort of style in WPF/Blend Pin
Gideon Engelberth22-May-09 15:12
Gideon Engelberth22-May-09 15:12 
AnswerRe: Creating this sort of style in WPF/Blend Pin
Unagii10-Feb-10 3:22
Unagii10-Feb-10 3:22 
GeneralRe: Creating this sort of style in WPF/Blend Pin
pancakesOfMassDeliciousness10-Feb-10 3:27
pancakesOfMassDeliciousness10-Feb-10 3:27 
GeneralRe: Creating this sort of style in WPF/Blend Pin
Unagii10-Feb-10 3:45
Unagii10-Feb-10 3:45 
GeneralOverview: WPF Pin
Kamal Gurnani22-May-09 0:44
Kamal Gurnani22-May-09 0:44 
Why WPF
To build Desktop applications, Microsoft came up with numerous APIs over the years, like Win32 API, MFC, VB 6.0 and lately .NET Winform.

Typically in a full fledged desktop application, you would like to have diverse User interfaces like controls, 2D Graphics, 3D-Graphics and may be optionally (say by clicking on Advanced.. button) you want to have Media and Animation.

Looking at above APIs from Microsoft, It is difficult for a Windows Programmer to master diverse nature of each API for a particular User interface.

Apart from this, in all above technologies more or less the overall Layout was fixed. In other words, Layout couldn't adapt itself easily to different window sizes.

Finally, In all above technologies, there is no way to separate the Graphical contents from code. Say e.g in WinForm Apps, when you drag and drop a control on a form surface framework generates C# code. It also means that to change the look and feel of any control you will have to deal with code.

This is where Microsoft came up with 'Windows Presentation Foundation' (WPF)
Windows Presentation Foundation is a one of the .NET components which allows you to develop the Next Generation Desktop Application with very rich user interfaces.
WPF is available from .NET 3.0 onwards. It is one of the components of .NET 3.0 and .NET 3.5 frameworks

-------------------------------------------------------------------------------------------------
WPF Features:
1) Single Unified programming Model for different User Interfaces like 2D Graphics, 3D Graphics, Media, Document API and Animation
2) Declarative User interface through XAML
3) Separation of Business logic from UI part through *XAML
4) Flexible Layout Model (no use of coordinates of control w.r.t to window)
5) Lookless controls (without fixed size)
6) Enhanced Designer and Developer productivity. Designer can work on UI aspect through *XAML file and developer would be busy with corresponding .cs file
7) Powerful data binding model
8) Hardware acceleration. WPF drawing is performed through DirectX.

---------------------------------------------------------------------------------------------------


WPF's basic programming Infrastructure
-> Declarative programming Style using *XAML (Using XAML is optional)
-> Dependency Properties wrapped under normal .NET properties
-> Routed Events
-> Control Commands
---------------------------------------------------------------------------------------------------

*XAML (Zammel) is XML based markup language to instantiate .NET objects
XAML tags are mapped with .net classes, XAML file is compiled into *BAML
BAML is tokenized binary form of XAML and .NET objects are created using this BAML

BAML enhances performance as compare to creating .NET objects through raw parsing of uncompiled XAML file.
---------------------------------------------------------------------------------

Flavors of WPF applications

1) Traditional Desktop Application
2) Navigation based WPF Application - for light weight desktop app
3) XAML browser Application (XBAP) - natively hosted by browser

Now you have correct perspective, programming WPF is the next natural step.
GeneralRe: Overview: WPF Pin
Pete O'Hanlon22-May-09 0:58
mvePete O'Hanlon22-May-09 0:58 
GeneralRe: Overview: WPF Pin
Allen Anderson25-May-09 17:49
Allen Anderson25-May-09 17:49 
QuestionInteroperability: Form vs. Window Pin
Kunal Chowdhury «IN»21-May-09 23:24
professionalKunal Chowdhury «IN»21-May-09 23:24 
AnswerRe: Interoperability: Form vs. Window Pin
Pete O'Hanlon22-May-09 0:27
mvePete O'Hanlon22-May-09 0:27 
AnswerRe: Interoperability: Form vs. Window Pin
#realJSOP22-May-09 0:30
professional#realJSOP22-May-09 0:30 
AnswerRe: Interoperability: Form vs. Window Pin
ABitSmart22-May-09 3:53
ABitSmart22-May-09 3:53 
GeneralSilverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
SBJ21-May-09 11:48
SBJ21-May-09 11:48 
GeneralRe: Silverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
Mark Salsbery22-May-09 6:12
Mark Salsbery22-May-09 6:12 
GeneralRe: Silverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
SBJ22-May-09 6:48
SBJ22-May-09 6:48 
GeneralRe: Silverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
Mark Salsbery22-May-09 7:04
Mark Salsbery22-May-09 7:04 
GeneralRe: Silverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
SBJ22-May-09 7:41
SBJ22-May-09 7:41 
GeneralRe: Silverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
Mark Salsbery22-May-09 8:07
Mark Salsbery22-May-09 8:07 
GeneralRe: Silverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
SBJ22-May-09 10:32
SBJ22-May-09 10:32 
GeneralRe: Silverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
Mark Salsbery22-May-09 10:39
Mark Salsbery22-May-09 10:39 
QuestionM-V-VM implementation question Pin
ml_black21-May-09 9:48
ml_black21-May-09 9:48 
AnswerRe: M-V-VM implementation question Pin
Pete O'Hanlon21-May-09 10:33
mvePete O'Hanlon21-May-09 10:33 
GeneralRe: M-V-VM implementation question Pin
ml_black22-May-09 2:32
ml_black22-May-09 2:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.