Skip to content

Commit

Permalink
Update sidemenu.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kikipoulet authored Sep 2, 2024
1 parent 60389d9 commit aad8ce4
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions docs/docs/documentation/controls/navigation/sidemenu.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,21 @@
## Example

```xml
<suki:SukiSideMenu
IsSearchEnabled="True" // Enabled Search function
>
<suki:SukiSideMenu IsSearchEnabled="True" >
<suki:SukiSideMenu.Items>
<suki:SukiSideMenuItem Header="Statistics">
<suki:SukiSideMenuItem Header="Page Title" Classes="Compact" >
<suki:SukiSideMenuItem.Icon>
<!-- Icon -->
</suki:SukiSideMenuItem.Icon>
<suki:SukiSideMenuItem.PageContent>
<!-- Page Content -->
</suki:SukiSideMenuItem.PageContent>
</suki:SukiSideMenuItem>

<!-- Other Pages ... -->

</suki:SukiSideMenu.Items>

<suki:SukiSideMenu.ItemTemplate>
<DataTemplate>
<suki:SukiSideMenuItem
Classes="Compact" // Enabled Compact SideMenuItem style
Header="{Binding DisplayName}">
<suki:SukiSideMenuItem.Icon>
<avalonia:MaterialIcon Kind="{Binding Icon}" />
</suki:SukiSideMenuItem.Icon>
</suki:SukiSideMenuItem>
</DataTemplate>
</suki:SukiSideMenu.ItemTemplate>

<suki:SukiSideMenu.HeaderContent>
<!-- Header Content -->
Expand All @@ -49,4 +39,4 @@

[Demo: SukiUI.Demo/SukiUIDemoView.axaml](https://github.com/kikipoulet/SukiUI/blob/main/SukiUI.Demo/SukiUIDemoView.axaml)

[API: Controls/SukiSideMenu.axaml.cs](https://github.com/kikipoulet/SukiUI/blob/main/SukiUI/Controls/SukiSideMenu.axaml.cs)
[API: Controls/SukiSideMenu.axaml.cs](https://github.com/kikipoulet/SukiUI/blob/main/SukiUI/Controls/SukiSideMenu.axaml.cs)

0 comments on commit aad8ce4

Please sign in to comment.