JetBrains Rider 2024.3 Help

Predefined File Templates for XAML (C#)

This topic lists all predefined file templates for XAML (C#) in JetBrains Rider 2024.3. For more information about file templates, refer to Create files from templates.

Template

Details

Resource Dictionary

Resource Dictionary

Scope MAUI (C#) projects

Body

<ResourceDictionary xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"> $END$ </ResourceDictionary>

Parameters

  • END - The caret position after the template is applied.

Content Page

Content Page

Scope MAUI (C#) projects

Body

<?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="$NAMESPACE$.$CLASS$"> <ContentPage.Content> $END$ </ContentPage.Content> </ContentPage>

Parameters

  • CLASS - Evaluates to the current file name without extension and with all non-alphanumeric characters replaced with underscores

  • NAMESPACE - Evaluates to the default namespace for the current file

  • HEADER - Inserts the file header specified in settings

  • END - The caret position after the template is applied.

Content View

Content View

Scope MAUI (C#) projects

Body

<?xml version="1.0" encoding="utf-8" ?> <ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="$NAMESPACE$.$CLASS$"> $END$ </ContentView>

Parameters

  • CLASS - Evaluates to the current file name without extension and with all non-alphanumeric characters replaced with underscores

  • NAMESPACE - Evaluates to the default namespace for the current file

  • HEADER - Inserts the file header specified in settings

  • END - The caret position after the template is applied.

Last modified: 06 November 2024