JetBrains Rider 2024.2 Help

Predefined File Templates for XAML

This topic lists all predefined file templates for XAML in JetBrains Rider 2024.2. For more information about file templates, refer to 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 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: 18 August 2024