This whimsical binding. TwoWay Binding to DataContext. Binding in WPF (rredcat.blogspot.com)

submitted by RredCatRredCat(299) 2 years, 7 months ago

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="{Binding Path=Name}" /> <TextBlock Text="{Binding Path=Surname}"/> ... </StackPanel> But sometime I set a simple type for example string. For this case I can implement next Binding: <TextBlock Text="{Binding}" />

add a comment |category: |Views: 46

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story