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

Sign in to queue

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

Download

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.

Add Your 2 Cents