Data Binding: Boost Your Apps' Performance Through New Enhancements to XAML Data Binding

Download this episode

Download Video

Download captions

Download Captions

Description

So you're an MVVM developer you say?  You like your Binding statements?  Learn the improvements in Windows 10 to the story of data binding in XAML in this session.  This will be a deep-dive in understanding the new performance improvements to compiled binding statements in the platform.

Tag:

XAML/UX

Day:

1

Session Type:

Breakout

Code:

3-635

Room:

Room 2001

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • User profile image
      brunolemos

      Very good, these perfomance improvements were much needed.

    • User profile image
      bkstill

      It would be great if x:bind were available for WPF. If you agree, vote it up on UserVoice at http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/7810488-implement-x-bind-for-wpf

    • User profile image
      Christian80

      I took for granted that x:bind were available for WPF.
      MS have to add this feature to WPF also!
      Binding performance is not good when you have a tree with many elements!

      Vote!

    • User profile image
      George Birbilis

      It's a bad decision I think to change the default mode from OneWay to OneTime.

    • User profile image
      George Birbilis

      so isn't there any Intellisense to help against misspellings at binding?

    • User profile image
      George Birbilis

      at 19:04

      a) two-way binding could be implemented for non-Dependency properties too, using code like in: http://clipflair.codeplex.com/SourceControl/latest#Client/Helpers/Utils/Source/Bindings/BindingUtils.cs

      b) regarding TextBox and waiting for LostFocus event, will it support "UpdateSourceTrigger=PropertyChanged" setting at the binding? This is very important, since there are cases where you want to instantly update as the user types, not just at lost focus event

    • User profile image
      George Birbilis

      #fail at 20:40 - why create a partial class yourself to do InitializeComponent instead of the XAML compiler generating that for you?

    • User profile image
      George Birbilis

      https://msdn.microsoft.com/en-us/library/hh758288.aspx

      [ If you need a converter you can use the verbose syntax for a template binding such as: {Binding RelativeSource={RelativeSource TemplatedParent}, Converter="..." ...} ]

      at 47:36 on the video he says though that "the documentation is lying", using TemplatedParent syntax is not the same as using TemplateBinding, which is optimized

    • User profile image
      Jan​Kratochvil

      Is there a way we can use x:Bind to bind on ViewModel commands from inside a DataTemplate? I can't seem to get the syntax correctly :(

    • User profile image
      BaoNT

      Is there a way to use x:Bind with element? For example, my first toggleButton1 IsChecked property bind to my second toggleButton2 IsCheck? Classic binding supports ElementName.

    • User profile image
      igraliNZ

      Is the performance demo from the beginning of the session available anywhere?

       

      Thanks!

    • User profile image
      Thomas Mutzl

      @BaoN: Elementbinding is easy! As soon as an element gets a x:Name it becomes a property of the class and other controls can x:Bind to this property.

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.