Code Cleanup
Some checks failed
MSBuild / build (push) Has been cancelled
MSBuild / publish (push) Has been cancelled

This commit is contained in:
ema
2025-08-09 00:36:39 +08:00
parent 3dbc9fc763
commit 14a5bea926
11 changed files with 92 additions and 105 deletions

View File

@@ -81,8 +81,7 @@ public class BackgroundVisualHost : FrameworkElement
private readonly CreateContentFunction _createContent;
private readonly Action _invalidateMeasure;
private readonly AutoResetEvent _sync =
new AutoResetEvent(false);
private readonly AutoResetEvent _sync = new(false);
public ThreadedVisualHelper(
CreateContentFunction createContent,
@@ -125,15 +124,9 @@ public class BackgroundVisualHost : FrameworkElement
}
}
#region Private Fields
public ThreadedVisualHelper ThreadedHelper;
private HostVisual _hostVisual;
#endregion Private Fields
#region IsContentShowingProperty
/// <summary>
/// Identifies the IsContentShowing dependency property.
/// </summary>
@@ -163,10 +156,6 @@ public class BackgroundVisualHost : FrameworkElement
bvh.HideContentHelper();
}
#endregion IsContentShowingProperty
#region CreateContent Property
/// <summary>
/// Identifies the CreateContent dependency property.
/// </summary>
@@ -196,6 +185,4 @@ public class BackgroundVisualHost : FrameworkElement
bvh.CreateContentHelper();
}
}
#endregion CreateContent Property
}