Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7623415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:42:04+00:00 2026-05-31T04:42:04+00:00

I am sorry if this question is double somewhere, I’ve searched but did not

  • 0

I am sorry if this question is double somewhere, I’ve searched but did not find.

I have created my own class.

    Public Class MyListService
        Implements INotifyPropertyChanged
        Public Event PropertyChanged(sender As Object, e As System.ComponentModel.PropertyChangedEventArgs) Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged

        Private Sub OnPropertyChanged(ByVal Title As String)
            RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(Title))
        End Sub

        Private _IsLoggedIn As Boolean = False
    Public Property IsLoggedIn As Boolean
        Get
            Return _IsLoggedIn
        End Get
        Set(value As Boolean)
            If _IsLoggedIn <> value Then
                _IsLoggedIn = value
                Call OnPropertyChanged("IsLoggedIn")
            End If
        End Set
    End Property

End Class

In WPF project, I have in codebehind

Private WithEvents cWebService As new MyListService

In XAML:

<CheckBox IsChecked="{Binding IsLoggedIn}" x:Name="chkIsLoggedIn" />

Please can you tell me how to bind that “IsLoggedIn” property now to the Checkbox?

Regards

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T04:42:05+00:00Added an answer on May 31, 2026 at 4:42 am

    I have absolutely no VB experience but I’ve used WPF with C#.

    Here is my guess:
    you need to set DataContext of your CheckBox to point to the MyListService instance for the binding to work since the binding systems needs to know which object the IsLoggedIn property belongs to.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry if this is a newbie question. I have searched but found nothing... Using
Sorry if this question is too vague, but I'd rather not muddy it's point
Sorry if this question is very easy, but I can't find the answer anywhere.
Sorry if this question is answered already, but I didn't find a suitable answer.
Sorry if this question sounds a little silly, but I am not sure what
Sorry, for double posting, already posted this question once, but I realized I weren't
Sorry for the double post, I will update this question if I can't get
Sorry since this question is specific to my problem. While learning reflections i did
sorry for this question, but i dont know where to search for it, or
Sorry if this is a super noob question. From what I have read it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.