OS info: OS:64-bit Operating System Processor:i7-2600 Edition: Windows 7 Enterprise SP1VS info:Visual Studio 2010 Premium/UltimateVersion 10.0.40219.1 SP1RelI met a problem when I build one WPF Application.1) Make sure the current windows theme is "Windows 7 Basic"2) Create one WPF Application and pasted below code in the xaml window. <Window x:Class="WpfApplication3.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Grid> <DataGrid> <DataGrid.Columns> <DataGridTextColumn > <DataGridTextColumn.Header> <Border HorizontalAlignment="Center" VerticalAlignment="Center" > <TextBlock Text="aaa"/> </Border> </DataGridTextColumn.Header> </DataGridTextColumn> <DataGridTextColumn Header="Test1"/> <DataGridTextColumn Header="Test1"/> </DataGrid.Columns> </DataGrid> </Grid></Window>3) Build and run this application.4) Switch the windows theme to "Windows Classic"5) The WPF application crashed.I got below error information,System.InvalidOperationExceptionSpecified element is already the logical child of another element. Disconnect it first. at System.Windows.FrameworkElement.ChangeLogicalParent(DependencyObject newParent) at System.Windows.FrameworkElement.AddLogicalChild(Object child) at System.Windows.Controls.ContentControl.OnContentChanged(Object oldContent, Object newContent) ...By the way, I tested in the other windows themes, the results as below"Windows 7 Basic"-> "Windows Classic" --- Crashed"Windows 7 Basic"->" High Contrast #1" --- Crashed"Windows 7 Basic"-> "High Contrast Black"--- Crashed"Windows Classic" -> "Windows 7 Basic"--- Crashed"Windows Classic"-> "High Contrast Black"--- No Crash"High Contrast Black"-> "Windows 7 Basic"--- Crashed"High Contrast Black"-> "Windows Classic"--- No Crash"High Contrast Black"-> "High Contrast #1"--- No Crash
Visual Studio/Team Foundation Server/.NET Framework Tooling Version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results
Please wait...