Note that there are some explanatory texts on larger screens.

plurals
  1. POC# Strange WPF Combobox Behavior
    text
    copied!<p>I have simple window. This is what happens when I click ComboBox: <img src="https://i.stack.imgur.com/uCoMw.jpg" alt="Screenshot"> List appears in upper left corner of screen instead of under Combobox.</p> <p>XAML:</p> <pre><code>&lt;Window x:Class="WpfPortOfTestingCamera.VideoSettings" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Video Settings" WindowStartupLocation="CenterOwner" ResizeMode="NoResize" ShowInTaskbar="False" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" SizeToContent="WidthAndHeight" d:DesignHeight="167"&gt; &lt;StackPanel Name="stackPanel1" VerticalAlignment="Top" HorizontalAlignment="Center"&gt; &lt;GroupBox Header="Settings" Name="groupBox1"&gt; &lt;Grid Name="grid1" VerticalAlignment="Center" HorizontalAlignment="Center"&gt; &lt;Grid.ColumnDefinitions&gt; &lt;ColumnDefinition Width="80*" /&gt; &lt;ColumnDefinition Width="175*" /&gt; &lt;/Grid.ColumnDefinitions&gt; &lt;Grid.RowDefinitions&gt; &lt;RowDefinition /&gt; &lt;RowDefinition /&gt; &lt;/Grid.RowDefinitions&gt; &lt;Label Content="Resolution:" Height="28" Name="label1" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Center" /&gt; &lt;Label Content="Framerate:" Height="28" HorizontalAlignment="Left" Margin="0" Name="label2" VerticalAlignment="Center" Grid.Row="1" /&gt; &lt;ComboBox Grid.Column="1" Height="23" HorizontalAlignment="Left" Margin="0" Name="comboBox1" VerticalAlignment="Center" Width="150" SelectionChanged="comboBox1_SelectionChanged" /&gt; &lt;ComboBox Height="23" HorizontalAlignment="Left" Margin="0" Name="comboBox2" VerticalAlignment="Center" Width="150" Grid.Column="1" Grid.Row="1" SelectionChanged="comboBox2_SelectionChanged" /&gt; &lt;/Grid&gt; &lt;/GroupBox&gt; &lt;Label Name="labelSelectedSize" Content="Size @ FPS" /&gt; &lt;Button Name="button1" Content="Apply" Click="button1_Click" /&gt; &lt;/StackPanel&gt; &lt;/Window&gt; </code></pre>
 

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