Top "Binding" questions

This tag means different things in different contexts; consider using less ambiguous tags instead or in addition.

WPF Bind to itself

I've got a WPF Window, and somewhere there is a ListView where I bind a List<string> to. …

wpf data-binding binding self
WPF Binding - Default value for empty string

Is there a standard way to set a default or fallback value for a WPF binding if the bound string …

c# wpf xaml binding
ComboBox.SelectedValue not updating from binding source

Here's my binding source object: Public Class MyListObject Private _mylist As New ObservableCollection(Of String) Private _selectedName As String Public …

wpf data-binding binding combobox
Button template with image and text in wpf

I want to create buttons with images and text inside. For example, i would use different images and text for …

wpf templates binding custom-controls
How to bind local property on control in WPF

I have two controls on WPF <Button HorizontalAlignment="Center" Name="btnChange" Click="btnChange_Click" Content="Click Me" /> <…

wpf binding properties local
KnockoutJS binding when source is null/undefined

Is there a shorter/cleaner way to do the null/undefined testing? <select data-bind="options: SelectedBusinessLine() ? SelectedBusinessLine().Clusters() : [], optionsText: …

binding knockout.js
WPF Error 40 BindingExpression path error: property not found on 'object'

I'm banging my head on my desk with this binding error.. I have checked several of the postings for the …

c# wpf xaml binding
In bash, how do I bind a function key to a command?

Example: I want to bind the F12 key to the command echo "foobar" such that every time I hit F12 …

bash shell binding
WPF: How to bind a command to the ListBoxItem using MVVM?

I have just started learning MVVM. I've made the application from scratch by following this MVVM tutorial (I highly recommend …

c# wpf mvvm binding commandbinding
Why RelayCommand

I've been programming a lot in WPF lately but my View and ViewModel are not separate at this point. Well, …

c# wpf mvvm binding relaycommand