Search code examples
wpfxamlcomboboxlistbox

What is the good way to represent a list of choices for a combo box or list box in XAML?


Is there anything more compact (or otherwise better) than this?

    <x:Array x:Key="titles" Type="System:String">
        <System:String>Mr.</System:String>
        <System:String>Mrs.</System:String>
        <System:String>Ms.</System:String>
    </x:Array>

Solution

  • Without code that's the most consice you can AFAIK.