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 6095749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:50:51+00:00 2026-05-23T12:50:51+00:00

Ok, so I have been trying to iron out this data binding for a

  • 0

Ok, so I have been trying to iron out this data binding for a while now and every time I think I get it, it doesn’t work. Please tell me where I am going wrong. Let me know if you need more info, but basically, for right now, I have this as my wAddClient.xaml.vb:

Imports System.ComponentModel
Public Class WAddClient
Implements INotifyPropertyChanged

Public Sub New()

    ' This call is required by the designer.
    InitializeComponent()

    ' Add any initialization after the InitializeComponent() call.
    DataContext = newClient
    newClient = New Client()

End Sub

Private _newClient As Client
Public Property newClient As Client
    Get
        Return _newClient
    End Get
    Set(ByVal value As Client)
        _newClient = value
        NotifyPropertyChanged("newClient")
    End Set
End Property

Public Event PropertyChanged(ByVal sender As Object, ByVal e As System.ComponentModel.PropertyChangedEventArgs) Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged
Private Sub NotifyPropertyChanged(ByVal info As String)
    RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(info))
End Sub
End Class

Then this is what I am trying to do as far as the binding, this is the XAML:

<TextBox Grid.Row="1" Grid.Column="2" Grid.ColumnSpan="4" Name="txtFirstName" Margin="0,0,5,0">
    <TextBox.Text>
        <Binding Source="Me" Path="newClient.first_name" Mode="TwoWay" 
                 ValidatesOnDataErrors="True" ValidatesOnExceptions="True" 
                 UpdateSourceTrigger="PropertyChanged">
        </Binding>
    </TextBox.Text>
</TextBox>

So as you can guess, client has a property first_name that I want to bind. Here is partial code for the client class.

Imports System.ComponentModel

Public Class Client
Implements INotifyPropertyChanged
Implements IDataErrorInfo

'Constructors
Public Sub New()
    salutation = "Mr."
    first_name = "Kevin"
    last_name = "Tester"
    email = ""
    primary_phone = ""
    address_1 = ""
    city = ""
    state_code = ""
    zip_code = ""
    address_2 = ""
    secondary_phone = ""
    fax = ""
End Sub

So I do not understand what I am doing wrong. Please help.

  • 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-23T12:50:52+00:00Added an answer on May 23, 2026 at 12:50 pm

    In your binding: Source="Me" that is wrong.

    Remove that and assign an instance of a Client to the DataContext. The Binding’s Path will be relative to that object.

    Also make sure the Client class uses public properties that will be bound to. Fields do not support binding.

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

Sidebar

Related Questions

I have been trying to get around this error for a day now and
Have been trying to get integration testing working with my seam project and the
Have been trying the whole day long and googled the **** out of the
I have been trying to register 3 hotkeys. I followed this example (or this
I have been trying to get the unique values in each column of a
I have been trying this for hours without success. http://replicaisland.googlecode.com/svn/trunk/ I have added the
I have been trying to implement Win32's MessageBox using GTK. The app uses SDL/OpenGL,
I have been trying to find a really fast way to parse yyyy-mm-dd [hh:mm:ss]
I have been trying to determine a best case solution for registering a COM
I have been trying to work my way through Project Euler, and have noticed

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.