© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
1 reply
aqsztdje3vj55239

How to test user controls

Good day everyone,
I've recently started working on a decently big project at work which uses a lot of user controls. Currently, if anyone wants to test the controls, they usually add it to one of our default applications, which is quite the pain since it takes up to 2 minutes to start, has a annoying log in screen and is pretty slow on our development laptops.
Coming from my own UI implementations in C++/OpenGL or IMGUI, I've always had a way to launch a window with only a single ui component for testing, saving a screenshot of every distinct frame, manual testing with pass/fail buttons.
But I couldn't find anything in regards to testing user controls in isolation in c#/wpf. I had the idea to do it similar to my manual pass/fail approach and just create a window and set the content to the user control, but I was wondering if there are any better ways or if I am simply bad at searching...

tldr:
how do I test user controls in isolation
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Avalonia User Controls
C#CC# / help
4y ago
❔ How To Refresh ContentPage Controls
C#CC# / help
3y ago
WPF Custom controls/User controls binding issues and total confusion
C#CC# / help
3y ago
❔ ✅ How to get ImageLocation from Controls?
C#CC# / help
3y ago