Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3605356
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:06:46+00:00 2026-05-18T21:06:46+00:00

I have a silverlight 4 childwindow that has a textbox. When I click existing

  • 0

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.

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?

Update: It might also be relevant that I’m on a high res monitor and using a non standard dpi.


My MainPage.xaml:

<Grid x:Name="LayoutRoot" Background="White">
    <Button Content="Show" Click="Button_Click" />
</Grid>

My ChildWindow.xaml:

<Grid x:Name="LayoutRoot" Margin="2">
    <Grid.RowDefinitions>
        <RowDefinition />
        <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>
    <TextBox Width="200" />
    <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
    <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" />
</Grid>

My MainPage.xaml.cs for launching the ChildWindow:

private void Button_Click(object sender, RoutedEventArgs e)
{
    var window = new ChildWindow1();
    window.Show();
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T21:06:47+00:00Added an answer on May 18, 2026 at 9:06 pm

    Not an answer, but I can reproduce this. When my browser zoom (in Chrome) is set to 100%, the clicks in the textbox register where they belong. As soon as I zoom in, the clicks start registering to the right of the actual click location.

    Like you, I am using a high-dpi display and regularly use my browser at above 100% zoom.

    Edit: a related bug is register at Connect: https://connect.microsoft.com/VisualStudio/feedback/details/588553/silverlight-4-thumb-does-not-correct-report-mouse-changes-at-non-100-zoom?wa=wsignin1.0#tabs

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got an order details form in Silverlight that has a listbox of order
I have Silverlight application that retrieves data from the database through a WCF Service.
I have a Silverlight Application, that uploads file(s) to a Sharepoint Site. I got
I have a Silverlight application that displays a map, and my intention is, when
I have a Silverlight Class Library that I want to use in both my
I have a Silverlight 4 application that uses WCF services on the same server
i have a silverlight application that is hosted within a asp.net web application. in
I have a Silverlight 4 application that I want to secure. Does Silverlight 4
I'd like to have Silverlight draw the blue L and C in the image
I have a Silverlight control with a Content field. I'd like to be able

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.