Silverlight

1. Code Snippets
Binding
a) ...xaml.cs
this.DataContext = App.ViewModel;
App.ViewModel.LoadData();
b) ...xaml
ListBox ItemsSource="{Binding Products}"
TextBlock Text="{Binding Name}"
TextBlock Text="{Binding Name, Mode=TwoWay}"
TextBlock Text="{Binding Location.Name}"
TextBlock Text="{Binding Location.Name, Converter={StaticResource MyStringLimiterConverter}}"


Converter
a)namespace MyNameSpace{
class MyNumberPaddingConverter: IValueConverter{
public object Convert(...){}
public object ConvertBack(...){}
}}
b) xmlns:ncs="clr-namespace:MyNameSpace"
c) UserControl.Resources
/UserControl.Resources
d) TextBlock Text="{Binding Distance, Converter={StaticResource MyNumberPaddingConverter}}"


2. Errors and solutions

3. How Tos

4. Tutorials
5. Blogs
6. Websites

7. Books

8. Downloads

No comments:

Post a Comment