Replies: 2 comments
-
It really depends on what you are trying to do. If you want the control to be usable by native components/apps you would probably want the control to be written in c++, otherwise loading your winrt component would require that the app load the CLR which is a non-starter for a lot of native apps. You can see controls written in C++ in this repro, and controls written in c# in the Windows Community Toolkit. |
Beta Was this translation helpful? Give feedback.
-
@StephenLPeters I'm working on creating scheduler control with day, week views similar outlook. I'm currently analyzing whether to start, using in Class Library (WinUI in UWP) or C++/WinRT. I want my custom control to work with WinUI for UWP and also WinUI for Desktop.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Discussion: [Best approach for creating custom controls for WinUI]
What is the best approach for creating custom control? Is it good to develop controls in C# or C++. Any guidelines regarding the same will be useful?
Related Links
https://docs.microsoft.com/en-us/windows/uwp/cpp-and-winrt-apis/xaml-cust-ctrl#create-a-blank-app-bglabelcontrolapp
#2863
Beta Was this translation helpful? Give feedback.
All reactions