C#: Why You Should Prefer the is Keyword Over the == Operator
In the previous blog post you learned about different ways to do a null check. The traditional way is to use the ==
operator:
In the previous blog post you learned about different ways to do a null check. The traditional way is to use the ==
operator:
What is the classic way to check if for example a parameter value is null
? If you've developed with C# since a while, you might be familiar with this classic syntax:
This month on February 20th, Microsoft announced the final release of TypeScript 3.8. It has a bunch of new features. One interesting feature is the support for the ECMAScript private fields that are described in this proposal.
(more…)In the previous blog post you learned how you can use JavaScript Interop to call from your WinUI application into your Blazor application that you host in the WinUI app in a WebView2
. So, this was just the direction WinUI to Blazor.
But can you also call from the hosted Blazor app into your WinUI app?
(more…)WinUI 3.0 is Microsoft's upcoming UI framework to build modern, native Windows applications.
WinUI is developed open source on https://github.com/microsoft/microsoft-ui-xaml
Last week WinUI 3.0 alpha 2 came out, and Microsoft introduced a WebView2
control that is based on Microsoft Edge Chromium. That means you can run all the modern, awesome web stuff in that WebView2
control if you want.
This blog post shows how to use a simple JavaScript web component in a Blazor app. The web component used here is a friend-list component that takes a friend array. A friend has firstName and lastName and the friend-list component displays the friends in an unordered HTML list.
(more…)Did you know that you can call Windows 10 WinRT APIs from your WPF and WinForms apps? In this blog post I'll show you how to display toast messages from a WPF application by using the Windows 10 ToastNotificationManager.
(more…)In this blog post, you will learn how to use XAML Islands to host the UWP MapControl in a .NET Core 3 Preview 4 WPF application.
XAML Islands is a technology that allows you to host modern UWP controls in your WPF, Windows Forms, and Win32 applications. You can use for example UWP's InkCanvas or the MapControl, or you can use your custom UWP Controls. This allows you to modernize your apps with Windows 10 features.
(more…)If you have looked already at the Changes page of Team Explorer in Visual Studio 2019, you might have seen that it has a new Stashes section. It is shown in the screenshot below. But for what is that Stashes section?
(more…)