From the course: AI-Powered Development: GitHub Copilot in Visual Studio
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
PortChecker: The Windows UI - Visual Studio Tutorial
From the course: AI-Powered Development: GitHub Copilot in Visual Studio
PortChecker: The Windows UI
- [Instructor] Now that the class library was in place and working with the console application, it was time to create a Windows version. So I added this PortChecker WPF project to the solution, and then I asked Copilot agent to help me generate the project. This is one area that often gets overlooked. When we think about code generation, we tend to focus on logic and structure, not the UI, but Copilot is equally adept at generating web interfaces or any of the Windows UI components we might need. To give the agent a clear target, I stubbed in a couple of tabs, some basic UI with the correct headers. You can see them here, there's one called List Ports and there's another one called Check port. That way I could tell Copilot exactly where to place the UI elements, and it worked. My first request was to add the code in this List Ports tabs. So here's my prompt, "In the portChecker application, on the List Ports Tab…
Contents
-
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Why use generative AI to create anything?2m 48s
-
(Locked)
Explore the PortChecker prototype1m 23s
-
(Locked)
PortChecker: The console version2m 17s
-
(Locked)
PortChecker: The class library3m 41s
-
(Locked)
PortChecker: The Windows UI4m 23s
-
Explore the kaleidoscope prototype1m 29s
-
(Locked)
Kaleidoscope: Failures and frustrations4m 15s
-
(Locked)
Ask for help: Use chat to refine app generation2m 6s
-
(Locked)
-
-
-