JetBrains Rider 2022.2 Help

Predefined File Templates for XAML

This topic lists all predefined file templates for XAML in JetBrains Rider 2022.2. For more information about file templates, see Create files from templates.

Template

Details

Resource Dictionary

Resource Dictionary

Scope WPF projects

Body

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/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 current file name without extension with all non-alphanumeric replaced with underscores

  • NAMESPACE - Gets default namespace for the current file

  • HEADER - Inserts the file header specified in the JetBrains Rider 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 current file name without extension with all non-alphanumeric replaced with underscores

  • NAMESPACE - Gets default namespace for the current file

  • HEADER - Inserts the file header specified in the JetBrains Rider settings.

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

Last modified: 03 August 2022