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. Image for the cookie policy date
close icon

Control not rendering in Design View

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.

1 Reply

BK Bharathiraja K Syncfusion Team 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.   


Loader.
Live Chat Icon For mobile
Up arrow icon