Browse Source

Fix typo in PART_OnContentPresenter name (#21728)

pull/21735/head
yoyo 3 months ago
committed by GitHub
parent
commit
94a5671d58
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/Avalonia.Controls/ToggleSwitch.cs

2
src/Avalonia.Controls/ToggleSwitch.cs

@ -169,7 +169,7 @@ namespace Avalonia.Controls
{
var result = base.RegisterContentPresenter(presenter);
if (presenter.Name == "Part_OnContentPresenter")
if (presenter.Name == "PART_OnContentPresenter")
{
OnContentPresenter = presenter;
result = true;

Loading…
Cancel
Save