Skip to content

Commit f50104b

Browse files
Revert "Validating Visual's connection to visual tree (#8202)" (#10106)
This reverts commit 647fadd. Co-authored-by: Harshit Mishra <[email protected]>
1 parent 1f050ef commit f50104b

File tree

1 file changed

+1
-1
lines changed
  • src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls

1 file changed

+1
-1
lines changed

src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RadioButton.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private void UpdateRadioButtonGroup()
161161
else
162162
{
163163
// Uncheck all checked RadioButtons different from the current one
164-
if (rb != this && (rb.IsChecked == true) && rootScope == KeyboardNavigation.GetVisualRoot(rb) && rootScope != null)
164+
if (rb != this && (rb.IsChecked == true) && rootScope == KeyboardNavigation.GetVisualRoot(rb))
165165
rb.UncheckRadioButton();
166166
i++;
167167
}

0 commit comments

Comments
 (0)