Microsoft.NET Trainingen

Reflection IT heeft een passie voor kennis delen en heeft zich ontwikkeld tot hét opleidingscentrum voor Microsoft Software Development trainingen.

Bekijk trainingen

Blog Artikelen

System controls need BasedOn Styling in WinUI

26-Mar-2023

You can customize the appearance of your apps in many ways by using the XAML framework like WPF, UWP, WinUI and MAUI. Styles let you set control properties and reuse those settings for a consistent appearance across multiple controls. Styling is to XAML what CSS is to HTML. Using styles, you can group a set of properties and assign them to specific controls or all controls of a specific type, and just like in CSS, a style can inherit (BasedOn) from another style.

Starting with WinUI 2.6 there are new styles for most of the controls. It is encourage you to use the new styles, as they better match the design direction of Windows. You can read more about styling here

Fons Sonnemans 2023 Development Tools List

24-Jan-2023

Many years ago Scott Hanselman wrote the famous Scott Hanselman Ultimate Tools List post. In 2019 I wrote my own list, now it is time for an update because there are new tools I use. I'm a Windows App developer more than a Web developer so I use different tools. I write mainly XAML (UWP, WPF, WinUI and UnoPlatform) apps and only occasionally an ASP.NET MVC, WebAPI or Blazor WASM projects. My code is written in C#. I create them because it is fun to do and it helps me to train my own skills. I use this experience for my trainings (C#XAMLASP.NET and SQL). I write my own training material so I need the experience. I have developed about 50 Windows (and Windows Phone) apps, some are very popular. The apps have more than 5 million downloads and daily thousands of players. Most of my apps are free but there are Ads in it to generate some revenue.

Implement IXmlSerializable in a readonly struct

14-Jun-2022

Xml serialization is really common. For a class this is done automatically, but not for your own struct. The primitive structs from Microsoft (bool, byte, short, int, long, double, decimal, etc.) don’t have this problem. The serialization and deserialization of those types are done by the XmlSerializer class. For your own struct you have to implement the IXmlSerializable interface. This isn’t really hard, but it is harder when the struct is a readonly struct. A feature which Microsoft added to C# 7.2 a few years ago. The problem is caused by the ReadXml() method of this interface. This method returns a void which means that you have to modify the fields inside the struct, which is not allowed if the struct is readonly. Luckily there is a solution using the Unsafe.AsRef() method. In this blog I will explain how to use it.

Reflection IT

Bij Reflection IT hebben we een passie voor kennis delen en zijn we hét opleidingscentrum voor Microsoft Software Development trainingen.

We ontwikkelen ook apps, omdat het leuk is en leerzaam. In deze apps kunnen we nieuwe Microsoft producten en technologieën toepassen, deze ervaring gebruiken we dan weer in onze trainingen.

Maak kennis met oprichter Fons Sonnemans en ons team van ervaren docenten, die ook allemaal developers zijn.

Fons Sonnemans

Proud of our customers

  • Actemium
  • ASML
  • Besi
  • Maastricht University
  • Microsoft
  • Promexx
  • Sioux
  • Topic
  • Topicus

Get in touch

Met dit formulier kunt u informatie over een In-Company of Small-Group training aanvragen. U kunt in het bericht aangeven welke training u wilt, voor hoeveel personen, wanneer deze verzorgd moet worden en op welke locatie. Wij nemen vervolgens contact met u op.

U kunt ons ook bereiken via telefoonnummer +31 (0)493-688810 of per mail training@reflectionit.nl.