We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Control not rendering in Design View

Thread ID:

Created:

Updated:

Platform:

Replies:

145034 Jun 3,2019 04:29 PM UTC Jun 4,2019 10:18 AM UTC Xamarin.Forms 1
loading
Tags: SfButton
Ray Festino
Asked On June 3, 2019 04:29 PM UTC

In Visual Studio 2019, SfCheckBox and SfButton are not rendering in design view. There may be other controls as well. Microsoft built-in controls render OK. Version 17.1.0.38 Community edition.

Bharathiraja K [Syncfusion]
Replied On June 4, 2019 10:18 AM UTC

Hi Ray,   
   
Greetings from Syncfusion. To make the custom control visible in VS 2019 XAML Previewer, we need to set [DesignTimeVisible(true)] attribute for custom control in source (ref). But these attributes available in .NET Standard 2.0 and currently Syncfusion control is support .NET Standard 1.0. So, we will update our source target to .NET Standard 2.0 in our upcoming Volume 2 release.  
   
Generally, we will do the framework related updates only in our main release. So, this previewer support in VS 2019 will be included in our Volume 2, 2019 which is scheduled to be rolled out by June 2019.    
   
Meanwhile, to make control visible in VS 2019 previewer, you can set [DesignTimeVisible(true)] attribute in sample level by extending Syncfusion control as shown in below code.    
   
[C#]   
    [DesignTimeVisible(true)]   
    public class SfChartExt : SfChart   
    {   
   
    }   
    
[XAML]   
<local:SfChartExt>   
            <local:SfChartExt.PrimaryAxis>   
                <chart:CategoryAxis />   
            </local:SfChartExt.PrimaryAxis>   
            <local:SfChartExt.SecondaryAxis>   
                <chart:NumericalAxis />   
            </local:SfChartExt.SecondaryAxis>   
   
  </local:SfChartExt>   
  
Please let us know, if you have any other queries on this.  
  
Regards,   
Bharathi.   


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon