Reputation: 153
I'm unable to use the DropDownButton
in my UWP app. Is there an extension or reference that I need to use before the control name?
If not, is there an alternative of the control?
I can't use the ComboBox
as I need the header text in the button, not above it.
Upvotes: 0
Views: 1796
Reputation: 178
Set Minimum Target version to 1809
Right click on Toolbox -> Choose Items -> Microsoft.UI.XAML
You should just be able to drag and drop like normal.
Upvotes: 0
Reputation: 169200
Set the target version to 1809 or higher or install the Windows UI Library.
Don't fortget to add <XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls"/>
to your Application.Resources
as explained in the docs.
Or add xmlns:controls="using:Microsoft.UI.Xaml.Controls"
at the top of your XAML file and then add the control using <controls:DropDownButton />
.
Upvotes: 2
Reputation: 9990
You need to target the proper minimum version. It should work without any additional settings if you set the min target to Windows 10, version 1809.
Upvotes: 1