Categories
Uncategorized

Only a few days after i wrote that Microsoft was not doing anything for WinUI 3 they released a new version

I have tried to use it now. There are lots of work for them to do before it is good. Intellisense is now working. That makes it a lot easier to get the XAML right. Many controls are not ready. Datagrid is not ready to be used. I had to comment out most triggers. I am converting a WPF application to WinUI 3. XAML designer is not working. To open a FileOpenPicker you have to write some strange things.

var Dlg = new Windows.Storage.Pickers.FileOpenPicker();
StorageFile SF;

IntPtr windowHandle = (App.Current as App).WindowHandle;

var initializeWithWindow = Dlg.As<IInitializeWithWindow>();
initializeWithWindow.Initialize(windowHandle);
Dlg.FileTypeFilter.Add(".txt");
SF = await Dlg.PickSingleFileAsync();

Categories
Uncategorized

Microsoft is not working hard on WinUI 3

I updated to Visual studio 2019 16.9 preview 1 today. My WinUI 3 program i started on a few months ago still cant be compiled. The project cant be loaded. Visual Studio 16.7 preview was the last version where WinUI 3 was working. It is hard to understand how Microsoft wants us to do desktop applications. WPF is still best.