Quantcast
Channel: UserControl and Two-way Binding
Browsing all 9 articles
Browse latest View live

UserControl and Two-way Binding

You are right; seems like DataContext has a different purpose.  It is strange that it binds one way though -- and for a read-only control the context can be used (it seems).  Anyway, the dependency...

View Article



UserControl and Two-way Binding

Man, you're messing with it all.That is not the purpose of DataContext is object that should be regarded as the source of the information to be used/displayed in the control.Why don't you just have...

View Article

UserControl and Two-way Binding

Thanks Bigsby,The thing is that I have no class of my own.  I want to use a string.  All I want is a user control that contains a textbox.  I want the DataContext of the user control to be assigned a...

View Article

UserControl and Two-way Binding

Vko, I tried that - no luck

View Article

UserControl and Two-way Binding

What I mean is that DataContext property is of type object. If you set a string to it, it will always be just a string until you convert it into the object of the type you intend the data context to...

View Article


UserControl and Two-way Binding

Your DataContext is bound with the Default binding Mode (OneWay), try this :<bb:FolderPicker DataContext="{Binding Path=SomeStringProperty, Mode=TwoWay}"></bb:FolderPicker>Vko

View Article

UserControl and Two-way Binding

Hi Bigsby,I am not sure why a converter would be required -- I thought coverting to and from String is no problem.  However, I followed your advice and wrote a converter.  I used it at various places;...

View Article

UserControl and Two-way Binding

What you're need is a converter. A string is not an object with the property you're binding in the TextBox.So, if you want to use a string to bind DataContext, you'll have to convert the string into an...

View Article


UserControl and Two-way Binding

Hello, I want to create a UserControl with a TextBox and a Button inside it.  The UserControl's DataContext must bind to the TextBox's Text property.  When the bound value changes, the TextBox must...

View Article

Browsing all 9 articles
Browse latest View live




Latest Images