From 8b7779e2890bb991c98e4e94ce08d47a5cdbc3d0 Mon Sep 17 00:00:00 2001 From: Harshit Mishra Date: Fri, 22 Nov 2024 12:30:36 +0530 Subject: [PATCH] Revert "Validating Visual's connection to visual tree (#8202)" This reverts commit 647fadd7ffd5601dbbfb8812f62878d03a132919. --- .../System/Windows/Controls/RadioButton.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RadioButton.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RadioButton.cs index 112830903..c065a503a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RadioButton.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RadioButton.cs @@ -161,7 +161,7 @@ namespace System.Windows.Controls else { // Uncheck all checked RadioButtons different from the current one - if (rb != this && (rb.IsChecked == true) && rootScope == KeyboardNavigation.GetVisualRoot(rb) && rootScope != null) + if (rb != this && (rb.IsChecked == true) && rootScope == KeyboardNavigation.GetVisualRoot(rb)) rb.UncheckRadioButton(); i++; }