WPF getting started

Rock Hitman 46 Reputation points
2020-06-16T14:49:19.95+00:00

I am new to WPF, i have a requirement at client to do some WPF.
Can someone please advise how do I get started in WPF ? I have knowledge on c#.
Please provide some links or videos that may help.
Thank you in advance

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,709 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Ken Tucker 5,846 Reputation points
    2020-06-16T23:47:09.513+00:00

    Here is some info to get started.

    https://learn.microsoft.com/en-us/dotnet/framework/wpf/getting-started/

    I found the book WPF unleased by Adam Nathan to be a very good resource

    1 person found this answer helpful.
    0 comments No comments

  2. DaisyTian-1203 11,621 Reputation points
    2020-06-17T06:57:36.603+00:00

    In addition to the documentation, Microsoft has uploaded the WPF samples on GitHub. You can go here to download it for learning and testing.

    I will give the step to run and test the samples on your device:

    1. Download the samples from the GitHub, right click the .zip file> choose Properties>check the unblock under the security>unzip the file
    2. Open the global.json, you will see the requirements for altsdk and sdk for the solution
    3. Install them from Visual Studio SDKs
    4. After the installation, check the dotnet version on your computer[Step: Win+R >input 'cmd'>click 'Ok'> input 'dotnet --list-sdks']
    5. Make sure this list is consistent with list in global.json,I will show mine in the below picture for you to refer:

    10385-capture.png
    6. Click the WPFSamples.sln in the unzip file , and you can clean and built the solution to run the samples.

    1 person found this answer helpful.