C++/WinRT: How to create a DataTemplate with binding in code?

68 Views Asked by At

I need to implement a C++/WinRT application completely without using XAML code. However, I am stuck with the DataTemplate. The following XAML code is to be converted into C++:

<ComboBox> 
    <ComboBox.ItemTemplate>
        <DataTemplate>
            <local:MyComboBoxItemUC Item="{Binding}"/>
        </DataTemplate>
    </ComboBox.ItemTemplate>
</ComboBox>

Does anyone have any ideas?

0

There are 0 best solutions below