Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3819

XAML InfoBadge

$
0
0

Hey all,

Im trying to get an infobadge on my NavigationView using the below xaml,

<NavigationView
    IsTabStop="False"
    IsBackButtonVisible="Collapsed"
    IsPaneToggleButtonVisible="False"
    IsSettingsVisible="True"
    PaneDisplayMode="Left">

    <NavigationView.MenuItems>
        <NavigationViewItem Icon="Home" Content="Home" />
        <NavigationViewItemHeader Content="Browse Categories" />
        <NavigationViewItem Icon="Favorite" Content="Favourite" />
        <NavigationViewItem Icon="Cut" Content="Aid">

    <NavigationViewItem.InfoBadge>
        <InfoBadge x:Name="infoBadge1" Value="196"/>
    </NavigationViewItem.InfoBadge>
</NavigationViewItem>

<NavigationViewItemHeader Content="Search" />

   <NavigationViewItem Icon="Find" Content="Search" />
   <NavigationViewItem Icon="Refresh" Content="Clear" />
    </NavigationView.MenuItems>

    <Frame x:Name="contentFrame9" />

</NavigationView>

This code works perfectly outside xojo alltogether but when running in an xaml container i get the following error.

Screenshot 2024-07-06 113434

am i missing something or is this not possible to achieve?

Many thanks for any guidence

Robin

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 3819

Trending Articles