Skip to content

Commit 8a0c19d

Browse files
committed
Added ToggleState pattern output
1 parent b706d20 commit 8a0c19d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/FlaUInspect/Core/PatternItemsFactory.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Drawing;
1+
using System.Drawing;
22
using FlaUI.Core;
33
using FlaUI.Core.AutomationElements;
44
using FlaUI.Core.Identifiers;
@@ -102,6 +102,7 @@ private static IEnumerable<PatternItem> AddTogglePatternDetails(AutomationElemen
102102
yield break;
103103
}
104104
ITogglePattern pattern = element.Patterns.Toggle.Pattern;
105+
yield return new PatternItem("IsToggled", pattern.ToggleState.IsSupported ? pattern.ToggleState.ToString() : "Not Supported");
105106
yield return new PatternItem("ToggleState", "Toggle", pattern.Toggle);
106107
}
107108
private static IEnumerable<PatternItem> AddVirtualizedPatternDetails(AutomationElement? element) {

0 commit comments

Comments
 (0)