Hi,
I want a create dynamic stackpanel with icon. Manual when I gave the value of the symbol, it shows up as normal (pay attention to the first line of the image). But I do not see an icon with values from a database (the second row in the picture). How can I fix it?
<StackPanel ux:Class="ItemStackPanel" ItemSpacing="10" ContentAlignment="VerticalCenter">
<string ux:Property="ItemIcon" />
<Text Font="Linearicons" Value="{Property this.ItemIcon}" TextColor="white" FontSize="20" Alignment="HorizontalCenter" />
</StackPanel>
...
...
<StackPanel Margin="10">
<ColumnLayout ColumnCount="2" ColumnSpacing="10" ItemSpacing="10" />
<Each Items="{categoriesData.responseData.categories}">
<Rectangle Height="70" Color="topPanelColor" CornerRadius="5">
<Text Font="Linearicons" Value="" TextColor="white" FontSize="20" Alignment="HorizontalCenter" />
<ItemStackPanel Margin="0,5,0,0" ItemIcon="{icon}" />
</Rectangle>
</Each>
</StackPanel>