© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2mo ago•
12 replies
etherallax

ViewModel with BaseViewModel

visual studiointermediate
I was trying to make things more dry instead of doing ILogger, IFileDialog, etc in each viewmodel so I made a BaseViewModel for the common ones.
I have included a Gist so you only see the part of the code that matters.

https://gist.github.com/DarkCyphrex/e20f7e50db658eabfedf87c9b13d706e

Problem

The contructor of SettingsViewModel.cs is throwing this
There is no argument given that corresponds to the required parameter on the ctor. Where did I go wrong?

Thank you. 🫡
Gist
BaseViewModel.cs
GitHub Gist: instantly share code, notes, and snippets.
BaseViewModel.cs
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

Command WPF with viewmodel
C#CC# / help
4y ago
I need help with ViewModel
C#CC# / help
3y ago
View or ViewModel duty?
C#CC# / help
6mo ago
MAUI navigation to new page with injected viewModel
C#CC# / help
4y ago