Questions tagged [binding]

This tag means different things in different contexts; consider using less ambiguous tags instead or in addition. Common meanings include: Dependency-Injection and Data Binding to Objects and Bindings between components of an Application.

This tag means different things in different contexts; consider using less ambiguous tags instead or in addition. Please See the following tags for more specific labeling:

  • is a Design pattern to reduce coupling between components, by dynamically injecting into a software component dependencies that it needs to function. For injection using a framework bind or register an implementation (Instantiated Object or means of object creation) to a Injection Type (i.e. All requests for Interface Car must return BMW or All requests to get Named String X.Y.Z must lookup X.Y.Z in a config file).

  • Data binding is a general technique that binds two data/information sources together and maintains them in sync. This is usually done with two data/information sources with different types as in XML data binding. However, in UI data binding, data and information objects of the same type are bound together (e.g. Java objects to Java UI elements).

  • is a feature that simplifies controller actions by using the request data to create strongly typed objects.

17170 questions
919
votes
14 answers

How to enable assembly bind failure logging (Fusion) in .NET

How do I enable assembly bind failure logging (Fusion) in .NET?
user32736
  • 10,221
  • 3
  • 18
  • 6
365
votes
5 answers

How to get evaluated attributes inside a custom directive

I'm trying to get an evaluated attribute from my custom directive, but I can't find the right way of doing it. I've created this jsFiddle to elaborate.
Shlomi Schwartz
  • 8,693
  • 29
  • 109
  • 186
257
votes
4 answers

How to bind multiple values to a single WPF TextBlock?

I'm currently using the TextBlock below to bind the value of a property named Name: Now, I want to bind another property named ID to the same TextBlock. Is it possible to bind two or more values to the same…
Spen D
  • 4,225
  • 9
  • 39
  • 47
196
votes
19 answers

"Items collection must be empty before using ItemsSource."

I'm trying to get images to display in a WPF ListView styled like a WrapPanel as described in this old ATC Avalon Team article: How to Create a Custom View. When I try to populate the ListView with a LINQ-to-Entities queried collection of ADO.NET…
Zack Peterson
  • 56,055
  • 78
  • 209
  • 280
194
votes
6 answers

Angularjs Template Default Value if Binding Null / Undefined (With Filter)

I have a template binding that displays a model attribute called 'date' which is a date, using Angular's date filter. {{gallery.date | date:'mediumDate'}} So far so good. However at the moment, if there is no value…
Undistraction
  • 42,754
  • 56
  • 195
  • 331
193
votes
15 answers

Bootstrap control with multiple "data-toggle"

Is there a way to assign more than one event to a bootstrap control via "data-toggle"? For example, let's say I want a button that has a "tooltip" and a "button" toggle assigned to it. Tried data-toggle="tooltip button", but only the tooltip…
I Stand With Russia
  • 6,254
  • 8
  • 39
  • 67
186
votes
12 answers

DataTrigger where value is NOT null?

I know that I can make a setter that checks to see if a value is NULL and do something. Example: