The problem is tying getter's long-term performance to user interface management. For example, if I have a property like:
public string ButtonText { get { Task.Delay(3000).Wait(); return _buttonText; } set { _buttonText = value; } }
and bind it in the XAML control for the UI, for example: Content="{Binding ButtonText}" user interface thread will be blocked. WPF has a Binding.IsAsync property that allows you to load related data in the background, but there is no such property in the Metro structure.
Does anyone have any ideas on how I can create asynchronous input bindings in a metro application?
source share