x:Array equivelent in WinUI? #8174
-
I need to use an array of items as shown below. How do I do this using WinUI?
|
Beta Was this translation helpful? Give feedback.
Answered by
MikeHillberg
Feb 13, 2023
Replies: 1 comment 1 reply
-
There's no public class List : List<object>
{
public List() { }
} And then: <local:DropDownButton.ItemsSource>
<local:List>
<local:DimensionAction>SortAscending</local:DimensionAction>
<local:DimensionAction>SortDescending</local:DimensionAction>
<local:DimensionAction>Hide</local:DimensionAction>
</local:List>
</local:DropDownButton.ItemsSource> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sam-wheat
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's no
x:Array
support, so what I do for this case is make a helper:And then: