Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WinUI] XamlDefaultNavigationBar resource could not be resolved #1301

Open
morning4coffe-dev opened this issue Dec 7, 2024 · 0 comments
Open
Labels
control/navigationbar kind/bug Something isn't working

Comments

@morning4coffe-dev
Copy link
Member

morning4coffe-dev commented Dec 7, 2024

When following the guide on https://platform.uno/docs/articles/external/uno.toolkit.ui/doc/controls/NavigationBar.html#windows, it fails on WinUI with the following exception:
image
Here is a repro:

<Page.Resources>
    <Style TargetType="utu:NavigationBar"
           BasedOn="{StaticResource XamlDefaultNavigationBar}" />
</Page.Resources>
<Grid>
    <utu:NavigationBar Content="Test"
                       HorizontalAlignment="Stretch">
        <utu:NavigationBar.PrimaryCommands>
            <AppBarButton Icon="Home"
                          Label="Home" />
        </utu:NavigationBar.PrimaryCommands>
    </utu:NavigationBar>
</Grid>

Originally posted by @morning4coffe-dev in unoplatform/uno#19019 (comment)

@Xiaoy312 Xiaoy312 added kind/bug Something isn't working control/navigationbar labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
control/navigationbar kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants