0

My question is a simple one how do I bind a passwordBox defined in code ie:

public PasswordBox Password
        {
            get { return m_pwd; }
        }

to a contentpresenter in wpf
considering that the datacontext of the usercontrol is already set to the .cs file that contains the PasswordBox.
Any Ideas? I've done what i thought would work but that didnt work which was setting something like:

<contentpresenter content="{Binding Path=Password}" />

Or if no in the content presenter then where?
Thanks All.
~A programmer slowly Getting Annoyed at MVVM

Edited by CrazyProgrammer: n/a

1
Contributor
1
Reply
2
Views
6 Years
Discussion Span
Last Post by CrazyProgrammer
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.