Questions tagged [binding-expressions]

The Binding class is the high-level class for the declaration of a binding. The BindingExpression class is the underlying object that maintains the connection between the binding source and the binding target. A Binding contains all the information that can be shared across several BindingExpression objects. A BindingExpression is an instance expression that cannot be shared and that contains all the instance information about the Binding. Used in WPF.

22 questions
15
votes
1 answer

Bind the height of a grid row to it's contents in WPF

I have a grid with a few rows. In the top row, I have an ItemsControl that is bound dynamically to a collection and uses a DataTemplateSelector and ItemsPanelTemplate (with a single horizontally arranged WrapPanel). Here's a stripped-down version…
Rich
  • 36,270
  • 31
  • 115
  • 154
5
votes
1 answer

WPF MVVM Binding Checkbox.IsChecked to a named item in a Dictionary

I have a group of checkboxes that all represent different selections of the same type (for my example, they are all different file types). I feel like binding each one to an individual property in the ViewModel is overkill, and I'd prefer to bind…
Rich
  • 36,270
  • 31
  • 115
  • 154
5
votes
1 answer

Can I detect binding changes in Silverlight?

Is there a way to detect when a binding is changed? I'm not asking about the value, I mean the binding expression itself.
Jonathan Allen
  • 68,373
  • 70
  • 259
  • 447
4
votes
3 answers

binding expression error: property not found on object

I've WPF applcation in which I usedDataBinding for a comboBox. ProjectName from projectList should add inside my comboBox, but when I run the app, every time I get these errors; System.Windows.Data Error: 40 : BindingExpression path error:…
Dinesh
  • 507
  • 4
  • 14
  • 23
3
votes
2 answers

BindingExpression.UpdateSource swallows exception

The following code snippet is a simplified version of my issue. Basically I'm trying to catch the error that occurs in my setter when updatesource is called and propagate it up to my the catch block shown below. The problem is if an exception…
Seabass__
  • 871
  • 2
  • 7
  • 19
2
votes
2 answers

TextBox BindingExpression UpdateSourceTrigger=Explicit

Need a TextBox in a ListView DataTemplate to call set on either LostFocus or enter key. Used UpdateSourceTrigger = Explicit and events for LostFocus and KeyUp. Problem is that I cannot get a valid reference to the BindingExpression. XAML …
paparazzo
  • 44,497
  • 23
  • 105
  • 176
2
votes
2 answers

Binding to a dictionary in an itemtemplate

I have a List< Dictionary< string, string>>. In the ItemTemplate of my GridView I would like to bind to the values in the dictionary based on their keys.
<%#…
MvdD
  • 22,082
  • 8
  • 65
  • 93
1
vote
1 answer

C# WPF BindingExpression path error in ListView

I am writing a chatprogram, and I have a page where the user can select saved chathistories. They are all in a ListView with 2 columns: Date and Partner. To have 2 columns, I found a solution by writing my own entry class (Add Items to Columns in a…
1
vote
1 answer

Binding expressions are being displayed while page is loading in angular js

I am creating blog site using Codeigniter and angular js but the problem is that the binding expression {{firstName}} is displayed while page loading.Is there any solution to fix it in angular js.
shishir mishra
  • 437
  • 1
  • 4
  • 14
1
vote
1 answer

WPF BindingExpression path error

I have model BaseModel with fields as Id, Created, Deleted and Name etc. From this model I have derived models Category and Brand. Model Brand has field Image. Also I have class Node (Title as Name and Value as all object) public class Node :…
demo
  • 6,038
  • 19
  • 75
  • 149
1
vote
0 answers

Get notification when a Binding is detached (i.e. replaced) on a WPF DependencyProperty

I have a programmatically-created binding to a DependencyProperty of some standard WPF control. I would like my function to be called when this binding is detached from the property. It is possible to attach a value change notification to the…
1
vote
1 answer

Why is this basic binding failing with an exception?

Can anyone explain why the binding on TagObject below code throws the following binding exception? System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=Value;…
Mark A. Donohoe
  • 28,442
  • 25
  • 137
  • 286
1
vote
0 answers

BindingExpression path error itemtemplate

I am using following ItemTemplate in a TabControl to set the content of the tab item and the foreground color of the tab item. Both properties are available in the same ViewModel class:
tabina
  • 1,095
  • 1
  • 14
  • 37
0
votes
2 answers

GetBindingExpression returns null in the Loaded event

I'm trying to call the GetBindingExpression method in the Loaded event, but it always returns null. Is this expected behavior, or am I doing something wrong? If it is expected, after what event do binding expressions become available? I just…
Hamid
  • 1,099
  • 3
  • 22
  • 37
0
votes
0 answers

apache storm throws Exception "java.net.BindException: Address already in use"

Apache storm throws exception when I submit a new topology in storm cluster which has 100+ free slots. The storm cluster has 35 nodes. org.apache.storm.shade.org.jboss.netty.channel.ChannelException: Failed to bind to: 0.0.0.0/0.0.0.0:6734 …
Janze
  • 1
1
2