Did anything change with regards to initialization of controls on UWP from v18 to v19? I have an app that works fine with v18, but when I update to v19, in RELEASE mode it crashes at startup with the message "Value does not fall within the expected range.". I reviewed the on-line documentation for the controls that I am using and have the appropriate initialization code required for UWP release mode.
I use these controls Buttons, SfBusyIndicator, SfChart, SfComboBox, SfListView, SfNumericTextBox, SfNumericUpDown, SfPopupLayout, and SfTreeView
The code looks like this:
this.InitializeComponent();
Syncfusion.XForms.UWP.TreeView.SfTreeViewRenderer.Init();
Syncfusion.ListView.XForms.UWP.SfListViewRenderer.Init();
Syncfusion.XForms.UWP.PopupLayout.SfPopupLayoutRenderer.Init();
LoadApplication(new Flipcards.App(new UwpInitializer()));
and this:
List
assemblies_to_include = new List(); assemblies_to_include.Add(typeof(Syncfusion.XForms.UWP.Buttons.SfButtonRenderer).GetTypeInfo().Assembly);
assemblies_to_include.Add(typeof(Syncfusion.XForms.UWP.Border.SfBorderRenderer).GetTypeInfo().Assembly);
assemblies_to_include.Add(typeof(Syncfusion.SfBusyIndicator.XForms.UWP.SfBusyIndicatorRenderer).GetTypeInfo().Assembly);
assemblies_to_include.Add(typeof(Syncfusion.SfChart.XForms.UWP.SfChartRenderer).GetTypeInfo().Assembly);
assemblies_to_include.Add(typeof(Syncfusion.XForms.UWP.ComboBox.SfComboBoxRenderer).GetTypeInfo().Assembly);
assemblies_to_include.Add(typeof(Syncfusion.ListView.XForms.UWP.SfListViewRenderer).GetTypeInfo().Assembly);
assemblies_to_include.Add(typeof(Syncfusion.SfNumericTextBox.XForms.UWP.SfNumericTextBoxRenderer).GetTypeInfo().Assembly);
assemblies_to_include.Add(typeof(Syncfusion.SfNumericUpDown.XForms.UWP.SfNumericUpDownRenderer).GetTypeInfo().Assembly);
assemblies_to_include.Add(typeof(Syncfusion.XForms.UWP.PopupLayout.SfPopupLayoutRenderer).GetTypeInfo().Assembly);
assemblies_to_include.Add(typeof(Syncfusion.XForms.UWP.TreeView.SfTreeViewRenderer).GetTypeInfo().Assembly);
assemblies_to_include.Add(typeof(Syncfusion.XForms.UWP.Buttons.SfCheckBoxRenderer).GetTypeInfo().Assembly);
assemblies_to_include.Add(typeof(Syncfusion.XForms.UWP.Buttons.SfRadioButtonRenderer).GetTypeInfo().Assembly);
assemblies_to_include.Add(typeof(Syncfusion.XForms.UWP.TextInputLayout.SfTextInputLayoutRenderer).GetTypeInfo().Assembly);
Xamarin.Forms.Forms.Init(e, assemblies_to_include);
Any suggestions?
Regards,
Arthur