Note that there are some explanatory texts on larger screens.

plurals
  1. POTextbox in Silverlight ChildWindow Click and Select Text Bug
    primarykey
    data
    text
    <p>I have a silverlight 4 childwindow that has a textbox. When I click existing text in the textbox, the click is registered about 25 pixels to the right. All other "clicks" (for buttons, etc) register where the mouse is. And a click to an empty text box also registers correctly. It is only if there is text in the textbox.</p> <p>The behavior exists in both IE8 and Chrome. I've tried this with a new, stripped down project as well. Has anyone else has ever experienced the same behavior?</p> <p><em>Update</em>: It might also be relevant that I'm on a high res monitor and using a non standard dpi.</p> <hr> <p>My MainPage.xaml:</p> <pre><code>&lt;Grid x:Name="LayoutRoot" Background="White"&gt; &lt;Button Content="Show" Click="Button_Click" /&gt; &lt;/Grid&gt; </code></pre> <p>My ChildWindow.xaml:</p> <pre><code>&lt;Grid x:Name="LayoutRoot" Margin="2"&gt; &lt;Grid.RowDefinitions&gt; &lt;RowDefinition /&gt; &lt;RowDefinition Height="Auto" /&gt; &lt;/Grid.RowDefinitions&gt; &lt;TextBox Width="200" /&gt; &lt;Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" /&gt; &lt;Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" /&gt; &lt;/Grid&gt; </code></pre> <p>My MainPage.xaml.cs for launching the ChildWindow:</p> <pre><code>private void Button_Click(object sender, RoutedEventArgs e) { var window = new ChildWindow1(); window.Show(); } </code></pre>
    singulars
    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.
    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