2 // Copyright (c) Microsoft Corporation. All rights reserved.
5 namespace System.Activities.Presentation
9 internal static class DesignerConfigurationServiceUtilities
11 public static bool IsAnnotationEnabled(EditingContext editingContext)
13 Fx.Assert(editingContext != null, "editingContext should not be null");
14 DesignerConfigurationService config = editingContext.Services.GetService<DesignerConfigurationService>();
18 return config.AnnotationEnabled;
24 public static bool IsBackgroundValidationEnabled(EditingContext editingContext)
26 Fx.Assert(editingContext != null, "editingContext should not be null");
27 DesignerConfigurationService config = editingContext.Services.GetService<DesignerConfigurationService>();
31 return config.BackgroundValidationEnabled;