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

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

 Subscribe to Articles

Introduction to WPF Day-1

Posted By:Narayanan       Posted Date: August 22, 2012    Points: 200    Category: WPF    URL: http://www.dotnetspark.com  

This article is very useful to WPF learns. I am trying to explain WPF usage and How to use WPF Controls in WPF Application?in Day, I explained WPF Introduction and controls in WPF.

Introduction to WPF:

WPF:Windows Presentation Language.

·  It is a Next level of presentation system for building windows Client Application.

·  You can create Standalone and browser-hosting Application.

·  It is a resolution -Independent and Vector based rendering engine.

·Application Development features that include Extensible Application Markup Language (XAML).Controls, data binding, layout, 2-D, 3-D, animation and So On.

·  WPF includes additional Programming constructs that enhance properties and events.

·  WPF Properties are Dependency Properties.

·  WPF events are Routed Events.

·  WPF contains many elements.

Application Model:

WPF Provides types and services that are collectively known as “Application Model”.

Standalone Application:

·  You can use windows class in the Application that is called “Standalone Application”.

·  You can create and use Windows, Dialog Box, MesageBox, menubar in the Standalone Application.

Browser Host Application:

  •          Browser Host Application knows as “XAML browser application (XBAP).
  •          You can create and use Page(s), Page functions in Browser Host Application.
  •          It can be hosted in the IE 6 and IE 7.

Application Class:

  •        Require additional application-scoped services, including startup and lifetime management.
  •          It supports XBAP and Standalone Application.

XAML Overview:

     XAML is XML based markup language.

     It typically used to create windows, User Controls, pages and Dialog boxes and So On. I give an example for create a Button in XAML.

    Title="Window with Button"
    Width="250" Height="100">
  <Button Name="btn_Hi">Hi! </Button>

Here, the XAML defines Windows and a button by using Windows and Button elements. Each element has attributes.

WPF Controls:

          Here, I will give some list of controls in WPF.

·  AccessText

·  Border Control

·  Button Control

·  BulletDecorator Control

·  Canvas Control

·  Calendar Control

·  CheckBox Control

·  ComboBox Control

·  ContextMenu Control

·  Datagrid Control

·  DatePicker Control

·  DockPanel Control

·  DocumentViewer Control

·  Expander Control

·  FlowDocumentPageviewer Control

·  FlowDocumentReader Control

·  FlowDocumentScrollviewer Control

·  Frame

·  Grid Control

·  GridView Control

·  GridSplitter Control

·  GroupBox Control

·  Hyperlink

·  Image Control

·  InkCanvas Control

·  InkPresenter Control

·  Label

·  ListView Control

·  ListBox Control

·  Menu

·  MediaElement

·  NavigationWindow

·  OpenFiledialog Control

·  PasswordBox Control

·  Panel Control

·  Page

·  PrintDialog Control

·  Popup

·  ProgressBar

·  RadioButton

·  Repeated Control

·  ResizeGrip Control

·  RichTextBox Control

·  SaveFileDialog Control

·  Separator Control

·  ScrollBar Control

·  ScrollViewer Control

·  Slider

·  SoundPlayerAction

·  StackPanel Control

·  StrickNoteControl

·  StatusBar

·  TabControl

·  TextBlock

·  TextBox Control

·  Thumb Control

·  ToolTip

·  ToolBar

·  TreeviewControl

·  Viewbox Control

·  VirtualizingStackPanel Control

·  Window Control

·  WrapPanel Control      

Now, I am trying to explain the usage of every control in WPF. I explain alphabetical order.

First we will discuss about AccessText.

·  AccessText :

User can create an Access key using underscore.

Suppose user uses this below in the XAML .user gets error.

<Button Content="Ok" Click="btn_Clicked">
Error: The property 'Content' is set more than once.


  Because we can use Content or AccessText in the Control.


  I hope, you get some ideas about WPF and AccessText.Thanks for reading this article. We will talk about other controls in next Chapters.              

 Subscribe to Articles


Further Readings:

Author: Baimey Rajesh         Company URL: http://www.dotnetspark.com
Posted Date: August 23, 2012

Nice Start

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