WinUi 3 in vb.net forms

Chaniru Rajapakse 61 Reputation points
2021-06-14T13:27:17.49+00:00

Is there any way to make windows apps in winui3 using visual basic .net forms app...
And is it works with win7 or other
Thanks.

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,579 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,713 questions
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 84,286 Reputation points
    2021-08-28T19:04:24.093+00:00

    I just tested and I could create a simple window and add a Button for the test
    I created a .NET 5 VB project then I added a package and copied the Main function from the DemoBuildCs MS sample (for the DispatcherQueue) + minimum code from App and MainWindow classes
    But I could not use Microsoft.UI.Xaml.Application.LoadComponent ("Xaml parsing failed" error, I probably missed something...)

    =>

    127267-vb-winui-net5.jpg

    1 person found this answer helpful.

3 additional answers

Sort by: Most helpful
  1. Thomas Morris 6 Reputation points
    2021-11-24T13:47:57.37+00:00

    Please would you upload and share your example ChaniruRajapakse-0323

    1 person found this answer helpful.
    0 comments No comments

  2. AddWebSolution 166 Reputation points
    2021-06-15T10:27:50.823+00:00

    WinUI 3 will work with every kind of Windows app! WinUI 3 can be used directly as the UI layer for Win32 and UWP apps, or it can be used to modernize a Win32 app's UI gradually, using XAML Islands to mix and match with the following technologies:
    -WPF
    -WinForms
    -MFC
    -ComCtl32


  3. Piotr 6 Reputation points
    2022-04-24T15:11:32.64+00:00

    If your sample still works (it was almost year ago), please upload it - and gives here link to this sample.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.