Back to Devexpress

XAML Embeddings

coderushforroslyn-120211-coding-assistance-selection-tools-selection-embedding-xaml-embeddings.md

latest3.0 KB
Original Source

XAML Embeddings

  • May 05, 2021
  • 2 minutes to read

This topic lists the Selection Embeddings for XAML.

|

Tag

|

StackPanel

|

WrapPanel

|

UniformGrid

|

region

| |

Grid

|

DockPanel

|

Border

|

Canvas

|

RelativePanel

|


Tag

Embeds the selected text (XAML code, comments) into a XAML tag and creates a linked field around the tag name placeholder. You can change the tag to a markup control (for example, to Grid):


Grid

Embeds the selected text (XAML code, comments) into the Grid tag.

xaml
<Grid>
    <!--Embedded text-->
</Grid>

StackPanel

Embeds the selected text (XAML code, comments) into the StackPanel tag.

xaml
<StackPanel>
    <!--Embedded text-->
</StackPanel>

DockPanel

Embeds the selected text (XAML code, comments) into the DockPanel tag.

xaml
<DockPanel>
    <!--Embedded text-->
</DockPanel>

WrapPanel

Embeds the selected text (XAML code, comments) into the WrapPanel tag.

xaml
<WrapPanel>
    <!--Embedded text-->
</WrapPanel>

Border

Embeds the selected text (XAML code, comments) into the Border tag.

xaml
<Border>
    <!--Embedded text-->
</Border>

UniformGrid

Embeds the selected text (XAML code, comments) into the UniformGrid tag.

xaml
<UniformGrid>
    <!--Embedded text-->
</UniformGrid>

Canvas

Embeds the selected text (XAML code, comments) into the Canvas tag.

xaml
<Canvas>
   <!--Embedded text-->
</Canvas>

region

Embeds the selection between the #region and #endregion directives and selects the region name placeholder.

xaml
<!--#region │RegionName-->
<!--Embedded text-->
<!--#endregion-->

You can also use the Ctrl + 3 shortcut for this embedding.


RelativePanel

Embeds the selection into the RelativePanel tag. This embedding is available in UWP projects.

xaml
<RelativePanel>
    <!--Embedded text-->
</RelativePanel>

See Also

C# Embeddings

Visual Basic Embeddings

Parentheses