Categories
.NET .NET 8 .NET 9 .NET MAUI Android Blazor C# Desktop Developer General Hybrid iOS macOS Migration Mobile Tips Visual Studio VS Code Web Windows Xamarin Xamarin.Forms

Transitioning from Frame to Border in .NET MAUI

This is an article in the Developer Tips series, which offers concise hints to enhance productivity. You can access all the articles in this series here.

Border:

From .NET MAUI 9 onwards, the Frame control has been marked as obsolete, paving the way for more robust Border control.

An article has already been published detailing the comprehensive features of .NET MAUI 9.

The Border serves as a container control, akin to the Frame; however, it exhibits significantly greater flexibility, enabling the user to delineate any enclosed geometric shape.

Categories
.NET .NET 8 .NET 9 .NET MAUI Android Blazor C# Code Desktop Developer General Getting Started Hybrid iOS Learn macOS Mobile Tips Video Web Windows Xamarin Xamarin.Forms

Efficient Text Formatting in .NET MAUI with Label FormattedText

This is the fifth article in the recently started series titled Developer Tips, which offers concise hints to enhance productivity. All the articles in this series can be accessed from here.

A label in .NET MAUI is a simple yet powerful View that presents read-only text, like titles, captions, or descriptions.

The Text property holds the string to be displayed and is also bindable.

Categories
.NET .NET 8 .NET 9 .NET MAUI Android Blazor C# Code Desktop Developer General Getting Started Hybrid iOS Learn macOS Mobile Tips Web Windows Xamarin Xamarin.Forms

.NET MAUI – App Theming – Create Stylish Apps

This is the fourth article in the recently started series titled Developer Tips, which offers concise hints to enhance productivity. All the articles in this series can be accessed from here.

Basically, theming refers to managing a consistent look and feel across the app. An app can be themed in a variety of ways (MS Office and Visual Studio offer various themes). For mobile apps, the most significant themes are the Light and Dark modes, both of which are inherently supported by the OS. So, the app should have the capability to adapt to mode changes to the least.

Consulting the previous article on Styles is recommended as a foundation for Theming.

Excerpt from the preceding article:

Styles can be referenced through StaticResource or DynamicResource. The key difference is that the former is applied just once, while the lattter maintains a reference and adjusts to changes in themes.

Categories
.NET .NET 8 .NET 9 .NET MAUI Android Blazor C# Code Desktop Developer Getting Started Hybrid iOS Learn macOS Mobile Tips Web Windows Xamarin Xamarin.Forms

.NET MAUI – Styles

This is the third article in the recently started series titled Developer Tips, which offers concise hints to enhance productivity. All the articles in the series can be accessed from here.

A style is characterized by a collection of interrelated properties that aim to improve resource management within the application. It is defined as a list of Setters. A Setter has a property and a value.

Styles can be incorporated into the Resources property, of type ResourceDictionary, defined at the VisualElement level.