Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't Use combobox in C# code
    primarykey
    data
    text
    <p>I want to add itens to a combobox but in c# because i dont want to add all the time the same comboboxitens. My code is this to the combobox i want to add itens.</p> <pre><code> &lt;ScrollViewer Margin="252,130,296,134" Grid.Row="1" VerticalAlignment="Top" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollMode="Enabled" ScrollViewer.HorizontalScrollMode="Disabled" ScrollViewer.ZoomMode="Disabled"&gt; &lt;StackPanel &gt; &lt;ItemsControl x:Name="ic" Grid.Row="2"&gt; &lt;ItemsControl.ItemTemplate&gt; &lt;DataTemplate&gt; &lt;Grid HorizontalAlignment="Left" VerticalAlignment="Center"&gt; &lt;StackPanel Orientation="Horizontal" HorizontalAlignment="Left"&gt; &lt;Border BorderBrush="#C83245" Background="White" BorderThickness="1"&gt; &lt;ComboBox x:Name="cbSeletion" VerticalAlignment="Center" FontSize="14" Width="250" Height="40" Foreground="Black" Tapped="cbSeletion_Tapped"&gt; &lt;/ComboBox&gt; &lt;/Border&gt; &lt;Border BorderBrush="#C83245" Background="White" BorderThickness="1"&gt; &lt;TextBlock Text="{Binding Name}" FontSize="14" VerticalAlignment="Center" Width="350" Foreground="Black"/&gt; &lt;/Border&gt; &lt;Border BorderBrush="#C83245" Background="White" BorderThickness="1" &gt; &lt;TextBlock Text="{Binding Position}" FontSize="14" VerticalAlignment="Center" Width="250" Foreground="Black"/&gt; &lt;/Border&gt; &lt;/StackPanel&gt; &lt;/Grid&gt; &lt;/DataTemplate&gt; &lt;/ItemsControl.ItemTemplate&gt; &lt;/ItemsControl&gt; &lt;/StackPanel&gt; &lt;/ScrollViewer&gt; </code></pre> <p>what can i do to use it?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload