Fix: IsBackground derived from SourceType + per-scene background property tests
- Source.Type setter auto-sets IsBackground = true when Type is Background - SceneElement.IsBackground: expression-bodied → virtual auto-property - Source.IsBackground: new → override (WPF binding fix) - Three new tests: IsBackground per-scene, derived from type, UseDefaultBackground default
This commit is contained in:
@@ -37,6 +37,7 @@ public class Source : SceneElement
|
||||
{
|
||||
if (Set(ref _type, value))
|
||||
{
|
||||
IsBackground = value == SourceType.Background;
|
||||
Raise(nameof(IsLiveCapture));
|
||||
Raise(nameof(DisplaySource));
|
||||
Raise(nameof(IsWebSource));
|
||||
|
||||
Reference in New Issue
Block a user