By tag: Binding
0
kicks
[WPF] How to bind to data when the DataContext is not inherited
This post describes a solution for binding properties on elements that don't inherit the DataContext. This solution takes advantage of the Freezable class
0
kicks
PriorityBinding – Binding the async way
I keep discovering new features in wpf/silverlight data binding. The newest addition to my knowledge base is PriorityBinding. With PriorityBinding you can associate binding target property to a group of bindings. The binding with the highest priority is evaluated and become active binding.
0
kicks
notifypropertyweaver – {get;set;notify} in Silverlight
So, what does notifypropertyweaver do? If your class implements INotifyPropertyChanged then you just need to have auto-implemented properties and notifypropertyweaver automagically ensures that on change of value of a property, PropertyChanged event is fired.
0
kicks
WPF DataGrid - DataBinding to SQL Server Database
This post demonstrates how to bind the VIBlend WPF DataGrid to SQL Server DataBase
0
kicks
Binding to Anonymous types in Silverlight
Talks about the problems with binding against anonymous types in Silverlight, and offers some possible solutions to the issues.
0
kicks
Working with ASP.NET GridView binding using List , ClientIDMode in ASP
Syntax help on GridView binding and clientIDmode property usage in ASP.NET
0
kicks
This whimsical binding. TwoWay Binding to DataContext. Binding in WPF
I often use Binding to DataContext. It is one of the main advantage of WPF. In most case I set custom class inherit of DependencyObject (for support DependencyProperty) and I have some like next code:
<StackPanel>
<TextBlock Text="{Binding Path=Id}" />
<TextBlock Text=&...
0
kicks
Use dataBinding and DependencyProperty with a non-WPF or extern object
Sometimes you need to use the databinding with an object that you have not created and you can't use inheritance.
For example I wanted to use a Mogre Camera and build some WPF animation with it and I couldn't because :
WPF animation needed a DependencyProperty to manipulate,
I couldn't derive t...
0
kicks
Do you know how can you obtain access to nested types through XAML?
XAML is a declarative XML-based language created by Microsoft which is used to initialize structured values and objects. I have already written how we can obtain access to properties of instance that located in other properties here (I have described binding's potential). But what can we do if we ne...
0
kicks
Bind to many method simultaneously. Binding in WPF part 2.
Target:
We have some views that have as source one shared collection. They are located in any ItemsControls (ListBoxs in my case). Those views pass form different parametrized methods (we use the ObjectDataProvider and bind to a method possibility for this purposes). How can we implement one contro...
0
kicks
Using the ASP.NET MVC ModelBinder attribute
ASP.NET MVC action methods can be developed using regular method parameters. In earlier versions of the ASP.NET MVC framework, these parameters were all simple types like integers, strings, booleans, … When required, a method parameter can be a complex type like a Contact with Name, Email and Messag...
0
kicks
Inherit properties
When I investigated WPF feature, I was interesting how use inherit property (If consider that Binding is low performance feature). I used these properties as RegisterAttached only. I have write some test samples but these didn’t work to my of the confuse. Little search in MSDN founded the root of pr...
0
kicks
wwDataBinder with dictionaries and lists
This a a small article for those who used wwdatabinder and want to use automatic binding with dictionaries or lists. You can download code.
0
kicks
Using Bind with nested properties
Description of method that allows two way databinding to a nested property.