-
Notifications
You must be signed in to change notification settings - Fork 26
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
error CS1503: Argument 1: cannot convert from 'Microsoft.UI.Xaml.Controls.NavigationView' to 'Uno.Toolkit.UI.DrawerControl' #1055
Comments
Hi @IneedHelp, thanks for the report! Interesting, I will take a quick look with a sample app to see what the issue is. And in your code you are setting Style the of the I will test on my side and see if maybe we need to make some updates on this page, thanks! |
Hello @kazo0 , <muxc:NavigationView PaneTitle="Gesture NavView"
OpenPaneLength="320"
utu:DrawerControlBehavior.FitToDrawerContent="False"
Style="{StaticResource DrawerNavigationViewStyle}">
<muxc:NavigationView.MenuItems>
<muxc:NavigationViewItem Content="Home"/>
<muxc:NavigationViewItem Content="Page 1"/>
<muxc:NavigationViewItem Content="Page 2"/>
<muxc:NavigationViewItem Content="Page 3"/>
</muxc:NavigationView.MenuItems>
<muxc:NavigationView.Content>
<Frame x:Name="contentFrame"/>
</muxc:NavigationView.Content>
</muxc:NavigationView> the style and yes, I do have <!-- Load Uno.Toolkit.UI resources -->
<ToolkitResources xmlns="using:Uno.Toolkit.UI" /> in the merged dictionaries. |
Thanks @IneedHelp, nice catch! We will get this fixed as it is definitely an issue |
@kazo0 Thank you for the prompt responses. |
On which page?
https://platform.uno/docs/articles/external/uno.toolkit.ui/doc/controls/DrawerControl.html#navigationview-with-drawer
What's wrong?
error CS1503: Argument 1: cannot convert from 'Microsoft.UI.Xaml.Controls.NavigationView' to 'Uno.Toolkit.UI.DrawerControl' when trying to compile that code
Any feedback?
removing
utu:DrawerControlBehavior.FitToDrawerContent="False"
makes the code compile fineThe text was updated successfully, but these errors were encountered: