텍스트 상자가있는 실버 라이트 4 자식 창이 있습니다. 텍스트 상자에서 기존 텍스트를 클릭하면 클릭이 약 25 픽셀 오른쪽에 등록됩니다. 다른 모든 "클릭"(버튼 등)은 마우스의 위치를 등록합니다. 그리고 빈 텍스트 상자를 클릭하면 올바르게 등록됩니다. 텍스트 상자에 텍스트가있는 경우에만 해당됩니다.Silverlight의 텍스트 상자 ChildWindow 클릭하여 텍스트 선택 버그
IE8과 Chrome에서 모두 작동합니다. 나는 이것도 시도해 보았지만, 새로운 프로젝트에서 제거했다. 다른 누구도 동일한 행동을 경험 한 적이 있습니까?
업데이트 : 고해상도 모니터와 비표준 dpi를 사용하는 것이 적절할 수도 있습니다.
내에서 MainPage.xaml :
<Grid x:Name="LayoutRoot" Background="White">
<Button Content="Show" Click="Button_Click" />
</Grid>
내 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>
ChildWindow 실행에 대한 나의 MainPage.xaml.cs를 :
private void Button_Click(object sender, RoutedEventArgs e)
{
var window = new ChildWindow1();
window.Show();
}