SfNumericTextBox in UWP release mode not visible!

hi,

I'm using SfNumericTextBox and in debug mode it works regularly while in release mode the control is not visible!

I added the assembly in uwp startup.

tank you


3 Replies 1 reply marked as answer

RS Ramya Soundar Rajan Syncfusion Team June 7, 2021 09:39 AM UTC

Hi Egidio, 
 
Greetings from Syncfusion. 
 
We have checked the reported problem in our side and it’s working fine in our side. We suspect that you missed to add the SfNumericTextBox assemblies in the App.xaml.cs. Please refer the below code snipper. 
 
[XAML] 
 
        <StackLayout VerticalOptions="Center"> 
            <numerictextbox:SfNumericTextBox x:Name="numericTextBox" Value="123.45" /> 
            <Entry Text="Entry Value"/> 
        </StackLayout> 
 
[C#] 
App.xaml.cs 
 
        protected override void OnLaunched(LaunchActivatedEventArgs e) 
        {  
            … 
 
            if (rootFrame == null) 
            { 
                    … 
                List<Assembly> assembliesToInclude = new List<Assembly>(); 
 
                //Now, add all the assemblies your app uses 
                assembliesToInclude.Add(typeof(SfNumericTextBoxRenderer).GetTypeInfo().Assembly); 
                Xamarin.Forms.Forms.Init(e, assembliesToInclude); 
             
                                       … 
                          } 
                  } 
 
Output: 
 
 
 
Please refer the below help document link for UWP release mode configuration for SfNumericTextBox.  
 
 
Regards, 
Ramya S 


Marked as answer

EG egidio June 8, 2021 08:39 AM UTC

Thanks for reply,

my mistake is that i entered 

     assembliesToInclude.Add(typeof(SfNumericTextBox).GetTypeInfo().Assembly) 

and not 
     assembliesToInclude.Add(typeof(SfNumericTextBoxRenderer).GetTypeInfo().Assembly)

ok!
                

                


SS Sridevi Sivakumar Syncfusion Team June 8, 2021 11:59 AM UTC

Hi egidio,

Thanks for your update,

Let us know if you need any further assistance.

Regards,
Sridevi S. 


Loader.
Up arrow icon