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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to use the Syncfusion XAML controls in C++ project?

Platform: WinRT |
Control: General |
Published Date: December 4, 2014 |
Last Revised Date: March 19, 2015
Tags: c++

The Syncfusion XAML controls cannot be used directly. You can use them by creating a UserControl as C# WindowsRuntimeComponent. The following steps guide on how to achieve this.

  1. Create a C++ application.

Figure 1: Creating C++ application

  1. In Solution Explorer, add a new C# WindowsRuntimeComponent project to the Solution and add reference to your desired Syncfusion controls for WinRT XAML for the project (WindowsRuntimeComponent1.csproj).
  2. Create a UserControl (MyUserControl.xaml).

Figure 2: Solution Explorer

  1. Add the Syncfusion components to the UserControl as illustrated in the following code example.

MyUserControl.xaml

  1. Add the WinRT reference component to the C++ Application and drop the UserControl, containing the Syncfusion components on the page.
  2. Now, the Syncfusion controls are successfully added to the C++ application. The above code example results in the following output.

Figure 3: Syncfusion control added in C++ application

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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