protected override void OnInit() { BindingServiceProvider.SetDefaultValues(); BindingServiceProvider.MemberProvider.Register(AttachedBindingMember.CreateMember <object, object>(AttachedMemberConstants.AsErrorsSource, (info, o) => BindingConstants.ErrorsSourceValue, null)); BindingServiceProvider.ValueConverter = BindingConverterExtensions.Convert; base.OnInit(); if (ValueConverterEx == null) { //to invoke static constructor. #if NETFX_CORE new UwpDataBindingModule(); #else new WpfDataBindingModule(); #endif ValueConverterEx = BindingServiceProvider.ValueConverter; } else { BindingServiceProvider.ValueConverter = ValueConverterEx; } ThreadManager.ImmediateInvokeAsync = true; ThreadManager.ImmediateInvokeOnUiThreadAsync = true; ThreadManager.ImmediateInvokeOnUiThread = true; }
protected override void OnInit() { BindingServiceProvider.SetDefaultValues(); base.OnInit(); ThreadManager.ImmediateInvokeAsync = true; ThreadManager.ImmediateInvokeOnUiThreadAsync = true; ThreadManager.ImmediateInvokeOnUiThread = true; }
protected override void OnInit() { BindingServiceProvider.SetDefaultValues(); base.OnInit(); if (ValueConverterEx == null) { //to invoke static constructor. new PlatformDataBindingModule(); ValueConverterEx = BindingServiceProvider.ValueConverter; } else { BindingServiceProvider.ValueConverter = ValueConverterEx; } ThreadManager.ImmediateInvokeAsync = true; ThreadManager.ImmediateInvokeOnUiThreadAsync = true; ThreadManager.ImmediateInvokeOnUiThread = true; }
protected override void OnInit() { BindingServiceProvider.SetDefaultValues(); BindingServiceProvider.ValueConverter = BindingConverterExtensions.Convert; base.OnInit(); if (ValueConverterEx == null) { //to invoke static constructor. #if NETFX_CORE new UwpDataBindingModule(); #else new WpfDataBindingModule(); #endif ValueConverterEx = BindingServiceProvider.ValueConverter; } else { BindingServiceProvider.ValueConverter = ValueConverterEx; } ThreadManager.ImmediateInvokeAsync = true; ThreadManager.ImmediateInvokeOnUiThreadAsync = true; ThreadManager.ImmediateInvokeOnUiThread = true; }