# Selecting Items

## Content



RadialMenuItems can have any number of child items. You can control which item is shown as the selected item by setting the [SelectedIndex](/componentone/api/wpf/online-menu5/dotnet-api/C1.WPF.Menu/C1.WPF.Menu.C1RadialMenuItem.SelectedIndex.html) property, but by default, the **RadialMenuItem** will show the first child item in its collection as the selected item. You can also set the [AutoSelect](/componentone/api/wpf/online-menu5/dotnet-api/C1.WPF.Menu/C1.WPF.Menu.C1RadialMenuItem.AutoSelect.html) property to true to have the same effect.

The RadialMenu control supports selection memory, as well, through the [ShowSelectedItem](/componentone/api/wpf/online-menu5/dotnet-api/C1.WPF.Menu/C1.WPF.Menu.C1RadialMenuItem.ShowSelectedItem.html) property. This property allows you to show the last selected item rather than the preset one. You must set the **AutoSelect** property to True when you are using the **ShowSelectedItem** property.

So, if you have a user who right-aligns text frequently, it would be best to show the item that was selected last rather than the default align-left option or the align-center option. You can set the ShowSelectedItem property to True so that it will always show the item that a user selected last, rather than the preset item or the first selected item.

Here's the markup to create a simple **RadialMenu** with two submenus:

```xml
<c1:C1RadialMenu SectorCount="8" >
  <c1:C1RadialMenuItem Header="Insert" SectorCount="8" AutoSelect="True" ShowSelectedItem="True" >
    <c1:C1RadialMenuItem Header="Insert Left" />
    <c1:C1RadialMenuItem Header="Insert Above" DisplayIndex="2" />
    <c1:C1RadialMenuItem Header="Insert Right" DisplayIndex="4" />
    <c1:C1RadialMenuItem Header="Insert Below" DisplayIndex="6" />
  </c1:C1RadialMenuItem>
  <c1:C1RadialMenuItem Header="Align" AutoSelect="True" SectorCount="8" DisplayIndex="4" ShowSelectedItem="True">
    <c1:C1RadialMenuItem Header="Align Right" />
    <c1:C1RadialMenuItem Header="Align Left" />
    <c1:C1RadialMenuItem Header="Align Center" />
  </c1:C1RadialMenuItem>
</c1:C1RadialMenu>
```

When you run the application, it will resemble the following image:

![](https://cdn.mescius.io/document-site-files/images/d5a2d4a0-cda2-4410-85e8-b185436bedb1/images/radialmenu/selection1.png)

When you tap the **Expand Area** above the **Align Right** option, you will see the following menu:

![](https://cdn.mescius.io/document-site-files/images/d5a2d4a0-cda2-4410-85e8-b185436bedb1/images/radialmenu/selection2.png)

Tap **Align Center**, and then the **Back** arrow. Your main menu will now resemble the following image:

![](https://cdn.mescius.io/document-site-files/images/d5a2d4a0-cda2-4410-85e8-b185436bedb1/images/radialmenu/selection3.png)

**Align Right** has been replaced by the last-selected **Align Center**.