© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
1 reply
eduardoA

Custom control Binding

I am making a reusable control

I am going to use pastebin for this

I have a customControl

https://pastebin.com/2VyzUbYG

I am using this control on a page called NewTestPage, this page is inheriting from MyLecturePage.

My LecturePageViewModel, looks like this

https://pastebin.com/RzfeHEEa

My testPageViewModel, looks liike this

public partial class NewTestPageViewMode(IAppService appService, IDataService<Models.User> dataService,
    IMeetingService meetingService, IAuthenticationService authenticationService) :
    NewLecturePageViewModel(appService, dataService, meetingService, authenticationService) {
}
public partial class NewTestPageViewMode(IAppService appService, IDataService<Models.User> dataService,
    IMeetingService meetingService, IAuthenticationService authenticationService) :
    NewLecturePageViewModel(appService, dataService, meetingService, authenticationService) {
}


As you can see, the only thing this page is doin is inheriting from NewLecturePage

but the bindings dosent seem to work

it dosent want to grab the name

and the checkboxoxes dosent seem to trigger

this is very strange, because MyLecture page works as expected

https://pastebin.com/UTR57V7Z
image.png
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
public partial class NewLecturePageViewModel(IAppService appService...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
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

❔ Entry Binding in custom control doesn't work
C#CC# / help
3y ago
Tab Control Data Binding
C#CC# / help
2y ago
WPF User control and updating binding
C#CC# / help
12mo ago
❔ binding Command in user control button problem
C#CC# / help
3y ago