• USA : +1 973 910 5725
  • INDIA: +91 905 291 3388
  • info@tekslate.com
  • Login

Working With Windows Based desktop Applications in WPF

Working With Windows Based desktop Applications


Creating a WPF applications


Go to visual studio.net


Click on file


Click on new


Select visual CH from project types


Select WPF application template


Type WPF application name


Choose the location to save


Click on ok


The container in WPF application is known as window

The container names we get as window1, window2, window3, —etc by default.

Every window will have a default extension of .XAML

.XAML file will contain design part of the window also we find an additional file with the extension of .xaml.cs which will contain completely a programming code. This is similar of webpage design

Complete class library of WPF is available

“System windows namespace”

Window we create within the WPF application a class and window1, window2, window3 etc are inherited form window class by default


Methods with window class

  1. Show ()
  2. Hide()
  3. Activate()
  4. Close


  1. Hide():-
    • This method is used to hide the displayed window from the user.
  2. Show():-
    • This method is used to display the window object to the class
  3. Activate():-
    • This method is used to make any window as active
  4. Close():
    • This method is used to close. The open window when a window is closed, the object its associated is destroyed and if we want to reuse that window, we have to recreate that object In general any control we create within the window will maintain hierarchy like.





Review Date
Reviewed Item
Working With Windows Based desktop Applications in WPF
Author Rating

“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at info@tekslate.com, we will update the article in 24 hours.”

0 Responses on Working With Windows Based desktop Applications in WPF"

    Leave a Message

    Your email address will not be published. Required fields are marked *

    Site Disclaimer, Copyright © 2016 - All Rights Reserved.


    Please leave a message and we'll get back to you soon.

    I agree to be contacted via e-mail.