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;
 }
示例#3
0
 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;
 }
示例#4
0
        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;
        }