Skip to content

Commit 847266c

Browse files
committed
Fix compilation conditions for Wasdk
1 parent 8f5e29e commit 847266c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

components/TokenizingTextBox/src/TokenizingTextBoxAutomationPeer.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,11 @@ public void SetValue(string value)
5252
{
5353
if (IsReadOnly)
5454
{
55-
#if WINDOWS_UWP
56-
#if NET8_0_OR_GREATER
55+
#if NET8_0_OR_GREATER
5756
throw new Microsoft.UI.Xaml.Automation.ElementNotEnabledException($"Could not set the value of the {nameof(TokenizingTextBox)} ");
58-
#else
57+
#elif WINDOWS_UWP
5958
throw new Windows.UI.Xaml.Automation.ElementNotEnabledException($"Could not set the value of the {nameof(TokenizingTextBox)} ");
60-
#endif
61-
#endif
59+
#endif
6260
}
6361

6462
this.OwningTokenizingTextBox.Text = value;

0 commit comments

Comments
 (0)