From 3ceee0e770c3a9a157f446acf5c618e46d5bd281 Mon Sep 17 00:00:00 2001 From: h3xds1nz Date: Sun, 6 Apr 2025 17:11:41 +0200 Subject: [PATCH 1/4] Use BooleanBoxes for default values in DependencyProperty metadata --- .../src/PresentationCore/GlobalUsings.cs | 2 + .../Automation/AutomationProperties.cs | 4 +- .../System/Windows/ContentElement.cs | 1 - .../System/Windows/EventRoute.cs | 1 - .../System/Windows/FocusWithinProperty.cs | 2 - .../Windows/Input/InputLanguageManager.cs | 2 +- .../System/Windows/Input/InputMethod.cs | 6 +- .../Windows/Input/Stylus/Common/Stylus.cs | 10 ++-- .../Media/Animation/AnimationTimeline.cs | 4 +- .../Animation/MatrixAnimationUsingPath.cs | 8 +-- .../Media/Generated/BitmapCacheBrush.cs | 6 +- .../System/Windows/PresentationSource.cs | 6 +- .../src/PresentationFramework/GlobalUsings.cs | 2 + .../Annotations/Anchoring/DataIdProcessor.cs | 2 +- .../System/Windows/Controls/Calendar.cs | 2 +- .../System/Windows/Controls/DataGrid.cs | 35 ++++++----- .../System/Windows/Controls/DataGridCell.cs | 14 +++-- .../Controls/DataGridCheckBoxColumn.cs | 5 +- .../System/Windows/Controls/DataGridColumn.cs | 16 +++-- .../Controls/DataGridComboBoxColumn.cs | 3 +- .../System/Windows/Controls/DataGridRow.cs | 12 ++-- .../System/Windows/Controls/DatePicker.cs | 4 +- .../System/Windows/Controls/DockPanel.cs | 2 +- .../Controls/FlowDocumentScrollViewer.cs | 1 - .../System/Windows/Controls/Frame.cs | 2 - .../System/Windows/Controls/Grid.cs | 2 +- .../System/Windows/Controls/GridSplitter.cs | 2 - .../System/Windows/Controls/GridView.cs | 3 - .../Windows/Controls/GridViewColumnHeader.cs | 3 - .../System/Windows/Controls/GroupBox.cs | 6 +- .../System/Windows/Controls/GroupItem.cs | 6 +- .../System/Windows/Controls/ItemCollection.cs | 3 - .../System/Windows/Controls/ListBox.cs | 2 - .../System/Windows/Controls/ListBoxItem.cs | 2 - .../System/Windows/Controls/MediaElement.cs | 3 +- .../System/Windows/Controls/Menu.cs | 7 +-- .../System/Windows/Controls/MenuItem.cs | 2 - .../System/Windows/Controls/PasswordBox.cs | 1 - .../Windows/Controls/PopupControlService.cs | 2 - .../Controls/Primitives/CalendarButton.cs | 6 +- .../Controls/Primitives/CalendarDayButton.cs | 12 ++-- .../Controls/Primitives/CalendarItem.cs | 3 +- .../Primitives/DataGridCellsPresenter.cs | 5 +- .../Primitives/DataGridColumnHeader.cs | 7 +-- .../DataGridColumnHeadersPresenter.cs | 6 +- .../Controls/Primitives/DataGridRowHeader.cs | 5 +- .../Controls/Primitives/DocumentViewerBase.cs | 3 +- .../Windows/Controls/Primitives/MenuBase.cs | 4 +- .../Windows/Controls/Primitives/Popup.cs | 3 +- .../Windows/Controls/Primitives/ScrollBar.cs | 2 - .../Windows/Controls/Primitives/StatusBar.cs | 4 +- .../Controls/Primitives/StatusBarItem.cs | 5 +- .../Controls/Primitives/TextBoxBase.cs | 12 ++-- .../Windows/Controls/Primitives/TickBar.cs | 7 +-- .../Controls/Primitives/ToggleButton.cs | 3 - .../Controls/Primitives/ToolBarPanel.cs | 2 - .../Windows/Controls/Primitives/Track.cs | 2 - .../System/Windows/Controls/ProgressBar.cs | 3 - .../System/Windows/Controls/RichTextBox.cs | 16 ++--- .../System/Windows/Controls/ScrollViewer.cs | 2 - .../System/Windows/Controls/Separator.cs | 4 +- .../Windows/Controls/SinglePageViewer.cs | 5 +- .../System/Windows/Controls/Slider.cs | 13 ++--- .../System/Windows/Controls/StickyNote.cs | 3 +- .../System/Windows/Controls/TabItem.cs | 2 - .../System/Windows/Controls/TextSearch.cs | 8 +-- .../System/Windows/Controls/ToolBar.cs | 1 - .../System/Windows/Controls/ToolBarTray.cs | 1 - .../System/Windows/Controls/ToolTip.cs | 3 +- .../System/Windows/Controls/ToolTipService.cs | 3 +- .../System/Windows/Controls/TreeView.cs | 1 - .../System/Windows/Controls/TreeViewItem.cs | 1 - .../System/Windows/Controls/UserControl.cs | 3 +- .../System/Windows/Controls/Validation.cs | 1 - .../System/Windows/Controls/ViewPort3D.cs | 1 - .../Windows/Controls/VirtualizingPanel.cs | 16 +++-- .../Windows/Data/CollectionViewSource.cs | 14 ++--- .../System/Windows/Documents/Block.cs | 4 +- .../Windows/Documents/CompositionAdorner.cs | 2 +- .../Windows/Documents/DocumentSequence.cs | 2 +- .../System/Windows/Documents/FixedDocument.cs | 2 +- .../System/Windows/Documents/FlowDocument.cs | 2 +- .../System/Windows/Documents/Glyphs.cs | 5 +- .../System/Windows/Documents/Hyperlink.cs | 7 +-- .../System/Windows/Documents/Paragraph.cs | 8 +-- .../System/Windows/Documents/TextEditor.cs | 6 +- .../System/Windows/Documents/Typography.cs | 58 +++++++++---------- .../System/Windows/FrameworkContentElement.cs | 1 - .../System/Windows/FrameworkElement.cs | 1 - .../Windows/Input/KeyboardNavigation.cs | 1 - .../System/Windows/Interop/ActiveXHost.cs | 4 +- .../System/Windows/Interop/HwndHost.cs | 2 +- .../System/Windows/Navigation/JournalEntry.cs | 2 +- .../System/Windows/Shell/ThumbButtonInfo.cs | 8 +-- .../System/Windows/Shell/WindowChrome.cs | 6 +- .../System/Windows/Window.cs | 1 - .../Documents/Application/ZoomComboBox.cs | 3 +- .../Microsoft/Windows/Themes/BulletChrome.cs | 9 +-- .../Microsoft/Windows/Themes/ButtonChrome.cs | 8 +-- .../Microsoft/Windows/Themes/ListBoxChrome.cs | 8 +-- .../Microsoft/Windows/Themes/BulletChrome.cs | 9 +-- .../Microsoft/Windows/Themes/ButtonChrome.cs | 8 +-- .../Microsoft/Windows/Themes/ListBoxChrome.cs | 8 +-- .../Microsoft/Windows/Themes/ScrollChrome.cs | 3 +- .../Windows/Themes/ClassicBorderDecorator.cs | 9 ++- .../Microsoft/Windows/Themes/ButtonChrome.cs | 11 ++-- .../Microsoft/Windows/Themes/ScrollChrome.cs | 6 +- .../Microsoft/Windows/Themes/ButtonChrome.cs | 11 ++-- .../Microsoft/Windows/Themes/ScrollChrome.cs | 6 +- .../Microsoft/Windows/Themes/BulletChrome.cs | 7 ++- .../Windows/Themes/DataGridHeaderBorder.cs | 17 ++++-- .../src/WindowsBase/GlobalUsings.cs | 2 + .../System/Windows/SplashScreen.cs | 5 +- .../System/Windows/UncommonField.cs | 3 +- 114 files changed, 295 insertions(+), 348 deletions(-) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/GlobalUsings.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/GlobalUsings.cs index 9c18d638015..e971569218e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/GlobalUsings.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/GlobalUsings.cs @@ -5,6 +5,8 @@ global using System.Collections.Generic; global using System.Diagnostics; +global using MS.Internal.KnownBoxes; + global using DataFormatsCore = System.Private.Windows.Ole.DataFormatsCore< System.Windows.DataFormat>; #pragma warning disable IDE0005 // Using directive is unnecessary. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/AutomationProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/AutomationProperties.cs index ac695d10d0a..08108b150f1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/AutomationProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/AutomationProperties.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Windows.Automation @@ -536,7 +536,7 @@ public static AutomationHeadingLevel GetHeadingLevel(DependencyObject element) "IsDialog", typeof(bool), typeof(AutomationProperties), - new UIPropertyMetadata(false)); + new UIPropertyMetadata(BooleanBoxes.FalseBox)); /// /// Helper for setting IsDialog property on a DependencyObject. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ContentElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ContentElement.cs index bf8c94fba16..a211cec9990 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ContentElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ContentElement.cs @@ -4,7 +4,6 @@ using MS.Internal; using MS.Internal.Interop; -using MS.Internal.KnownBoxes; using MS.Internal.PresentationCore; using System.Windows.Automation; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventRoute.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventRoute.cs index 36c5cade467..0524de102a7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventRoute.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventRoute.cs @@ -3,7 +3,6 @@ using MS.Utility; using MS.Internal; -using MS.Internal.KnownBoxes; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FocusWithinProperty.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FocusWithinProperty.cs index d1d2b6263bd..2e0dc84147b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FocusWithinProperty.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FocusWithinProperty.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using MS.Internal.KnownBoxes; - namespace System.Windows { ///////////////////////////////////////////////////////////////////////// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputLanguageManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputLanguageManager.cs index e4ad11ad7be..87eb13497cd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputLanguageManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputLanguageManager.cs @@ -63,7 +63,7 @@ public static CultureInfo GetInputLanguage(DependencyObject target) "RestoreInputLanguage", typeof(bool), typeof(InputLanguageManager), - new PropertyMetadata(false) + new PropertyMetadata(BooleanBoxes.FalseBox) ); /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMethod.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMethod.cs index d81741529d3..931a3c57796 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMethod.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMethod.cs @@ -213,7 +213,7 @@ internal InputMethod() typeof(bool), typeof(InputMethod), new PropertyMetadata( - true, + BooleanBoxes.TrueBox, new PropertyChangedCallback(IsInputMethodEnabled_Changed))); /// @@ -247,7 +247,7 @@ public static bool GetIsInputMethodEnabled(DependencyObject target) "IsInputMethodSuspended", typeof(bool), typeof(InputMethod), - new PropertyMetadata(false)); + new PropertyMetadata(BooleanBoxes.FalseBox)); /// /// Setter for IsInputMethodSuspended DependencyProperty @@ -379,7 +379,7 @@ public static ImeSentenceModeValues GetPreferredImeSentenceMode(DependencyObject "InputScope", typeof(InputScope), typeof(InputMethod), - new PropertyMetadata((InputScope) null)); + new PropertyMetadata((InputScope)null)); /// /// Setter for InputScope DependencyProperty diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/Stylus.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/Stylus.cs index a2d90a639b5..2a83b600518 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/Stylus.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/Stylus.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Windows.Input @@ -602,7 +602,7 @@ public static void SetIsPressAndHoldEnabled(DependencyObject element, bool enabl /// /// public static readonly DependencyProperty IsPressAndHoldEnabledProperty - = DependencyProperty.RegisterAttached("IsPressAndHoldEnabled", typeof(bool), typeof(Stylus), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits) + = DependencyProperty.RegisterAttached("IsPressAndHoldEnabled", typeof(bool), typeof(Stylus), new PropertyMetadata(BooleanBoxes.TrueBox)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits) /// @@ -642,7 +642,7 @@ public static void SetIsFlicksEnabled(DependencyObject element, bool enabled) /// /// public static readonly DependencyProperty IsFlicksEnabledProperty - = DependencyProperty.RegisterAttached("IsFlicksEnabled", typeof(bool), typeof(Stylus), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits) + = DependencyProperty.RegisterAttached("IsFlicksEnabled", typeof(bool), typeof(Stylus), new PropertyMetadata(BooleanBoxes.TrueBox)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits) /// @@ -682,7 +682,7 @@ public static void SetIsTapFeedbackEnabled(DependencyObject element, bool enable /// /// public static readonly DependencyProperty IsTapFeedbackEnabledProperty - = DependencyProperty.RegisterAttached("IsTapFeedbackEnabled", typeof(bool), typeof(Stylus), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits) + = DependencyProperty.RegisterAttached("IsTapFeedbackEnabled", typeof(bool), typeof(Stylus), new PropertyMetadata(BooleanBoxes.TrueBox)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits) /// @@ -721,7 +721,7 @@ public static void SetIsTouchFeedbackEnabled(DependencyObject element, bool enab /// /// public static readonly DependencyProperty IsTouchFeedbackEnabledProperty - = DependencyProperty.RegisterAttached("IsTouchFeedbackEnabled", typeof(bool), typeof(Stylus), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits) + = DependencyProperty.RegisterAttached("IsTouchFeedbackEnabled", typeof(bool), typeof(Stylus), new PropertyMetadata(BooleanBoxes.TrueBox)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits) ///////////////////////////////////////////////////////////////////// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationTimeline.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationTimeline.cs index d1e11ef4a73..ba5bb29827e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationTimeline.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationTimeline.cs @@ -32,7 +32,7 @@ private static void AnimationTimeline_PropertyChangedFunction(DependencyObject d "IsAdditive", // Property Name typeof(bool), // Property Type typeof(AnimationTimeline), // Owner Class - new PropertyMetadata(false, + new PropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(AnimationTimeline_PropertyChangedFunction))); /// @@ -43,7 +43,7 @@ private static void AnimationTimeline_PropertyChangedFunction(DependencyObject d "IsCumulative", // Property Name typeof(bool), // Property Type typeof(AnimationTimeline), // Owner Class - new PropertyMetadata(false, + new PropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(AnimationTimeline_PropertyChangedFunction))); #endregion diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/MatrixAnimationUsingPath.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/MatrixAnimationUsingPath.cs index efe03928744..be74557eb0f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/MatrixAnimationUsingPath.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/MatrixAnimationUsingPath.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // @@ -82,7 +82,7 @@ protected override void OnChanged() "DoesRotateWithTangent", typeof(bool), typeof(MatrixAnimationUsingPath), - new PropertyMetadata(false)); + new PropertyMetadata(BooleanBoxes.FalseBox)); /// /// If this is set to true, the object will rotate along with the @@ -123,7 +123,7 @@ public bool IsAdditive "IsAngleCumulative", typeof(bool), typeof(MatrixAnimationUsingPath), - new PropertyMetadata(false)); + new PropertyMetadata(BooleanBoxes.FalseBox)); /// /// If this property is set to true, the rotation angle of the animated matrix @@ -156,7 +156,7 @@ public bool IsAngleCumulative "IsOffsetCumulative", typeof(bool), typeof(MatrixAnimationUsingPath), - new PropertyMetadata(false)); + new PropertyMetadata(BooleanBoxes.FalseBox)); /// /// If this property is set to true, the offset of the animated matrix diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapCacheBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapCacheBrush.cs index 8518dbf9976..fee503c3cff 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapCacheBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapCacheBrush.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // @@ -549,7 +549,7 @@ static BitmapCacheBrush() RegisterProperty("AutoLayoutContent", typeof(bool), typeofThis, - true, + BooleanBoxes.TrueBox, new PropertyChangedCallback(AutoLayoutContentPropertyChanged), null, /* isIndependentlyAnimated = */ false, @@ -567,7 +567,7 @@ static BitmapCacheBrush() RegisterProperty("AutoWrapTarget", typeof(bool), typeofThis, - false, + BooleanBoxes.FalseBox, new PropertyChangedCallback(AutoWrapTargetPropertyChanged), null, /* isIndependentlyAnimated = */ false, diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/PresentationSource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/PresentationSource.cs index a476d7a61d0..9ac63c4dd4b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/PresentationSource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/PresentationSource.cs @@ -730,12 +730,14 @@ private static readonly DependencyProperty CachedSourceProperty new PropertyMetadata((PresentationSource)null)); // We use a private DP to mark elements that we are watchin. - private static readonly DependencyProperty GetsSourceChangedEventProperty = DependencyProperty.RegisterAttached("IsBeingWatched", typeof(bool), typeof(PresentationSource), new PropertyMetadata((bool)false)); + private static readonly DependencyProperty GetsSourceChangedEventProperty = DependencyProperty.RegisterAttached("IsBeingWatched", typeof(bool), + typeof(PresentationSource), new PropertyMetadata(BooleanBoxes.FalseBox)); // We use a private direct-only event to notify elements of when the // source changes. Use the public APIs AddSourceChangedHandler and // RemoveSourceChangedHandler to listen to this event. - private static readonly RoutedEvent SourceChangedEvent = EventManager.RegisterRoutedEvent("SourceChanged", RoutingStrategy.Direct, typeof(SourceChangedEventHandler), typeof(PresentationSource)); + private static readonly RoutedEvent SourceChangedEvent = EventManager.RegisterRoutedEvent("SourceChanged", RoutingStrategy.Direct, + typeof(SourceChangedEventHandler), typeof(PresentationSource)); // The lock we use to protect our static data. private static readonly object _globalLock = new object(); diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/GlobalUsings.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/GlobalUsings.cs index c0330bb0498..2b858cd4f33 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/GlobalUsings.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/GlobalUsings.cs @@ -4,3 +4,5 @@ global using System; global using System.Collections.Generic; global using System.Diagnostics; + +global using MS.Internal.KnownBoxes; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/DataIdProcessor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/DataIdProcessor.cs index f7cc9fd6128..ce60b277fa1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/DataIdProcessor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/DataIdProcessor.cs @@ -301,7 +301,7 @@ public static String GetDataId(DependencyObject d) "FetchAnnotationsAsBatch", typeof(bool), typeof(DataIdProcessor), - new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.Inherits)); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.Inherits)); /// /// Sets the value of the FetchAnnotationsAsBatch attached property diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Calendar.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Calendar.cs index c168c12ee06..2e781e4eaa0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Calendar.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Calendar.cs @@ -474,7 +474,7 @@ public bool IsTodayHighlighted "IsTodayHighlighted", typeof(bool), typeof(Calendar), - new FrameworkPropertyMetadata(true, OnIsTodayHighlightedChanged)); + new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, OnIsTodayHighlightedChanged)); /// /// IsTodayHighlightedProperty property changed handler. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGrid.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGrid.cs index f76e9d721cb..7cc2ae4c6bf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGrid.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGrid.cs @@ -17,6 +17,7 @@ using System.Windows.Threading; using MS.Internal; using MS.Internal.Data; +using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; namespace System.Windows.Controls @@ -40,7 +41,7 @@ static DataGrid() FrameworkElementFactory dataGridRowPresenterFactory = new FrameworkElementFactory(typeof(DataGridRowsPresenter)); dataGridRowPresenterFactory.SetValue(FrameworkElement.NameProperty, ItemsPanelPartName); ItemsPanelProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(new ItemsPanelTemplate(dataGridRowPresenterFactory))); - VirtualizingPanel.IsVirtualizingProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true, null, new CoerceValueCallback(OnCoerceIsVirtualizingProperty))); + VirtualizingPanel.IsVirtualizingProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, null, new CoerceValueCallback(OnCoerceIsVirtualizingProperty))); VirtualizingPanel.VirtualizationModeProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(VirtualizationMode.Recycling)); ItemContainerStyleProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new CoerceValueCallback(OnCoerceItemContainerStyle))); ItemContainerStyleSelectorProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new CoerceValueCallback(OnCoerceItemContainerStyleSelector))); @@ -49,7 +50,7 @@ static DataGrid() IsEnabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(new PropertyChangedCallback(OnIsEnabledChanged))); IsKeyboardFocusWithinPropertyKey.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(new PropertyChangedCallback(OnIsKeyboardFocusWithinChanged))); IsSynchronizedWithCurrentItemProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new CoerceValueCallback(OnCoerceIsSynchronizedWithCurrentItem))); - IsTabStopProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(false)); + IsTabStopProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained)); KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); @@ -134,7 +135,8 @@ public bool CanUserResizeColumns /// The DependencyProperty that represents the CanUserResizeColumns property. /// public static readonly DependencyProperty CanUserResizeColumnsProperty = - DependencyProperty.Register("CanUserResizeColumns", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged))); + DependencyProperty.Register("CanUserResizeColumns", typeof(bool), typeof(DataGrid), + new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged))); /// /// Specifies the width of the header and cells within all the columns. @@ -2753,7 +2755,8 @@ public bool IsReadOnly /// The DependencyProperty for IsReadOnly. /// public static readonly DependencyProperty IsReadOnlyProperty = - DependencyProperty.Register("IsReadOnly", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnIsReadOnlyChanged))); + DependencyProperty.Register("IsReadOnly", typeof(bool), typeof(DataGrid), + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnIsReadOnlyChanged))); private static void OnIsReadOnlyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { @@ -3430,7 +3433,8 @@ public bool CanUserAddRows /// DependencyProperty for CanUserAddRows. /// public static readonly DependencyProperty CanUserAddRowsProperty = - DependencyProperty.Register("CanUserAddRows", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserAddRowsChanged), new CoerceValueCallback(OnCoerceCanUserAddRows))); + DependencyProperty.Register("CanUserAddRows", typeof(bool), typeof(DataGrid), + new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, new PropertyChangedCallback(OnCanUserAddRowsChanged), new CoerceValueCallback(OnCoerceCanUserAddRows))); private static void OnCanUserAddRowsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { @@ -3480,7 +3484,8 @@ public bool CanUserDeleteRows /// DependencyProperty for CanUserDeleteRows. /// public static readonly DependencyProperty CanUserDeleteRowsProperty = - DependencyProperty.Register("CanUserDeleteRows", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserDeleteRowsChanged), new CoerceValueCallback(OnCoerceCanUserDeleteRows))); + DependencyProperty.Register("CanUserDeleteRows", typeof(bool), typeof(DataGrid), + new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, new PropertyChangedCallback(OnCanUserDeleteRowsChanged), new CoerceValueCallback(OnCoerceCanUserDeleteRows))); private static void OnCanUserDeleteRowsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { @@ -3882,7 +3887,7 @@ public bool AreRowDetailsFrozen /// DependencyProperty for AreRowDetailsFrozen. /// public static readonly DependencyProperty AreRowDetailsFrozenProperty = - DependencyProperty.Register("AreRowDetailsFrozen", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(false)); + DependencyProperty.Register("AreRowDetailsFrozen", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); /// /// Template used for the Row details. @@ -4014,7 +4019,8 @@ public bool CanUserResizeRows /// The DependencyProperty that represents the CanUserResizeColumns property. /// public static readonly DependencyProperty CanUserResizeRowsProperty = - DependencyProperty.Register("CanUserResizeRows", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyRowHeaderPropertyChanged))); + DependencyProperty.Register("CanUserResizeRows", typeof(bool), typeof(DataGrid), + new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, new PropertyChangedCallback(OnNotifyRowHeaderPropertyChanged))); #endregion @@ -7029,7 +7035,7 @@ internal DataGridCell TryFindCell(object item, DataGridColumn column) "CanUserSortColumns", typeof(bool), typeof(DataGrid), - new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserSortColumnsPropertyChanged), new CoerceValueCallback(OnCoerceCanUserSortColumns))); + new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, new PropertyChangedCallback(OnCanUserSortColumnsPropertyChanged), new CoerceValueCallback(OnCoerceCanUserSortColumns))); /// /// The property which determines whether the datagrid can be sorted by @@ -7443,7 +7449,8 @@ private void OnItemsGroupDescriptionsChanged(object sender, NotifyCollectionChan /// The DependencyProperty that represents the AutoGenerateColumns property. /// public static readonly DependencyProperty AutoGenerateColumnsProperty = - DependencyProperty.Register("AutoGenerateColumns", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnAutoGenerateColumnsPropertyChanged))); + DependencyProperty.Register("AutoGenerateColumns", typeof(bool), typeof(DataGrid), + new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, new PropertyChangedCallback(OnAutoGenerateColumnsPropertyChanged))); /// /// The property which determines whether the columns are to be auto generated or not. @@ -8013,7 +8020,7 @@ public bool EnableRowVirtualization "EnableRowVirtualization", typeof(bool), typeof(DataGrid), - new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnEnableRowVirtualizationChanged))); + new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, new PropertyChangedCallback(OnEnableRowVirtualizationChanged))); /// /// Property changed callback for EnableRowVirtualization. @@ -8061,7 +8068,7 @@ public bool EnableColumnVirtualization "EnableColumnVirtualization", typeof(bool), typeof(DataGrid), - new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnEnableColumnVirtualizationChanged))); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnEnableColumnVirtualizationChanged))); /// /// Property changed callback for EnableColumnVirtualization. @@ -8081,7 +8088,9 @@ private static void OnEnableColumnVirtualizationChanged(DependencyObject d, Depe /// Dependency Property for CanUserReorderColumns Property /// public static readonly DependencyProperty CanUserReorderColumnsProperty = - DependencyProperty.Register("CanUserReorderColumns", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnPropertyChanged))); + DependencyProperty.Register("CanUserReorderColumns", typeof(bool), typeof(DataGrid), + new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, + new PropertyChangedCallback(OnNotifyColumnPropertyChanged))); /// /// The property which determines if an end user can re-order columns or not. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCell.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCell.cs index 199c7ff662a..259be1a5156 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCell.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCell.cs @@ -2,11 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. +using System.Windows.Automation; using System.Windows.Controls.Primitives; using System.Windows.Data; using System.Windows.Input; using System.Windows.Media; -using System.Windows.Automation; +using MS.Internal.KnownBoxes; namespace System.Windows.Controls { @@ -32,7 +33,7 @@ static DataGridCell() AutomationProperties.IsOffscreenBehaviorProperty.OverrideMetadata(typeof(DataGridCell), new FrameworkPropertyMetadata(IsOffscreenBehavior.FromClip)); // Set SnapsToDevicePixels to true so that this element can draw grid lines. The metadata options are so that the property value doesn't inherit down the tree from here. - SnapsToDevicePixelsProperty.OverrideMetadata(typeof(DataGridCell), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsArrange)); + SnapsToDevicePixelsProperty.OverrideMetadata(typeof(DataGridCell), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.AffectsArrange)); EventManager.RegisterClassHandler(typeof(DataGridCell), MouseLeftButtonDownEvent, new MouseButtonEventHandler(OnAnyMouseLeftButtonDownThunk), true); @@ -452,7 +453,8 @@ public bool IsEditing /// /// Represents the IsEditing property. /// - public static readonly DependencyProperty IsEditingProperty = DependencyProperty.Register("IsEditing", typeof(bool), typeof(DataGridCell), new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnIsEditingChanged))); + public static readonly DependencyProperty IsEditingProperty = DependencyProperty.Register("IsEditing", typeof(bool), typeof(DataGridCell), + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnIsEditingChanged))); private static void OnIsEditingChanged(object sender, DependencyPropertyChangedEventArgs e) { @@ -515,7 +517,8 @@ public bool IsReadOnly } private static readonly DependencyPropertyKey IsReadOnlyPropertyKey = - DependencyProperty.RegisterReadOnly("IsReadOnly", typeof(bool), typeof(DataGridCell), new FrameworkPropertyMetadata(false, OnNotifyIsReadOnlyChanged, OnCoerceIsReadOnly)); + DependencyProperty.RegisterReadOnly("IsReadOnly", typeof(bool), typeof(DataGridCell), + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, OnNotifyIsReadOnlyChanged, OnCoerceIsReadOnly)); /// /// The DependencyProperty for IsReadOnly. @@ -649,7 +652,8 @@ public bool IsSelected /// /// Represents the IsSelected property. /// - public static readonly DependencyProperty IsSelectedProperty = DependencyProperty.Register("IsSelected", typeof(bool), typeof(DataGridCell), new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnIsSelectedChanged))); + public static readonly DependencyProperty IsSelectedProperty = DependencyProperty.Register("IsSelected", typeof(bool), typeof(DataGridCell), + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnIsSelectedChanged))); private static void OnIsSelectedChanged(object sender, DependencyPropertyChangedEventArgs e) { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCheckBoxColumn.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCheckBoxColumn.cs index cdd32edd868..5568afc217d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCheckBoxColumn.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCheckBoxColumn.cs @@ -1,8 +1,9 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Windows.Input; +using MS.Internal.KnownBoxes; namespace System.Windows.Controls { @@ -143,7 +144,7 @@ protected internal override void RefreshCellContent(FrameworkElement element, st public static readonly DependencyProperty IsThreeStateProperty = CheckBox.IsThreeStateProperty.AddOwner( typeof(DataGridCheckBoxColumn), - new FrameworkPropertyMetadata(false, DataGridColumn.NotifyPropertyChangeForRefreshContent)); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, DataGridColumn.NotifyPropertyChangeForRefreshContent)); /// /// The IsThreeState property determines whether the control supports two or three states. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumn.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumn.cs index 7359a2f54a1..913d71fa0e6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumn.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumn.cs @@ -7,6 +7,7 @@ using System.Windows.Data; using System.Windows.Input; using MS.Internal; +using MS.Internal.KnownBoxes; namespace System.Windows.Controls { @@ -146,7 +147,8 @@ public bool IsReadOnly /// The DependencyProperty that represents the IsReadOnly property. /// public static readonly DependencyProperty IsReadOnlyProperty = - DependencyProperty.Register("IsReadOnly", typeof(bool), typeof(DataGridColumn), new FrameworkPropertyMetadata(false, OnNotifyCellPropertyChanged, OnCoerceIsReadOnly)); + DependencyProperty.Register("IsReadOnly", typeof(bool), typeof(DataGridColumn), + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, OnNotifyCellPropertyChanged, OnCoerceIsReadOnly)); private static object OnCoerceIsReadOnly(DependencyObject d, object baseValue) { @@ -1020,7 +1022,7 @@ public string SortMemberPath "CanUserSort", typeof(bool), typeof(DataGridColumn), - new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserSortPropertyChanged), new CoerceValueCallback(OnCoerceCanUserSort))); + new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, new PropertyChangedCallback(OnCanUserSortPropertyChanged), new CoerceValueCallback(OnCoerceCanUserSort))); /// /// The property which determines whether the datagrid can be sorted upon this column or not @@ -1118,7 +1120,7 @@ private static void OnNotifySortPropertyChanged(DependencyObject d, DependencyPr "IsAutoGenerated", typeof(bool), typeof(DataGridColumn), - new FrameworkPropertyMetadata(false)); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); /// /// The DependencyProperty for the IsAutoGenerated Property @@ -1234,7 +1236,7 @@ internal static DataGridColumn CreateDefaultColumn(ItemPropertyInfo itemProperty "IsFrozen", typeof(bool), typeof(DataGridColumn), - new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnNotifyFrozenPropertyChanged), new CoerceValueCallback(OnCoerceIsFrozen))); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnNotifyFrozenPropertyChanged), new CoerceValueCallback(OnCoerceIsFrozen))); /// /// The DependencyProperty for the IsFrozen Property @@ -1294,7 +1296,8 @@ private static object OnCoerceIsFrozen(DependencyObject d, object baseValue) /// The DependencyProperty that represents the CanUserReorder property. /// public static readonly DependencyProperty CanUserReorderProperty = - DependencyProperty.Register("CanUserReorder", typeof(bool), typeof(DataGridColumn), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnPropertyChanged), new CoerceValueCallback(OnCoerceCanUserReorder))); + DependencyProperty.Register("CanUserReorder", typeof(bool), typeof(DataGridColumn), + new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, new PropertyChangedCallback(OnNotifyColumnPropertyChanged), new CoerceValueCallback(OnCoerceCanUserReorder))); /// /// The property which determines if column header can be dragged or not @@ -1453,7 +1456,8 @@ internal void BeginEdit(InputEventArgs e, bool handled) /// Dependency property for CanUserResize /// public static readonly DependencyProperty CanUserResizeProperty = - DependencyProperty.Register("CanUserResize", typeof(bool), typeof(DataGridColumn), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnHeaderPropertyChanged), new CoerceValueCallback(OnCoerceCanUserResize))); + DependencyProperty.Register("CanUserResize", typeof(bool), typeof(DataGridColumn), + new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, new PropertyChangedCallback(OnNotifyColumnHeaderPropertyChanged), new CoerceValueCallback(OnCoerceCanUserResize))); /// /// Property which indicates if an end user can resize the column or not diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridComboBoxColumn.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridComboBoxColumn.cs index be9024b3bc7..a77f29fc36f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridComboBoxColumn.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridComboBoxColumn.cs @@ -5,6 +5,7 @@ using System.Collections; using System.Windows.Data; using System.Windows.Input; +using MS.Internal.KnownBoxes; namespace System.Windows.Controls { @@ -29,7 +30,7 @@ internal class TextBlockComboBox : ComboBox static TextBlockComboBox() { DefaultStyleKeyProperty.OverrideMetadata(typeof(TextBlockComboBox), new FrameworkPropertyMetadata(DataGridComboBoxColumn.TextBlockComboBoxStyleKey)); - KeyboardNavigation.IsTabStopProperty.OverrideMetadata(typeof(TextBlockComboBox), new FrameworkPropertyMetadata(false)); + KeyboardNavigation.IsTabStopProperty.OverrideMetadata(typeof(TextBlockComboBox), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); } } diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRow.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRow.cs index 7393e0f736b..4fd99823ccd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRow.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRow.cs @@ -11,6 +11,7 @@ using System.Windows.Data; using System.Windows.Threading; using MS.Internal; +using MS.Internal.KnownBoxes; namespace System.Windows.Controls { @@ -96,12 +97,12 @@ static DataGridRow() VisibilityProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnCoerceVisibility)); DefaultStyleKeyProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(typeof(DataGridRow))); ItemsPanelProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(new ItemsPanelTemplate(new FrameworkElementFactory(typeof(DataGridCellsPanel))))); - FocusableProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(false)); + FocusableProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); BackgroundProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowPropertyChanged, OnCoerceBackground)); BindingGroupProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(OnNotifyRowPropertyChanged)); // Set SnapsToDevicePixels to true so that this element can draw grid lines. The metadata options are so that the property value doesn't inherit down the tree from here. - SnapsToDevicePixelsProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsArrange)); + SnapsToDevicePixelsProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.AffectsArrange)); IsMouseOverPropertyKey.OverrideMetadata(typeof(DataGridRow), new UIPropertyMetadata(new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); VirtualizingPanel.ShouldCacheContainerSizeProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(null, new CoerceValueCallback(OnCoerceShouldCacheContainerSize))); AutomationProperties.IsOffscreenBehaviorProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(IsOffscreenBehavior.FromClip)); @@ -1048,7 +1049,7 @@ public bool IsSelected /// public static readonly DependencyProperty IsSelectedProperty = Selector.IsSelectedProperty.AddOwner( typeof(DataGridRow), - new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault | FrameworkPropertyMetadataOptions.Journal, new PropertyChangedCallback(OnIsSelectedChanged))); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault | FrameworkPropertyMetadataOptions.Journal, new PropertyChangedCallback(OnIsSelectedChanged))); private static void OnIsSelectedChanged(object sender, DependencyPropertyChangedEventArgs e) { @@ -1193,7 +1194,8 @@ public bool IsEditing } private static readonly DependencyPropertyKey IsEditingPropertyKey = - DependencyProperty.RegisterReadOnly("IsEditing", typeof(bool), typeof(DataGridRow), new FrameworkPropertyMetadata(false, OnNotifyRowAndRowHeaderPropertyChanged)); + DependencyProperty.RegisterReadOnly("IsEditing", typeof(bool), typeof(DataGridRow), + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, OnNotifyRowAndRowHeaderPropertyChanged)); /// /// The DependencyProperty for IsEditing. @@ -1256,7 +1258,7 @@ public bool IsNewItem /// Using a DependencyProperty as the backing store for IsNewItem. This enables animation, styling, binding, etc... /// internal static readonly DependencyPropertyKey IsNewItemPropertyKey = - DependencyProperty.RegisterReadOnly("IsNewItem", typeof(bool), typeof(DataGridRow), new FrameworkPropertyMetadata(false)); + DependencyProperty.RegisterReadOnly("IsNewItem", typeof(bool), typeof(DataGridRow), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); /// /// DependencyProperty for IsNewItem property. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DatePicker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DatePicker.cs index 1632c66a63a..5b8e1a138a8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DatePicker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DatePicker.cs @@ -84,7 +84,7 @@ static DatePicker() DefaultStyleKeyProperty.OverrideMetadata(typeof(DatePicker), new FrameworkPropertyMetadata(typeof(DatePicker))); EventManager.RegisterClassHandler(typeof(DatePicker), UIElement.GotFocusEvent, new RoutedEventHandler(OnGotFocus)); KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(DatePicker), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); - KeyboardNavigation.IsTabStopProperty.OverrideMetadata(typeof(DatePicker), new FrameworkPropertyMetadata(false)); + KeyboardNavigation.IsTabStopProperty.OverrideMetadata(typeof(DatePicker), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); IsEnabledProperty.OverrideMetadata(typeof(DatePicker), new UIPropertyMetadata(new PropertyChangedCallback(OnIsEnabledChanged))); LanguageProperty.OverrideMetadata(typeof(DatePicker), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnLanguageChanged))); @@ -308,7 +308,7 @@ public bool IsDropDownOpen "IsDropDownOpen", typeof(bool), typeof(DatePicker), - new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnIsDropDownOpenChanged, OnCoerceIsDropDownOpen)); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnIsDropDownOpenChanged, OnCoerceIsDropDownOpen)); private static object OnCoerceIsDropDownOpen(DependencyObject d, object baseValue) { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DockPanel.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DockPanel.cs index d930ed230ff..0b71b206f4e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DockPanel.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DockPanel.cs @@ -155,7 +155,7 @@ public bool LastChildFill "LastChildFill", typeof(bool), typeof(DockPanel), - new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsArrange)); + new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.AffectsArrange)); /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentScrollViewer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentScrollViewer.cs index edd31ba527f..4b11becbf1e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentScrollViewer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentScrollViewer.cs @@ -19,7 +19,6 @@ using MS.Internal.Commands; // CommandHelpers using MS.Internal.Controls; // EmptyEnumerator using MS.Internal.Documents; // FindToolBar -using MS.Internal.KnownBoxes; // BooleanBoxes using MS.Internal.AppModel; // IJournalState namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Frame.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Frame.cs index 098fef626b6..d693c03b9b4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Frame.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Frame.cs @@ -19,10 +19,8 @@ using MS.Internal; using MS.Internal.AppModel; using MS.Internal.Utility; -using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; - namespace System.Windows.Navigation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Grid.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Grid.cs index 5556ca6377e..43f4798bd99 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Grid.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Grid.cs @@ -3468,7 +3468,7 @@ private enum Flags typeof(bool), typeof(Grid), new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, new PropertyChangedCallback(DefinitionBase.OnIsSharedSizeScopePropertyChanged))); #endregion Properties diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridSplitter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridSplitter.cs index 7cf0018758f..a830763aa31 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridSplitter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridSplitter.cs @@ -1,14 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.Collections; using System.Windows.Controls.Primitives; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Automation.Peers; -using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridView.cs index 5934f866041..29e6f5b43eb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridView.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridView.cs @@ -1,14 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.ComponentModel; // DesignerSerializationVisibility using System.Windows.Automation.Peers; using System.Windows.Markup; using MS.Internal; // Helper -using MS.Internal.KnownBoxes; - namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnHeader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnHeader.cs index c9ddd69f057..9afece04980 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnHeader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnHeader.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.ComponentModel; using System.Windows.Automation.Peers; // AutomationPeer using System.Windows.Controls.Primitives; // ButtonBase @@ -9,8 +8,6 @@ using System.Windows.Media; // VisualBrush using MS.Internal; // DoubleUtil -using MS.Internal.KnownBoxes; // BooleanBoxes - namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GroupBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GroupBox.cs index 87d93e11ee5..08fbbc8bb91 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GroupBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GroupBox.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // @@ -20,8 +20,8 @@ public class GroupBox : HeaderedContentControl static GroupBox() { - FocusableProperty.OverrideMetadata(typeof(GroupBox), new FrameworkPropertyMetadata(false)); - IsTabStopProperty.OverrideMetadata(typeof(GroupBox), new FrameworkPropertyMetadata(false)); + FocusableProperty.OverrideMetadata(typeof(GroupBox), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); + IsTabStopProperty.OverrideMetadata(typeof(GroupBox), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); DefaultStyleKeyProperty.OverrideMetadata(typeof(GroupBox), new FrameworkPropertyMetadata(typeof(GroupBox))); EventManager.RegisterClassHandler(typeof(GroupBox), AccessKeyManager.AccessKeyPressedEvent, new AccessKeyPressedEventHandler(OnAccessKeyPressed)); diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GroupItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GroupItem.cs index ab411bd10dd..d1b51de7cad 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GroupItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GroupItem.cs @@ -7,10 +7,10 @@ // Specs: Data Styling.mht // -using System.Windows.Media; +using System.Windows.Automation; using System.Windows.Controls.Primitives; +using System.Windows.Media; using MS.Internal; -using System.Windows.Automation; namespace System.Windows.Controls { @@ -25,7 +25,7 @@ static GroupItem() _dType = DependencyObjectType.FromSystemTypeInternal(typeof(GroupItem)); // GroupItems should not be focusable by default - FocusableProperty.OverrideMetadata(typeof(GroupItem), new FrameworkPropertyMetadata(false)); + FocusableProperty.OverrideMetadata(typeof(GroupItem), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); AutomationProperties.IsOffscreenBehaviorProperty.OverrideMetadata(typeof(GroupItem), new FrameworkPropertyMetadata(IsOffscreenBehavior.FromClip)); } diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemCollection.cs index 6fe6fc9ab4d..0a504cc467a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemCollection.cs @@ -8,7 +8,6 @@ // model tree -- design.doc // - using System.Collections; using System.Collections.ObjectModel; using System.Collections.Specialized; @@ -16,10 +15,8 @@ using System.Windows.Data; // for CollectionContainer using MS.Internal.Controls; using MS.Internal.Data; // for IndexedEnumerable -using MS.Internal.KnownBoxes; // for BooleanBoxes using MS.Internal.Utility; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListBox.cs index c2732784c58..ddd601db599 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListBox.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using MS.Internal; using System.Collections; using System.ComponentModel; @@ -11,7 +10,6 @@ using System.Windows.Input; using System.Windows.Automation.Peers; using MS.Internal.Commands; // CommandHelpers -using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListBoxItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListBoxItem.cs index 7e7ac09b675..ddb96453c23 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListBoxItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListBoxItem.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - -using MS.Internal.KnownBoxes; using System.ComponentModel; using System.Windows.Threading; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MediaElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MediaElement.cs index 2e1be44d484..3f41c56c5fe 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MediaElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MediaElement.cs @@ -10,6 +10,7 @@ using System.Windows.Media; using System.Windows.Markup; using MS.Internal.Telemetry.PresentationFramework; +using MS.Internal.KnownBoxes; namespace System.Windows.Controls { @@ -170,7 +171,7 @@ public static readonly DependencyProperty ScrubbingEnabledProperty typeof(bool), typeof(MediaElement), new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.None, new PropertyChangedCallback(ScrubbingEnabledPropertyChanged))); diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Menu.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Menu.cs index 47d665ba4d7..f6593bc978c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Menu.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Menu.cs @@ -1,9 +1,6 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - -using MS.Internal.KnownBoxes; - #if OLD_AUTOMATION using System.Windows.Automation.Provider; #endif @@ -46,7 +43,7 @@ static Menu() _dType = DependencyObjectType.FromSystemTypeInternal(typeof(Menu)); ItemsPanelProperty.OverrideMetadata(typeof(Menu), new FrameworkPropertyMetadata(GetDefaultPanel())); - IsTabStopProperty.OverrideMetadata(typeof(Menu), new FrameworkPropertyMetadata(false)); + IsTabStopProperty.OverrideMetadata(typeof(Menu), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(Menu), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(Menu), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MenuItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MenuItem.cs index bbf02cef700..32ccafc026e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MenuItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MenuItem.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - -using MS.Internal.KnownBoxes; using System.Windows.Threading; using System.Globalization; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PasswordBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PasswordBox.cs index 83e86f3fd78..87501c178af 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PasswordBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PasswordBox.cs @@ -9,7 +9,6 @@ using System.Windows.Input; using System.Windows.Navigation; using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; using System.Windows.Controls.Primitives; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PopupControlService.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PopupControlService.cs index cb76325d478..dd6304b4f79 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PopupControlService.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PopupControlService.cs @@ -1,9 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Win32; using System.Windows.Controls.Primitives; using System.Windows.Data; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarButton.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarButton.cs index 5ec472b382b..f1ea1f5177f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarButton.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarButton.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. @@ -35,7 +35,7 @@ public CalendarButton() "HasSelectedDays", typeof(bool), typeof(CalendarButton), - new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnVisualStatePropertyChanged))); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnVisualStatePropertyChanged))); /// /// Dependency property field for HasSelectedDays property @@ -59,7 +59,7 @@ public bool HasSelectedDays "IsInactive", typeof(bool), typeof(CalendarButton), - new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnVisualStatePropertyChanged))); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnVisualStatePropertyChanged))); /// /// Dependency property field for IsInactive property diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarDayButton.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarDayButton.cs index a65ecc5e968..556a7c64140 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarDayButton.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarDayButton.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. @@ -44,7 +44,7 @@ public CalendarDayButton() "IsToday", typeof(bool), typeof(CalendarDayButton), - new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnVisualStatePropertyChanged))); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnVisualStatePropertyChanged))); /// /// Dependency property field for IsToday property @@ -67,7 +67,7 @@ public bool IsToday "IsSelected", typeof(bool), typeof(CalendarDayButton), - new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnVisualStatePropertyChanged))); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnVisualStatePropertyChanged))); /// /// Dependency property field for IsSelected property @@ -90,7 +90,7 @@ public bool IsSelected "IsInactive", typeof(bool), typeof(CalendarDayButton), - new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnVisualStatePropertyChanged))); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnVisualStatePropertyChanged))); /// /// Dependency property field for IsActive property @@ -113,7 +113,7 @@ public bool IsInactive "IsBlackedOut", typeof(bool), typeof(CalendarDayButton), - new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnVisualStatePropertyChanged))); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnVisualStatePropertyChanged))); /// /// Dependency property field for IsBlackedOut property @@ -136,7 +136,7 @@ public bool IsBlackedOut "IsHighlighted", typeof(bool), typeof(CalendarDayButton), - new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnVisualStatePropertyChanged))); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnVisualStatePropertyChanged))); /// /// Dependency property field for IsHighlighted property diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarItem.cs index aade72ebb1e..4716aece6bd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarItem.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.Globalization; using System.Windows.Data; using System.Windows.Input; @@ -56,7 +55,7 @@ public sealed partial class CalendarItem : Control static CalendarItem() { DefaultStyleKeyProperty.OverrideMetadata(typeof(CalendarItem), new FrameworkPropertyMetadata(typeof(CalendarItem))); - FocusableProperty.OverrideMetadata(typeof(CalendarItem), new FrameworkPropertyMetadata(false)); + FocusableProperty.OverrideMetadata(typeof(CalendarItem), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(CalendarItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(CalendarItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained)); diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridCellsPresenter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridCellsPresenter.cs index ee5a864cbfe..82a9fefa705 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridCellsPresenter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridCellsPresenter.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.Collections.ObjectModel; using System.Collections.Specialized; using System.Windows.Media; @@ -31,14 +30,14 @@ static DataGridCellsPresenter() { DefaultStyleKeyProperty.OverrideMetadata(typeof(DataGridCellsPresenter), new FrameworkPropertyMetadata(typeof(DataGridCellsPresenter))); ItemsPanelProperty.OverrideMetadata(typeof(DataGridCellsPresenter), new FrameworkPropertyMetadata(new ItemsPanelTemplate(new FrameworkElementFactory(typeof(DataGridCellsPanel))))); - FocusableProperty.OverrideMetadata(typeof(DataGridCellsPresenter), new FrameworkPropertyMetadata(false)); + FocusableProperty.OverrideMetadata(typeof(DataGridCellsPresenter), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); HeightProperty.OverrideMetadata(typeof(DataGridCellsPresenter), new FrameworkPropertyMetadata(OnNotifyHeightPropertyChanged, OnCoerceHeight)); MinHeightProperty.OverrideMetadata(typeof(DataGridCellsPresenter), new FrameworkPropertyMetadata(OnNotifyHeightPropertyChanged, OnCoerceMinHeight)); VirtualizingPanel.IsVirtualizingProperty.OverrideMetadata( typeof(DataGridCellsPresenter), - new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnIsVirtualizingPropertyChanged), new CoerceValueCallback(OnCoerceIsVirtualizingProperty))); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnIsVirtualizingPropertyChanged), new CoerceValueCallback(OnCoerceIsVirtualizingProperty))); VirtualizingPanel.VirtualizationModeProperty.OverrideMetadata(typeof(DataGridCellsPresenter), new FrameworkPropertyMetadata(VirtualizationMode.Recycling)); } diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridColumnHeader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridColumnHeader.cs index a15ddd5caa9..9a0ccdb43cc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridColumnHeader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridColumnHeader.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.ComponentModel; using System.Windows.Automation.Peers; using System.Windows.Input; @@ -32,7 +31,7 @@ static DataGridColumnHeader() StyleProperty.OverrideMetadata(typeof(DataGridColumnHeader), new FrameworkPropertyMetadata(null, OnNotifyPropertyChanged, OnCoerceStyle)); HeightProperty.OverrideMetadata(typeof(DataGridColumnHeader), new FrameworkPropertyMetadata(OnNotifyPropertyChanged, OnCoerceHeight)); - FocusableProperty.OverrideMetadata(typeof(DataGridColumnHeader), new FrameworkPropertyMetadata(false)); + FocusableProperty.OverrideMetadata(typeof(DataGridColumnHeader), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); ClipProperty.OverrideMetadata(typeof(DataGridColumnHeader), new FrameworkPropertyMetadata(null, OnCoerceClip)); AutomationProperties.IsOffscreenBehaviorProperty.OverrideMetadata(typeof(DataGridColumnHeader), new FrameworkPropertyMetadata(IsOffscreenBehavior.FromClip)); } @@ -696,7 +695,7 @@ private static object OnCoerceStyle(DependencyObject d, object baseValue) "CanUserSort", typeof(bool), typeof(DataGridColumnHeader), - new FrameworkPropertyMetadata(true, null, new CoerceValueCallback(OnCoerceCanUserSort))); + new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, null, new CoerceValueCallback(OnCoerceCanUserSort))); /// /// The DependencyProperty for the CanUserSort property. @@ -849,7 +848,7 @@ internal void Invoke() "IsFrozen", typeof(bool), typeof(DataGridColumnHeader), - new FrameworkPropertyMetadata(false, null, new CoerceValueCallback(OnCoerceIsFrozen))); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, null, new CoerceValueCallback(OnCoerceIsFrozen))); /// /// The DependencyProperty for the IsFrozen property. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridColumnHeadersPresenter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridColumnHeadersPresenter.cs index 33049b3d5e7..115810ae7ed 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridColumnHeadersPresenter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridColumnHeadersPresenter.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - - using System.Windows.Input; using System.Windows.Media; using MS.Internal; @@ -32,14 +30,14 @@ static DataGridColumnHeadersPresenter() Type ownerType = typeof(DataGridColumnHeadersPresenter); DefaultStyleKeyProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType)); - FocusableProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(false)); + FocusableProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); FrameworkElementFactory factory = new FrameworkElementFactory(typeof(DataGridCellsPanel)); ItemsPanelProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(new ItemsPanelTemplate(factory))); VirtualizingPanel.IsVirtualizingProperty.OverrideMetadata( ownerType, - new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnIsVirtualizingPropertyChanged), new CoerceValueCallback(OnCoerceIsVirtualizingProperty))); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnIsVirtualizingPropertyChanged), new CoerceValueCallback(OnCoerceIsVirtualizingProperty))); VirtualizingPanel.VirtualizationModeProperty.OverrideMetadata( ownerType, diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridRowHeader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridRowHeader.cs index f8474e88609..2594c0e9b80 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridRowHeader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridRowHeader.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.ComponentModel; using System.Windows.Input; using System.Windows.Media; @@ -123,7 +122,7 @@ static DataGridRowHeader() WidthProperty.OverrideMetadata(typeof(DataGridRowHeader), new FrameworkPropertyMetadata(OnNotifyPropertyChanged, OnCoerceWidth)); ClickModeProperty.OverrideMetadata(typeof(DataGridRowHeader), new FrameworkPropertyMetadata(ClickMode.Press)); - FocusableProperty.OverrideMetadata(typeof(DataGridRowHeader), new FrameworkPropertyMetadata(false)); + FocusableProperty.OverrideMetadata(typeof(DataGridRowHeader), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); AutomationProperties.IsOffscreenBehaviorProperty.OverrideMetadata(typeof(DataGridRowHeader), new FrameworkPropertyMetadata(IsOffscreenBehavior.FromClip)); } @@ -523,7 +522,7 @@ public bool IsRowSelected "IsRowSelected", typeof(bool), typeof(DataGridRowHeader), - new FrameworkPropertyMetadata(false, OnVisualStatePropertyChanged, new CoerceValueCallback(OnCoerceIsRowSelected))); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, OnVisualStatePropertyChanged, new CoerceValueCallback(OnCoerceIsRowSelected))); /// /// The DependencyProperty for the IsRowSelected property. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentViewerBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentViewerBase.cs index db92ed257ca..822b8e7bf10 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentViewerBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentViewerBase.cs @@ -11,7 +11,6 @@ using System.Windows.Media; // Visual using System.Windows.Markup; // IAddChild, XamlSerializerUtil, ContentPropertyAttribute using MS.Internal; // Invariant, DoubleUtil -using MS.Internal.KnownBoxes; // BooleanBoxes using MS.Internal.Annotations.Anchoring;// DataIdProcessor, FixedPageProcessor, ... using MS.Internal.Documents; // MultiPageTextView using MS.Internal.Controls; // EmptyEnumerator @@ -49,7 +48,7 @@ static DocumentViewerBase() EventManager.RegisterClassHandler(typeof(DocumentViewerBase), RequestBringIntoViewEvent, new RequestBringIntoViewEventHandler(HandleRequestBringIntoView)); // Default value for AutoWordSelection is false. We want true. - TextBoxBase.AutoWordSelectionProperty.OverrideMetadata(typeof(DocumentViewerBase), new FrameworkPropertyMetadata(true)); + TextBoxBase.AutoWordSelectionProperty.OverrideMetadata(typeof(DocumentViewerBase), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); } /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/MenuBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/MenuBase.cs index 6453135b8e0..f01142cb1da 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/MenuBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/MenuBase.cs @@ -1,8 +1,6 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - -using MS.Internal.KnownBoxes; using System.Collections.Specialized; using System.Windows.Automation.Peers; using System.Windows.Threading; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Popup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Popup.cs index 1502b91c824..67069f8ee9c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Popup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Popup.cs @@ -81,8 +81,7 @@ public Popup() : base() "TreatMousePlacementAsBottom", typeof(bool), typeof(Popup), - new FrameworkPropertyMetadata( - false)); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); /// /// Tooltips should show on Keyboard focus. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ScrollBar.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ScrollBar.cs index a47ea99f2f2..cb2368a22ed 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ScrollBar.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ScrollBar.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.ComponentModel; using System.Windows.Automation; using System.Windows.Automation.Peers; @@ -10,7 +9,6 @@ using MS.Internal; using MS.Internal.Commands; -using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; namespace System.Windows.Controls.Primitives diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/StatusBar.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/StatusBar.cs index 6d7bb9a308a..6518f16380e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/StatusBar.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/StatusBar.cs @@ -1,9 +1,7 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.Windows.Automation.Peers; -using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; namespace System.Windows.Controls.Primitives diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/StatusBarItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/StatusBarItem.cs index 0950c844209..9858de1438d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/StatusBarItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/StatusBarItem.cs @@ -1,11 +1,8 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.Windows.Automation; using System.Windows.Automation.Peers; -using MS.Internal.KnownBoxes; - namespace System.Windows.Controls.Primitives { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TextBoxBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TextBoxBase.cs index 5a45e28241a..2f78127ebb8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TextBoxBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TextBoxBase.cs @@ -426,7 +426,7 @@ public IDisposable DeclareChangeBlock() TextEditor.IsReadOnlyProperty.AddOwner( typeof(TextBoxBase), new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.Inherits, new PropertyChangedCallback(OnVisualStatePropertyChanged))); @@ -446,7 +446,7 @@ public bool IsReadOnly DependencyProperty.Register("IsReadOnlyCaretVisible", typeof(bool), typeof(TextBoxBase), - new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnIsReadOnlyCaretVisiblePropertyChanged))); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnIsReadOnlyCaretVisiblePropertyChanged))); /// /// Whether or not the caret is visible when the textbox is read-only. @@ -490,7 +490,7 @@ public bool AcceptsReturn "AcceptsTab", // Property name typeof(bool), // Property type typeof(TextBoxBase), // Property owner - new FrameworkPropertyMetadata(false /*default value*/)); + new FrameworkPropertyMetadata(defaultValue: BooleanBoxes.FalseBox)); /// /// Whether or not the Textbox accepts tabs @@ -682,7 +682,7 @@ public bool CanRedo /// public static readonly DependencyProperty IsUndoEnabledProperty = DependencyProperty.Register("IsUndoEnabled", typeof(bool), typeof(TextBoxBase), - new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnIsUndoEnabledChanged))); + new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, new PropertyChangedCallback(OnIsUndoEnabledChanged))); /// /// Enables or disabled undo support on this Control. @@ -754,7 +754,7 @@ public int UndoLimit "AutoWordSelection", // Property name typeof(bool), // Property type typeof(TextBoxBase), // Property owner - new FrameworkPropertyMetadata(false)); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); /// /// Whether or not dragging with the mouse automatically selects words @@ -866,7 +866,7 @@ public Brush CaretBrush "IsSelectionActive", typeof(bool), typeof(TextBoxBase), - new FrameworkPropertyMetadata(MS.Internal.KnownBoxes.BooleanBoxes.FalseBox)); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); public static readonly DependencyProperty IsSelectionActiveProperty = IsSelectionActivePropertyKey.DependencyProperty; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TickBar.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TickBar.cs index 1c978039bc5..863343aa6c4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TickBar.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TickBar.cs @@ -1,15 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.ComponentModel; using MS.Internal; using System.Windows.Data; using System.Windows.Media; -using MS.Internal.KnownBoxes; - - -// For typeconverter namespace System.Windows.Controls.Primitives { @@ -56,7 +51,7 @@ public class TickBar : FrameworkElement static TickBar() { - SnapsToDevicePixelsProperty.OverrideMetadata(typeof(TickBar), new FrameworkPropertyMetadata(true)); + SnapsToDevicePixelsProperty.OverrideMetadata(typeof(TickBar), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); } /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToggleButton.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToggleButton.cs index 3bc93a56e27..f9ef22bed99 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToggleButton.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToggleButton.cs @@ -1,14 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.ComponentModel; using System.Windows.Threading; using System.Windows.Automation.Peers; -using MS.Internal.KnownBoxes; - namespace System.Windows.Controls.Primitives { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToolBarPanel.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToolBarPanel.cs index ee51e3368e1..bd91d932adc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToolBarPanel.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToolBarPanel.cs @@ -1,9 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; using System.Collections.Specialized; using System.Windows.Data; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Track.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Track.cs index 78ee3e596a4..344fa13ac44 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Track.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Track.cs @@ -6,13 +6,11 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.PresentationFramework; using System.Windows.Data; using System.Windows.Media; using System.Windows.Input; - namespace System.Windows.Controls.Primitives { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ProgressBar.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ProgressBar.cs index e1d45ee9ef4..19c6840191c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ProgressBar.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ProgressBar.cs @@ -14,9 +14,6 @@ using MS.Internal; using MS.Internal.Telemetry.PresentationFramework; - -using MS.Internal.KnownBoxes; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RichTextBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RichTextBox.cs index c6a71979a6f..76577b4db85 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RichTextBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RichTextBox.cs @@ -1,16 +1,16 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using MS.Internal; -using MS.Internal.Documents; -using System.Windows.Input; // KeyboardNavigation +using System.Collections; // IEnumerator using System.ComponentModel; // DefaultValue +using System.Windows.Automation.Peers; // AutomationPattern using System.Windows.Controls.Primitives; // TextBoxBase using System.Windows.Documents; // TextEditor -using System.Windows.Automation.Peers; // AutomationPattern +using System.Windows.Input; // KeyboardNavigation using System.Windows.Markup; // IAddChild -using System.Collections; // IEnumerator +using MS.Internal; using MS.Internal.Controls; // EmptyEnumerator +using MS.Internal.Documents; using MS.Internal.Telemetry.PresentationFramework; // @@ -43,10 +43,10 @@ static RichTextBox() _dType = DependencyObjectType.FromSystemTypeInternal(typeof(RichTextBox)); // Default value for AcceptsReturn is true - KeyboardNavigation.AcceptsReturnProperty.OverrideMetadata(typeof(RichTextBox), new FrameworkPropertyMetadata(true)); + KeyboardNavigation.AcceptsReturnProperty.OverrideMetadata(typeof(RichTextBox), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); // Default value for AutoWordSelection is false. We want true. - TextBoxBase.AutoWordSelectionProperty.OverrideMetadata(typeof(RichTextBox), new FrameworkPropertyMetadata(true)); + TextBoxBase.AutoWordSelectionProperty.OverrideMetadata(typeof(RichTextBox), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); if (!FrameworkAppContextSwitches.UseAdornerForTextboxSelectionRendering) { @@ -497,7 +497,7 @@ firstInline is Run && /// public static readonly DependencyProperty IsDocumentEnabledProperty = DependencyProperty.Register("IsDocumentEnabled", typeof(bool), typeof(RichTextBox), - new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnIsDocumentEnabledChanged))); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnIsDocumentEnabledChanged))); /// /// Enables or disables TextElements and UIElements contained in this RichTextBox's FlowDocument. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ScrollViewer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ScrollViewer.cs index e3e1e8e7744..be1937503b0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ScrollViewer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ScrollViewer.cs @@ -1,11 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using MS.Internal; using MS.Internal.Commands; using MS.Internal.Documents; -using MS.Internal.KnownBoxes; using MS.Internal.PresentationFramework; using MS.Internal.Telemetry.PresentationFramework; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Separator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Separator.cs index afdcb323dbe..9a27a0cc094 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Separator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Separator.cs @@ -1,8 +1,6 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - -using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SinglePageViewer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SinglePageViewer.cs index 3d65364a361..35a2aa598b0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SinglePageViewer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SinglePageViewer.cs @@ -19,7 +19,6 @@ using MS.Internal; // Invariant, DoubleUtil using MS.Internal.Commands; // CommandHelpers using MS.Internal.Documents; // FindToolBar -using MS.Internal.KnownBoxes; // BooleanBoxes using MS.Internal.AppModel; // IJournalState namespace System.Windows.Controls @@ -299,7 +298,7 @@ public bool IsInactiveSelectionHighlightEnabled "CanIncreaseZoom", typeof(bool), typeof(FlowDocumentPageViewer), - new FrameworkPropertyMetadata(true)); + new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); /// /// @@ -314,7 +313,7 @@ public bool IsInactiveSelectionHighlightEnabled "CanDecreaseZoom", typeof(bool), typeof(FlowDocumentPageViewer), - new FrameworkPropertyMetadata(true)); + new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Slider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Slider.cs index 37d8a9a05bb..ed57f9ac9a1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Slider.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Slider.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.ComponentModel; using System.Globalization; using System.Windows.Automation.Peers; @@ -13,10 +12,6 @@ using MS.Internal.Commands; using MS.Internal.Telemetry.PresentationFramework; - -// For typeconverter - - namespace System.Windows.Controls { /// @@ -269,7 +264,7 @@ public Orientation Orientation /// public static readonly DependencyProperty IsDirectionReversedProperty = DependencyProperty.Register("IsDirectionReversed", typeof(bool), typeof(Slider), - new FrameworkPropertyMetadata(false)); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); /// /// Get/Set IsDirectionReversed property @@ -426,7 +421,7 @@ private static bool IsValidAutoToolTipPrecision(object o) /// public static readonly DependencyProperty IsSnapToTickEnabledProperty = DependencyProperty.Register("IsSnapToTickEnabled", typeof(bool), typeof(Slider), - new FrameworkPropertyMetadata(false)); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); /// /// When 'true', Slider will automatically move the Thumb (and/or change current value) to the closest TickMark. @@ -549,7 +544,7 @@ public DoubleCollection Ticks /// public static readonly DependencyProperty IsSelectionRangeEnabledProperty = DependencyProperty.Register("IsSelectionRangeEnabled", typeof(bool), typeof(Slider), - new FrameworkPropertyMetadata(false)); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); /// /// Enable or disable selection support on Slider @@ -713,7 +708,7 @@ protected override void OnMaximumChanged(double oldMaximum, double newMaximum) /// public static readonly DependencyProperty IsMoveToPointEnabledProperty = DependencyProperty.Register("IsMoveToPointEnabled", typeof(bool), typeof(Slider), - new FrameworkPropertyMetadata(false)); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); /// /// Enable or disable Move-To-Point support on Slider. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/StickyNote.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/StickyNote.cs index a40db2d6f4f..4e28efcf99e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/StickyNote.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/StickyNote.cs @@ -7,7 +7,6 @@ using MS.Internal.Annotations.Component; using MS.Internal.Controls.StickyNote; using MS.Internal.Commands; -using MS.Internal.KnownBoxes; using System.Windows.Threading; using System.Windows.Data; using System.Windows.Annotations; @@ -98,7 +97,7 @@ static StickyNoteControl() new ComponentResourceKey(typeof(PresentationUIStyleResources), "StickyNoteControlStyleKey"))); KeyboardNavigation.TabNavigationProperty.OverrideMetadata(owner, new FrameworkPropertyMetadata(KeyboardNavigationMode.Local)); - Control.IsTabStopProperty.OverrideMetadata(owner, new FrameworkPropertyMetadata(false)); + Control.IsTabStopProperty.OverrideMetadata(owner, new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); // Override the changed callback of the Foreground Property. ForegroundProperty.OverrideMetadata( diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TabItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TabItem.cs index c71ddb34e91..c0d6fc7cbaa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TabItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TabItem.cs @@ -1,9 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using MS.Internal; -using MS.Internal.KnownBoxes; using System.ComponentModel; using System.Windows.Automation; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextSearch.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextSearch.cs index 153699dfb76..6307d2483ca 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextSearch.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextSearch.cs @@ -2,14 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System.Windows.Threading; +using System.Globalization; using System.Windows.Data; using System.Windows.Input; -using MS.Win32; -using System.Globalization; using System.Windows.Markup; // for XmlLanguage +using System.Windows.Threading; using MS.Internal; using MS.Internal.Data; +using MS.Win32; namespace System.Windows.Controls { @@ -142,7 +142,7 @@ public static string GetText(DependencyObject element) /// private static readonly DependencyProperty IsActiveProperty = DependencyProperty.RegisterAttached("IsActive", typeof(bool), typeof(TextSearch), - new FrameworkPropertyMetadata(false)); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); #endregion diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolBar.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolBar.cs index aae72cf59a3..a8ca79507da 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolBar.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolBar.cs @@ -10,7 +10,6 @@ using System.Windows.Input; using System.Windows.Media; -using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolBarTray.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolBarTray.cs index cbb784ce52c..1c8f1786dc4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolBarTray.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolBarTray.cs @@ -4,7 +4,6 @@ using MS.Internal; using MS.Internal.Controls; -using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; using System.Collections; using System.Collections.ObjectModel; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTip.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTip.cs index db56c0138be..d050e140cab 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTip.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTip.cs @@ -6,7 +6,6 @@ using System.Windows.Threading; using System.Windows.Automation.Peers; using System.Windows.Controls.Primitives; -using MS.Internal.KnownBoxes; namespace System.Windows.Controls { @@ -24,7 +23,7 @@ static ToolTip() DefaultStyleKeyProperty.OverrideMetadata(typeof(ToolTip), new FrameworkPropertyMetadata(typeof(ToolTip))); _dType = DependencyObjectType.FromSystemTypeInternal(typeof(ToolTip)); BackgroundProperty.OverrideMetadata(typeof(ToolTip), new FrameworkPropertyMetadata(SystemColors.InfoBrush)); - FocusableProperty.OverrideMetadata(typeof(ToolTip), new FrameworkPropertyMetadata(false)); + FocusableProperty.OverrideMetadata(typeof(ToolTip), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); } /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTipService.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTipService.cs index 03b3c2e0da9..2460ee201cf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTipService.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTipService.cs @@ -1,9 +1,8 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Windows.Controls.Primitives; -using MS.Internal.KnownBoxes; using System.ComponentModel; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TreeView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TreeView.cs index 6007c0edc19..0749206b747 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TreeView.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TreeView.cs @@ -11,7 +11,6 @@ using System.Windows.Media; using MS.Internal; using MS.Internal.Data; -using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TreeViewItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TreeViewItem.cs index ee8fecbb1be..c3749036a31 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TreeViewItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TreeViewItem.cs @@ -11,7 +11,6 @@ using System.Windows.Media; using System.Windows.Threading; using MS.Internal; -using MS.Internal.KnownBoxes; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/UserControl.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/UserControl.cs index 6331aef8523..cdfb59e2cf2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/UserControl.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/UserControl.cs @@ -1,10 +1,9 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Windows.Automation.Peers; using System.Windows.Input; -using MS.Internal.KnownBoxes; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Validation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Validation.cs index e169b64b5aa..593cc903678 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Validation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Validation.cs @@ -15,7 +15,6 @@ using System.Windows.Threading; using MS.Internal.Controls; -using MS.Internal.KnownBoxes; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ViewPort3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ViewPort3D.cs index 15ac9da8110..bd26aa641da 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ViewPort3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ViewPort3D.cs @@ -8,7 +8,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using System.ComponentModel; using System.Windows.Automation.Peers; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizingPanel.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizingPanel.cs index 78f6702044c..20f9052b7d4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizingPanel.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizingPanel.cs @@ -5,7 +5,7 @@ using MS.Internal; using System.Collections.Specialized; using System.Windows.Media; -using System.Windows.Controls.Primitives; // IItemContainerGenerator +using System.Windows.Controls.Primitives; // IItemContainerGenerator namespace System.Windows.Controls { @@ -52,7 +52,7 @@ protected virtual double GetItemOffsetCore(UIElement child) /// public static readonly DependencyProperty IsVirtualizingProperty = DependencyProperty.RegisterAttached("IsVirtualizing", typeof(bool), typeof(VirtualizingPanel), - new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsMeasure, new PropertyChangedCallback(OnVirtualizationPropertyChanged))); + new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.AffectsMeasure, new PropertyChangedCallback(OnVirtualizationPropertyChanged))); /// /// Retrieves the value for . @@ -86,7 +86,8 @@ public static void SetIsVirtualizing(DependencyObject element, bool value) /// public static readonly DependencyProperty VirtualizationModeProperty = DependencyProperty.RegisterAttached("VirtualizationMode", typeof(VirtualizationMode), typeof(VirtualizingPanel), - new FrameworkPropertyMetadata(VirtualizationMode.Standard, FrameworkPropertyMetadataOptions.AffectsMeasure, new PropertyChangedCallback(OnVirtualizationPropertyChanged))); + new FrameworkPropertyMetadata(VirtualizationMode.Standard, FrameworkPropertyMetadataOptions.AffectsMeasure, + new PropertyChangedCallback(OnVirtualizationPropertyChanged))); /// /// Retrieves the value for . @@ -118,7 +119,10 @@ public static void SetVirtualizationMode(DependencyObject element, Virtualizatio /// public static readonly DependencyProperty IsVirtualizingWhenGroupingProperty = DependencyProperty.RegisterAttached("IsVirtualizingWhenGrouping", typeof(bool), typeof(VirtualizingPanel), - new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsMeasure, new PropertyChangedCallback(OnVirtualizationPropertyChanged), new CoerceValueCallback(CoerceIsVirtualizingWhenGrouping))); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, + FrameworkPropertyMetadataOptions.AffectsMeasure, + new PropertyChangedCallback(OnVirtualizationPropertyChanged), + new CoerceValueCallback(CoerceIsVirtualizingWhenGrouping))); /// /// Retrieves the value for . @@ -250,7 +254,7 @@ public static void SetCacheLengthUnit(DependencyObject element, VirtualizationCa /// public static readonly DependencyProperty IsContainerVirtualizableProperty = DependencyProperty.RegisterAttached("IsContainerVirtualizable", typeof(bool), typeof(VirtualizingPanel), - new FrameworkPropertyMetadata(true)); + new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); /// /// Retrieves the value for . @@ -282,7 +286,7 @@ public static void SetIsContainerVirtualizable(DependencyObject element, bool va /// internal static readonly DependencyProperty ShouldCacheContainerSizeProperty = DependencyProperty.RegisterAttached("ShouldCacheContainerSize", typeof(bool), typeof(VirtualizingPanel), - new FrameworkPropertyMetadata(true)); + new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); /// /// Retrieves the value for . diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionViewSource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionViewSource.cs index 02052fd9fdf..c3367ae6e87 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionViewSource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionViewSource.cs @@ -15,7 +15,7 @@ using System.ComponentModel; // ICollectionView using System.Windows.Markup; // XmlLanguage using MS.Internal; // Invariant.Assert -using MS.Internal.Data; // DataBindEngine +using MS.Internal.Data; // DataBindEngine namespace System.Windows.Data { @@ -242,7 +242,7 @@ private static readonly DependencyPropertyKey CanChangeLiveSortingPropertyKey "CanChangeLiveSorting", typeof(bool), typeof(CollectionViewSource), - new FrameworkPropertyMetadata((bool)false)); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); /// /// The DependencyProperty for the CanChangeLiveSorting property. @@ -274,7 +274,7 @@ public static readonly DependencyProperty IsLiveSortingRequestedProperty "IsLiveSortingRequested", typeof(bool), typeof(CollectionViewSource), - new FrameworkPropertyMetadata((bool)false, + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnIsLiveSortingRequestedChanged))); /// @@ -365,7 +365,7 @@ private static readonly DependencyPropertyKey CanChangeLiveFilteringPropertyKey "CanChangeLiveFiltering", typeof(bool), typeof(CollectionViewSource), - new FrameworkPropertyMetadata((bool)false)); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); /// /// The DependencyProperty for the CanChangeLiveFiltering property. @@ -397,7 +397,7 @@ public static readonly DependencyProperty IsLiveFilteringRequestedProperty "IsLiveFilteringRequested", typeof(bool), typeof(CollectionViewSource), - new FrameworkPropertyMetadata((bool)false, + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnIsLiveFilteringRequestedChanged))); /// @@ -486,7 +486,7 @@ private static readonly DependencyPropertyKey CanChangeLiveGroupingPropertyKey "CanChangeLiveGrouping", typeof(bool), typeof(CollectionViewSource), - new FrameworkPropertyMetadata((bool)false)); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); /// /// The DependencyProperty for the CanChangeLiveGrouping property. @@ -518,7 +518,7 @@ public static readonly DependencyProperty IsLiveGroupingRequestedProperty "IsLiveGroupingRequested", typeof(bool), typeof(CollectionViewSource), - new FrameworkPropertyMetadata((bool)false, + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnIsLiveGroupingRequestedChanged))); /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Block.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Block.cs index ec6c479f784..885aff422c0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Block.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Block.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // @@ -80,7 +80,7 @@ public Block PreviousBlock typeof(bool), typeof(Block), new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/CompositionAdorner.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/CompositionAdorner.cs index 1af73f5253d..f047bf7102d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/CompositionAdorner.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/CompositionAdorner.cs @@ -27,7 +27,7 @@ internal class CompositionAdorner : Adorner static CompositionAdorner() { // Provide a new default value for the composition adorner so that it is not hit-testable. - IsEnabledProperty.OverrideMetadata(typeof(CompositionAdorner), new FrameworkPropertyMetadata(false)); + IsEnabledProperty.OverrideMetadata(typeof(CompositionAdorner), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); } /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequence.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequence.cs index 458e07ee678..41c5aacdbed 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequence.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequence.cs @@ -31,7 +31,7 @@ public class FixedDocumentSequence : FrameworkContentElement, IDocumentPaginator static FixedDocumentSequence() { - FocusableProperty.OverrideMetadata(typeof(FixedDocumentSequence), new FrameworkPropertyMetadata(true)); + FocusableProperty.OverrideMetadata(typeof(FixedDocumentSequence), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); } /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedDocument.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedDocument.cs index db0dc1931ee..01906541d62 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedDocument.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedDocument.cs @@ -49,7 +49,7 @@ public class FixedDocument : FrameworkContentElement, IDocumentPaginatorSource, static FixedDocument() { - FocusableProperty.OverrideMetadata(typeof(FixedDocument), new FrameworkPropertyMetadata(true)); + FocusableProperty.OverrideMetadata(typeof(FixedDocument), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); NavigationService.NavigationServiceProperty.OverrideMetadata( typeof(FixedDocument), new FrameworkPropertyMetadata(new PropertyChangedCallback(FixedHyperLink.OnNavigationServiceChanged))); diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FlowDocument.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FlowDocument.cs index 1e5fa1a1cf4..062a22bc9c6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FlowDocument.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FlowDocument.cs @@ -87,7 +87,7 @@ static FlowDocument() } DefaultStyleKeyProperty.OverrideMetadata(_typeofThis, new FrameworkPropertyMetadata(_typeofThis)); - FocusableProperty.OverrideMetadata(_typeofThis, new FrameworkPropertyMetadata(true)); + FocusableProperty.OverrideMetadata(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); ControlsTraceLogger.AddControl(TelemetryControls.FlowDocument); } diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Glyphs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Glyphs.cs index c79f00f4f12..b0813e7694f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Glyphs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Glyphs.cs @@ -920,8 +920,9 @@ public StyleSimulations StyleSimulations /// Sideways property /// public static readonly DependencyProperty IsSidewaysProperty = - DependencyProperty.Register( "IsSideways", typeof(bool), typeof(Glyphs), - new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender, new PropertyChangedCallback(GlyphRunPropertyChanged))); + DependencyProperty.Register("IsSideways", typeof(bool), typeof(Glyphs), + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender, + new PropertyChangedCallback(GlyphRunPropertyChanged))); /// /// Specifies whether to rotate characters/glyphs 90 degrees anti-clockwise diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Hyperlink.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Hyperlink.cs index 632f988f3a2..0839653085c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Hyperlink.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Hyperlink.cs @@ -13,9 +13,8 @@ using System.Windows.Markup; using System.Windows.Navigation; using System.Windows.Shapes; -using MS.Internal.AppModel; using System.Windows.Threading; - +using MS.Internal.AppModel; using CommonDependencyProperty = MS.Internal.PresentationFramework.CommonDependencyPropertyAttribute; namespace System.Windows.Documents @@ -41,7 +40,7 @@ static Hyperlink() { DefaultStyleKeyProperty.OverrideMetadata(typeof(Hyperlink), new FrameworkPropertyMetadata(typeof(Hyperlink))); _dType = DependencyObjectType.FromSystemTypeInternal(typeof(Hyperlink)); - FocusableProperty.OverrideMetadata(typeof(Hyperlink), new FrameworkPropertyMetadata(true)); + FocusableProperty.OverrideMetadata(typeof(Hyperlink), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); EventManager.RegisterClassHandler(typeof(Hyperlink), Mouse.QueryCursorEvent, new QueryCursorEventHandler(OnQueryCursor)); } @@ -865,7 +864,7 @@ private static bool ShouldPreventUriSpoofing "IsHyperlinkPressed", typeof(bool), typeof(Hyperlink), - new FrameworkPropertyMetadata(false)); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); internal static void OnNavigateUriChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Paragraph.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Paragraph.cs index 7445696f881..c4429b56037 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Paragraph.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Paragraph.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // @@ -10,7 +10,7 @@ using MS.Internal; using MS.Internal.PtsHost.UnsafeNativeMethods; // PTS restrictions -namespace System.Windows.Documents +namespace System.Windows.Documents { /// /// Paragraph element @@ -174,7 +174,7 @@ public int MinWidowLines typeof(bool), typeof(Paragraph), new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsParentMeasure)); /// @@ -197,7 +197,7 @@ public bool KeepWithNext typeof(bool), typeof(Paragraph), new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsParentMeasure)); /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditor.cs index 39c74424ba9..6bd4acc0275 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditor.cs @@ -765,7 +765,7 @@ internal void OnLostFocus(RoutedEventArgs e) #region Dependency Properties /// - /// IsReadOnly attached property speficies if the content within a scope + /// IsReadOnly attached property specifies if the content within a scope /// of some FrameworkElement is editable. /// internal static readonly DependencyProperty IsReadOnlyProperty = @@ -774,7 +774,7 @@ internal void OnLostFocus(RoutedEventArgs e) typeof(bool), typeof(TextEditor), new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.Inherits, new PropertyChangedCallback(OnIsReadOnlyChanged))); @@ -793,7 +793,7 @@ internal void OnLostFocus(RoutedEventArgs e) "AllowOvertype", typeof(bool), typeof(TextEditor), - new FrameworkPropertyMetadata(true)); + new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); /// /// TextEditor.PageHeight attached property for pageup/down diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Typography.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Typography.cs index 1f5cd53f986..e54910fafaa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Typography.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Typography.cs @@ -1482,7 +1482,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - true, + BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// ContextualLigatures Property @@ -1492,7 +1492,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - true, + BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// DiscretionaryLigatures Property @@ -1502,7 +1502,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// HistoricalLigatures Property @@ -1512,7 +1512,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// AnnotationAlternates Property @@ -1532,7 +1532,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - true, + BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// HistoricalForms Property @@ -1542,7 +1542,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// Kerning Property @@ -1552,7 +1552,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - true, + BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// CapitalSpacing Property @@ -1562,7 +1562,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// CaseSensitiveForms Property @@ -1572,7 +1572,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// StylisticSet1 Property @@ -1582,7 +1582,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// StylisticSet2 Property @@ -1592,7 +1592,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// StylisticSet3 Property @@ -1602,7 +1602,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// StylisticSet4 Property @@ -1612,7 +1612,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// StylisticSet5 Property @@ -1622,7 +1622,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// StylisticSet6 Property @@ -1632,7 +1632,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// StylisticSet7 Property @@ -1642,7 +1642,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// StylisticSet8 Property @@ -1652,7 +1652,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// StylisticSet9 Property @@ -1662,7 +1662,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// StylisticSet10 Property @@ -1672,7 +1672,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// StylisticSet11 Property @@ -1682,7 +1682,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// StylisticSet12 Property @@ -1692,7 +1692,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// StylisticSet13 Property @@ -1702,7 +1702,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// StylisticSet14 Property @@ -1712,7 +1712,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// StylisticSet15 Property @@ -1722,7 +1722,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// StylisticSet16 Property @@ -1732,7 +1732,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// StylisticSet17 Property @@ -1742,7 +1742,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// StylisticSet18 Property @@ -1752,7 +1752,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// StylisticSet19 Property @@ -1762,7 +1762,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// StylisticSet20 Property @@ -1772,7 +1772,7 @@ public static int GetStylisticAlternates(DependencyObject element) _typeofBool, _typeofThis, new FrameworkPropertyMetadata( - false, + BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)); /// Fraction Property diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkContentElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkContentElement.cs index 7561251cdab..68771ff4d4f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkContentElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkContentElement.cs @@ -14,7 +14,6 @@ using System.Windows.Markup; using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.PresentationFramework; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkElement.cs index fd657bb3c9d..b6a2dd69e69 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkElement.cs @@ -18,7 +18,6 @@ using System.Windows.Controls; using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.PresentationFramework; // SafeSecurityHelper using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Input/KeyboardNavigation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Input/KeyboardNavigation.cs index 14f172610d9..b3c6bf76dd1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Input/KeyboardNavigation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Input/KeyboardNavigation.cs @@ -11,7 +11,6 @@ using System.Windows.Media; using System.Windows.Media.Media3D; using MS.Internal; -using MS.Internal.KnownBoxes; using CommonDependencyProperty = MS.Internal.PresentationFramework.CommonDependencyPropertyAttribute; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/ActiveXHost.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/ActiveXHost.cs index 12eb13ff9d8..441d80890d6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/ActiveXHost.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/ActiveXHost.cs @@ -66,9 +66,9 @@ static ActiveXHost() // register for access keys EventManager.RegisterClassHandler(typeof(ActiveXHost), AccessKeyManager.AccessKeyPressedEvent, new AccessKeyPressedEventHandler(OnAccessKeyPressed)); - Control.IsTabStopProperty.OverrideMetadata(typeof(ActiveXHost), new FrameworkPropertyMetadata(true)); + Control.IsTabStopProperty.OverrideMetadata(typeof(ActiveXHost), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); - FocusableProperty.OverrideMetadata(typeof(ActiveXHost), new FrameworkPropertyMetadata(true)); + FocusableProperty.OverrideMetadata(typeof(ActiveXHost), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); EventManager.RegisterClassHandler(typeof(ActiveXHost), Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGotFocus)); EventManager.RegisterClassHandler(typeof(ActiveXHost), Keyboard.LostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnLostFocus)); diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/HwndHost.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/HwndHost.cs index 573088939cc..0179d0fd7f8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/HwndHost.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/HwndHost.cs @@ -23,7 +23,7 @@ public abstract class HwndHost : FrameworkElement, IDisposable, IWin32Window, IK { static HwndHost() { - FocusableProperty.OverrideMetadata(typeof(HwndHost), new FrameworkPropertyMetadata(true)); + FocusableProperty.OverrideMetadata(typeof(HwndHost), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); HwndHost.DpiChangedEvent = Window.DpiChangedEvent.AddOwner(typeof(HwndHost)); } diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/JournalEntry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/JournalEntry.cs index aa75c430559..265a6a94e2f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/JournalEntry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/JournalEntry.cs @@ -228,7 +228,7 @@ public string Name /// DependencyProperty for KeepAlive property. /// public static readonly DependencyProperty KeepAliveProperty = - DependencyProperty.RegisterAttached("KeepAlive", typeof(bool), typeof(JournalEntry), new PropertyMetadata(false)); + DependencyProperty.RegisterAttached("KeepAlive", typeof(bool), typeof(JournalEntry), new PropertyMetadata(BooleanBoxes.FalseBox)); #endregion diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/ThumbButtonInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/ThumbButtonInfo.cs index 371efa8ab37..d3bf43d4f1e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/ThumbButtonInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/ThumbButtonInfo.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. @@ -36,7 +36,7 @@ public Visibility Visibility "DismissWhenClicked", typeof(bool), typeof(ThumbButtonInfo), - new PropertyMetadata(false)); + new PropertyMetadata(BooleanBoxes.FalseBox)); /// /// Gets or sets the DismissWhenClicked property. This dependency property @@ -69,7 +69,7 @@ public ImageSource ImageSource "IsBackgroundVisible", typeof(bool), typeof(ThumbButtonInfo), - new PropertyMetadata(true)); + new PropertyMetadata(BooleanBoxes.TrueBox)); /// /// Gets or sets the IsBackgroundVisible property. This dependency property @@ -149,7 +149,7 @@ public bool IsEnabled "IsInteractive", typeof(bool), typeof(ThumbButtonInfo), - new PropertyMetadata(true)); + new PropertyMetadata(BooleanBoxes.TrueBox)); /// /// Gets or sets the IsInteractive property. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/WindowChrome.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/WindowChrome.cs index e13f377b7b4..2159640d12b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/WindowChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/WindowChrome.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - - using System.Diagnostics.CodeAnalysis; using System.Windows.Data; using Standard; @@ -105,7 +103,7 @@ public static void SetWindowChrome(Window window, WindowChrome chrome) "IsHitTestVisibleInChrome", typeof(bool), typeof(WindowChrome), - new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.Inherits)); + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.Inherits)); [SuppressMessage("Microsoft.Design", "CA1062:Validate arguments of public methods", MessageId = "0")] [SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")] @@ -229,7 +227,7 @@ public Thickness GlassFrameThickness "UseAeroCaptionButtons", typeof(bool), typeof(WindowChrome), - new FrameworkPropertyMetadata(true)); + new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); public bool UseAeroCaptionButtons { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Window.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Window.cs index 1def9e0f2b9..c9970e47c8a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Window.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Window.cs @@ -16,7 +16,6 @@ using MS.Internal; using MS.Internal.AppModel; using MS.Internal.Interop; -using MS.Internal.KnownBoxes; using MS.Win32; using System.Diagnostics.CodeAnalysis; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/ZoomComboBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/ZoomComboBox.cs index 3f4a710dbea..80c2c9d8f52 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/ZoomComboBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/ZoomComboBox.cs @@ -10,6 +10,7 @@ using System.Windows.Controls; using System.Windows.Input; // For event args using System.Windows.TrustUI; // For string resources +using MS.Internal.KnownBoxes; namespace MS.Internal.Documents.Application { @@ -32,7 +33,7 @@ static ZoomComboBox() { // Override this ComboBox property so that any zoom values that are found in the TextBox // (either from user input, or databinding) are not looked up in the drop down list. - IsTextSearchEnabledProperty.OverrideMetadata(typeof(ZoomComboBox), new FrameworkPropertyMetadata(false)); + IsTextSearchEnabledProperty.OverrideMetadata(typeof(ZoomComboBox), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); } /// diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/BulletChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/BulletChrome.cs index 7148a3a33d8..f0ac5808e97 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/BulletChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/BulletChrome.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Windows.Controls; +using System; using System.Windows; +using System.Windows.Controls; using System.Windows.Media; using System.Windows.Media.Animation; - -using System; +using MS.Internal.KnownBoxes; namespace Microsoft.Windows.Themes { @@ -22,7 +22,8 @@ public sealed class BulletChrome : FrameworkElement static BulletChrome() { - IsEnabledProperty.OverrideMetadata(typeof(BulletChrome), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsRender, new PropertyChangedCallback(OnIsEnabledChanged))); + IsEnabledProperty.OverrideMetadata(typeof(BulletChrome), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, + FrameworkPropertyMetadataOptions.AffectsRender, new PropertyChangedCallback(OnIsEnabledChanged))); } private static void OnIsEnabledChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ButtonChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ButtonChrome.cs index 33b65f0f0f9..70c0713710d 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ButtonChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ButtonChrome.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Windows.Controls; +using System; using System.Windows; +using System.Windows.Controls; using System.Windows.Media; using System.Windows.Media.Animation; - -using System; +using MS.Internal.KnownBoxes; namespace Microsoft.Windows.Themes { @@ -22,7 +22,7 @@ public sealed class ButtonChrome : Decorator static ButtonChrome() { - IsEnabledProperty.OverrideMetadata(typeof(ButtonChrome), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsRender)); + IsEnabledProperty.OverrideMetadata(typeof(ButtonChrome), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.AffectsRender)); } /// diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ListBoxChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ListBoxChrome.cs index c86b5506873..901e60160db 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ListBoxChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ListBoxChrome.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Windows.Controls; +using System; using System.Windows; +using System.Windows.Controls; using System.Windows.Media; using System.Windows.Media.Animation; - -using System; +using MS.Internal.KnownBoxes; namespace Microsoft.Windows.Themes { @@ -22,7 +22,7 @@ public sealed class ListBoxChrome : Decorator static ListBoxChrome() { - IsEnabledProperty.OverrideMetadata(typeof(ListBoxChrome), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsRender)); + IsEnabledProperty.OverrideMetadata(typeof(ListBoxChrome), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.AffectsRender)); } /// diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/BulletChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/BulletChrome.cs index 7148a3a33d8..f0ac5808e97 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/BulletChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/BulletChrome.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Windows.Controls; +using System; using System.Windows; +using System.Windows.Controls; using System.Windows.Media; using System.Windows.Media.Animation; - -using System; +using MS.Internal.KnownBoxes; namespace Microsoft.Windows.Themes { @@ -22,7 +22,8 @@ public sealed class BulletChrome : FrameworkElement static BulletChrome() { - IsEnabledProperty.OverrideMetadata(typeof(BulletChrome), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsRender, new PropertyChangedCallback(OnIsEnabledChanged))); + IsEnabledProperty.OverrideMetadata(typeof(BulletChrome), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, + FrameworkPropertyMetadataOptions.AffectsRender, new PropertyChangedCallback(OnIsEnabledChanged))); } private static void OnIsEnabledChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ButtonChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ButtonChrome.cs index 33b65f0f0f9..70c0713710d 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ButtonChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ButtonChrome.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Windows.Controls; +using System; using System.Windows; +using System.Windows.Controls; using System.Windows.Media; using System.Windows.Media.Animation; - -using System; +using MS.Internal.KnownBoxes; namespace Microsoft.Windows.Themes { @@ -22,7 +22,7 @@ public sealed class ButtonChrome : Decorator static ButtonChrome() { - IsEnabledProperty.OverrideMetadata(typeof(ButtonChrome), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsRender)); + IsEnabledProperty.OverrideMetadata(typeof(ButtonChrome), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.AffectsRender)); } /// diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ListBoxChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ListBoxChrome.cs index c86b5506873..901e60160db 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ListBoxChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ListBoxChrome.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Windows.Controls; +using System; using System.Windows; +using System.Windows.Controls; using System.Windows.Media; using System.Windows.Media.Animation; - -using System; +using MS.Internal.KnownBoxes; namespace Microsoft.Windows.Themes { @@ -22,7 +22,7 @@ public sealed class ListBoxChrome : Decorator static ListBoxChrome() { - IsEnabledProperty.OverrideMetadata(typeof(ListBoxChrome), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsRender)); + IsEnabledProperty.OverrideMetadata(typeof(ListBoxChrome), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.AffectsRender)); } /// diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.AeroLite/Microsoft/Windows/Themes/ScrollChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.AeroLite/Microsoft/Windows/Themes/ScrollChrome.cs index ddcd6825966..b452c2e4601 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.AeroLite/Microsoft/Windows/Themes/ScrollChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.AeroLite/Microsoft/Windows/Themes/ScrollChrome.cs @@ -5,6 +5,7 @@ using System.Windows; using System.Windows.Media; +using MS.Internal.KnownBoxes; namespace Microsoft.Windows.Themes { @@ -20,7 +21,7 @@ public sealed class ScrollChrome : FrameworkElement static ScrollChrome() { - IsEnabledProperty.OverrideMetadata(typeof(ScrollChrome), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsRender)); + IsEnabledProperty.OverrideMetadata(typeof(ScrollChrome), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.AffectsRender)); } /// diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Classic/Microsoft/Windows/Themes/ClassicBorderDecorator.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Classic/Microsoft/Windows/Themes/ClassicBorderDecorator.cs index ce140f9e347..59e3e123184 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Classic/Microsoft/Windows/Themes/ClassicBorderDecorator.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Classic/Microsoft/Windows/Themes/ClassicBorderDecorator.cs @@ -1,13 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Windows.Controls; +using System; using System.Diagnostics; - using System.Windows; +using System.Windows.Controls; using System.Windows.Media; - -using System; +using MS.Internal.KnownBoxes; namespace Microsoft.Windows.Themes { @@ -123,7 +122,7 @@ public sealed class ClassicBorderDecorator : Decorator static ClassicBorderDecorator() { - SnapsToDevicePixelsProperty.OverrideMetadata(typeof(ClassicBorderDecorator), new FrameworkPropertyMetadata(true)); + SnapsToDevicePixelsProperty.OverrideMetadata(typeof(ClassicBorderDecorator), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); } /// /// Instantiates a new instance of a ClassicBorderDecorator diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/ButtonChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/ButtonChrome.cs index 16ff6ffb828..dabfdd30840 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/ButtonChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/ButtonChrome.cs @@ -1,13 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Windows.Shapes; -using System.Windows.Controls; - +using System; using System.Windows; +using System.Windows.Controls; using System.Windows.Media; - -using System; +using System.Windows.Shapes; +using MS.Internal.KnownBoxes; namespace Microsoft.Windows.Themes { @@ -145,7 +144,7 @@ public sealed class ButtonChrome : Decorator static ButtonChrome() { - IsEnabledProperty.OverrideMetadata(typeof(ButtonChrome), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsRender)); + IsEnabledProperty.OverrideMetadata(typeof(ButtonChrome), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.AffectsRender)); } /// diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/ScrollChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/ScrollChrome.cs index bf0ee90d15a..de192e513b7 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/ScrollChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/ScrollChrome.cs @@ -2,10 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Windows.Controls; - using System.Windows; +using System.Windows.Controls; using System.Windows.Media; +using MS.Internal.KnownBoxes; namespace Microsoft.Windows.Themes { @@ -21,7 +21,7 @@ public sealed class ScrollChrome : FrameworkElement static ScrollChrome() { - IsEnabledProperty.OverrideMetadata(typeof(ScrollChrome), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsRender)); + IsEnabledProperty.OverrideMetadata(typeof(ScrollChrome), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.AffectsRender)); } /// diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/ButtonChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/ButtonChrome.cs index 51fff85f179..91ef131c365 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/ButtonChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/ButtonChrome.cs @@ -1,13 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Windows.Shapes; -using System.Windows.Controls; - +using System; using System.Windows; +using System.Windows.Controls; using System.Windows.Media; - -using System; +using System.Windows.Shapes; +using MS.Internal.KnownBoxes; namespace Microsoft.Windows.Themes { @@ -135,7 +134,7 @@ public sealed class ButtonChrome : Decorator static ButtonChrome() { - IsEnabledProperty.OverrideMetadata(typeof(ButtonChrome), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsRender)); + IsEnabledProperty.OverrideMetadata(typeof(ButtonChrome), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.AffectsRender)); } /// diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/ScrollChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/ScrollChrome.cs index a999ee14c8a..1a9f53ac4e8 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/ScrollChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/ScrollChrome.cs @@ -2,10 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Windows.Controls; - using System.Windows; +using System.Windows.Controls; using System.Windows.Media; +using MS.Internal.KnownBoxes; namespace Microsoft.Windows.Themes { @@ -21,7 +21,7 @@ public sealed class ScrollChrome : FrameworkElement static ScrollChrome() { - IsEnabledProperty.OverrideMetadata(typeof(ScrollChrome), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsRender)); + IsEnabledProperty.OverrideMetadata(typeof(ScrollChrome), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.AffectsRender)); } /// diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/BulletChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/BulletChrome.cs index 089b41536d2..c2d24740f6b 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/BulletChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/BulletChrome.cs @@ -1,10 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Windows; using System.Windows.Controls; using System.Windows.Media; -using System.Windows; -using System; +using MS.Internal.KnownBoxes; namespace Microsoft.Windows.Themes { @@ -15,7 +16,7 @@ public sealed class BulletChrome : FrameworkElement static BulletChrome() { - IsEnabledProperty.OverrideMetadata(typeof(BulletChrome), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsRender)); + IsEnabledProperty.OverrideMetadata(typeof(BulletChrome), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.AffectsRender)); } /// diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/DataGridHeaderBorder.cs b/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/DataGridHeaderBorder.cs index dd56db0e587..65d27aa97db 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/DataGridHeaderBorder.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/DataGridHeaderBorder.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; @@ -8,6 +8,7 @@ using System.Windows; using System.Windows.Controls; using System.Windows.Media; +using MS.Internal.KnownBoxes; namespace Microsoft.Windows.Themes { @@ -21,7 +22,7 @@ public sealed partial class DataGridHeaderBorder : Border static DataGridHeaderBorder() { // We always set this to true on these borders, so just default it to true here. - SnapsToDevicePixelsProperty.OverrideMetadata(typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(true)); + SnapsToDevicePixelsProperty.OverrideMetadata(typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); } #region Header Appearance Properties @@ -39,7 +40,8 @@ public bool IsHovered /// DependencyProperty for IsHovered. /// public static readonly DependencyProperty IsHoveredProperty = - DependencyProperty.Register("IsHovered", typeof(bool), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender)); + DependencyProperty.Register("IsHovered", typeof(bool), typeof(DataGridHeaderBorder), + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// Whether the pressed look should be applied. @@ -54,7 +56,8 @@ public bool IsPressed /// DependencyProperty for IsPressed. /// public static readonly DependencyProperty IsPressedProperty = - DependencyProperty.Register("IsPressed", typeof(bool), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.AffectsArrange)); + DependencyProperty.Register("IsPressed", typeof(bool), typeof(DataGridHeaderBorder), + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.AffectsArrange)); /// /// When false, will not apply the hover look even when IsHovered is true. @@ -69,7 +72,8 @@ public bool IsClickable /// DependencyProperty for IsClickable. /// public static readonly DependencyProperty IsClickableProperty = - DependencyProperty.Register("IsClickable", typeof(bool), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.AffectsArrange)); + DependencyProperty.Register("IsClickable", typeof(bool), typeof(DataGridHeaderBorder), + new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.AffectsArrange)); /// /// Whether to appear sorted. @@ -99,7 +103,8 @@ public bool IsSelected /// DependencyProperty for IsSelected. /// public static readonly DependencyProperty IsSelectedProperty = - DependencyProperty.Register("IsSelected", typeof(bool), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender)); + DependencyProperty.Register("IsSelected", typeof(bool), typeof(DataGridHeaderBorder), + new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// Vertical = column header diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/GlobalUsings.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/GlobalUsings.cs index f70f2824358..4b8576a36df 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/GlobalUsings.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/GlobalUsings.cs @@ -5,6 +5,8 @@ global using System.Collections.Generic; global using System.Diagnostics; +global using MS.Internal.KnownBoxes; + global using SR = MS.Internal.WindowsBase.SR; global using NativeMethodsSetLastError = MS.Internal.WindowsBase.NativeMethodsSetLastError; diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/SplashScreen.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/SplashScreen.cs index 8d8ade2183c..df93d74b81a 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/SplashScreen.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/SplashScreen.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel; @@ -10,9 +10,6 @@ using System.Runtime.InteropServices; using System.Windows.Threading; using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Win32; -using MS.Internal.WindowsBase; using Windows.Win32; using Windows.Win32.Foundation; diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/UncommonField.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/UncommonField.cs index ec0e56fb42e..0ebf5ee5e88 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/UncommonField.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/UncommonField.cs @@ -1,8 +1,7 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; -using MS.Internal.KnownBoxes; namespace System.Windows { From 902164a7323788bf0101e80f6ad41e9078d49d41 Mon Sep 17 00:00:00 2001 From: h3xds1nz Date: Sun, 6 Apr 2025 20:32:28 +0200 Subject: [PATCH 2/4] Commit MilCodeGen changes and polish things --- .../Windows/Automation/AutomationProperties.cs | 6 +++--- .../System/Windows/Generated/ContentElement.cs | 1 - .../System/Windows/Generated/UIElement.cs | 1 - .../System/Windows/Generated/UIElement3D.cs | 1 - .../System/Windows/Input/FocusManager.cs | 5 ----- .../System/Windows/Input/TouchDevice.cs | 1 - .../System/Windows/InterOp/D3DImage.cs | 1 - .../Animation/EasingQuaternionKeyFrame.cs | 7 +------ .../BooleanAnimationUsingKeyFrames.cs | 1 - .../Media/Animation/Generated/ByteAnimation.cs | 1 - .../Generated/ByteAnimationUsingKeyFrames.cs | 1 - .../Generated/CharAnimationUsingKeyFrames.cs | 1 - .../Animation/Generated/ColorAnimation.cs | 1 - .../Generated/ColorAnimationUsingKeyFrames.cs | 1 - .../Animation/Generated/DecimalAnimation.cs | 1 - .../DecimalAnimationUsingKeyFrames.cs | 1 - .../Animation/Generated/DoubleAnimation.cs | 1 - .../Generated/DoubleAnimationUsingKeyFrames.cs | 1 - .../Animation/Generated/Int16Animation.cs | 1 - .../Generated/Int16AnimationUsingKeyFrames.cs | 1 - .../Animation/Generated/Int32Animation.cs | 1 - .../Generated/Int32AnimationUsingKeyFrames.cs | 1 - .../Animation/Generated/Int64Animation.cs | 1 - .../Generated/Int64AnimationUsingKeyFrames.cs | 1 - .../Generated/MatrixAnimationUsingKeyFrames.cs | 1 - .../Generated/ObjectAnimationUsingKeyFrames.cs | 1 - .../Animation/Generated/Point3DAnimation.cs | 1 - .../Point3DAnimationUsingKeyFrames.cs | 1 - .../Animation/Generated/PointAnimation.cs | 1 - .../Generated/PointAnimationUsingKeyFrames.cs | 1 - .../Animation/Generated/QuaternionAnimation.cs | 1 - .../QuaternionAnimationUsingKeyFrames.cs | 1 - .../Media/Animation/Generated/RectAnimation.cs | 1 - .../Generated/RectAnimationUsingKeyFrames.cs | 1 - .../Animation/Generated/Rotation3DAnimation.cs | 1 - .../Rotation3DAnimationUsingKeyFrames.cs | 1 - .../Animation/Generated/SingleAnimation.cs | 1 - .../Generated/SingleAnimationUsingKeyFrames.cs | 1 - .../Media/Animation/Generated/SizeAnimation.cs | 1 - .../Generated/SizeAnimationUsingKeyFrames.cs | 1 - .../Generated/StringAnimationUsingKeyFrames.cs | 1 - .../Animation/Generated/Vector3DAnimation.cs | 1 - .../Vector3DAnimationUsingKeyFrames.cs | 1 - .../Animation/Generated/VectorAnimation.cs | 1 - .../Generated/VectorAnimationUsingKeyFrames.cs | 1 - .../Generated/BrushValueSerializer.cs | 1 - .../Generated/CacheModeValueSerializer.cs | 1 - .../DoubleCollectionValueSerializer.cs | 1 - .../Generated/GeometryValueSerializer.cs | 1 - .../Int32CollectionValueSerializer.cs | 1 - .../PathFigureCollectionValueSerializer.cs | 1 - .../PointCollectionValueSerializer.cs | 1 - .../Generated/TransformValueSerializer.cs | 1 - .../VectorCollectionValueSerializer.cs | 1 - .../Windows/Media/Generated/ArcSegment.cs | 3 +-- .../Windows/Media/Generated/BezierSegment.cs | 1 - .../Windows/Media/Generated/BitmapCache.cs | 5 ++--- .../Media/Generated/BitmapCacheBrush.cs | 3 +-- .../System/Windows/Media/Generated/Brush.cs | 3 +-- .../Windows/Media/Generated/BrushConverter.cs | 1 - .../Windows/Media/Generated/CacheMode.cs | 3 +-- .../Media/Generated/CacheModeConverter.cs | 1 - .../Media/Generated/CombinedGeometry.cs | 1 - .../Windows/Media/Generated/DashStyle.cs | 1 - .../Media/Generated/DoubleCollection.cs | 1 - .../Generated/DoubleCollectionConverter.cs | 1 - .../System/Windows/Media/Generated/Drawing.cs | 1 - .../Windows/Media/Generated/DrawingBrush.cs | 1 - .../Media/Generated/DrawingCollection.cs | 3 +-- .../Windows/Media/Generated/DrawingGroup.cs | 1 - .../Windows/Media/Generated/DrawingImage.cs | 1 - .../Windows/Media/Generated/EllipseGeometry.cs | 1 - .../Media/Generated/GeneralTransform.cs | 1 - .../Generated/GeneralTransformCollection.cs | 3 +-- .../Media/Generated/GeneralTransformGroup.cs | 1 - .../System/Windows/Media/Generated/Geometry.cs | 3 +-- .../Media/Generated/GeometryCollection.cs | 3 +-- .../Media/Generated/GeometryConverter.cs | 1 - .../Windows/Media/Generated/GeometryDrawing.cs | 1 - .../Windows/Media/Generated/GeometryGroup.cs | 1 - .../Windows/Media/Generated/GlyphRunDrawing.cs | 1 - .../Windows/Media/Generated/GradientBrush.cs | 1 - .../Media/Generated/GradientStopCollection.cs | 3 +-- .../Windows/Media/Generated/GuidelineSet.cs | 3 +-- .../Windows/Media/Generated/ImageBrush.cs | 1 - .../Windows/Media/Generated/ImageDrawing.cs | 1 - .../Windows/Media/Generated/ImageSource.cs | 1 - .../Windows/Media/Generated/Int32Collection.cs | 1 - .../Generated/Int32CollectionConverter.cs | 1 - .../Windows/Media/Generated/LineGeometry.cs | 1 - .../Windows/Media/Generated/LineSegment.cs | 1 - .../Media/Generated/LinearGradientBrush.cs | 1 - .../Windows/Media/Generated/MatrixTransform.cs | 1 - .../Windows/Media/Generated/MediaTimeline.cs | 1 - .../Windows/Media/Generated/PathFigure.cs | 5 ++--- .../Media/Generated/PathFigureCollection.cs | 1 - .../Generated/PathFigureCollectionConverter.cs | 1 - .../Windows/Media/Generated/PathGeometry.cs | 1 - .../Windows/Media/Generated/PathSegment.cs | 5 ++--- .../Media/Generated/PathSegmentCollection.cs | 3 +-- .../System/Windows/Media/Generated/Pen.cs | 1 - .../Windows/Media/Generated/PointCollection.cs | 1 - .../Generated/PointCollectionConverter.cs | 1 - .../Media/Generated/PolyBezierSegment.cs | 1 - .../Windows/Media/Generated/PolyLineSegment.cs | 1 - .../Generated/PolyQuadraticBezierSegment.cs | 1 - .../Media/Generated/QuadraticBezierSegment.cs | 1 - .../Media/Generated/RadialGradientBrush.cs | 1 - .../Media/Generated/RectangleGeometry.cs | 1 - .../Windows/Media/Generated/RotateTransform.cs | 1 - .../Windows/Media/Generated/ScaleTransform.cs | 1 - .../Windows/Media/Generated/SkewTransform.cs | 1 - .../Windows/Media/Generated/SolidColorBrush.cs | 1 - .../Windows/Media/Generated/StreamGeometry.cs | 1 - .../Windows/Media/Generated/TextEffect.cs | 1 - .../Media/Generated/TextEffectCollection.cs | 3 +-- .../Windows/Media/Generated/TileBrush.cs | 1 - .../Windows/Media/Generated/Transform.cs | 3 +-- .../Media/Generated/TransformCollection.cs | 3 +-- .../Media/Generated/TransformConverter.cs | 1 - .../Windows/Media/Generated/TransformGroup.cs | 1 - .../Media/Generated/TranslateTransform.cs | 1 - .../Media/Generated/VectorCollection.cs | 1 - .../Generated/VectorCollectionConverter.cs | 1 - .../Windows/Media/Generated/VideoDrawing.cs | 1 - .../Windows/Media/Generated/VisualBrush.cs | 3 +-- .../System/Windows/Controls/DataGrid.cs | 1 - .../System/Windows/Controls/DataGridCell.cs | 4 +--- .../Windows/Controls/DataGridCheckBoxColumn.cs | 2 -- .../Windows/Controls/DataGridComboBoxColumn.cs | 2 -- .../System/Windows/Controls/DataGridRow.cs | 2 -- .../System/Windows/Controls/GroupItem.cs | 4 ++-- .../System/Windows/Controls/MediaElement.cs | 1 - .../System/Windows/Controls/RichTextBox.cs | 8 ++++---- .../System/Windows/Controls/TextSearch.cs | 7 +++---- .../System/Windows/Controls/ToolTipService.cs | 1 - .../Windows/Data/CollectionViewSource.cs | 2 +- .../System/Windows/Documents/Hyperlink.cs | 3 ++- .../Animation/Generated/ThicknessAnimation.cs | 1 - .../ThicknessAnimationUsingKeyFrames.cs | 1 - .../mcg/generators/AnimationTemplate.cs | 1 - .../AnimationUsingKeyFramesTemplate.cs | 1 - .../WpfGfx/codegen/mcg/generators/Elements.cs | 1 - .../codegen/mcg/generators/ManagedResource.cs | 18 +++++++++++++++--- .../src/WpfGfx/codegen/mcg/xml/Resource.xml | 1 - 145 files changed, 53 insertions(+), 191 deletions(-) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/AutomationProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/AutomationProperties.cs index 08108b150f1..3fa5e5b73e0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/AutomationProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/AutomationProperties.cs @@ -246,7 +246,7 @@ public static string GetItemType(DependencyObject element) "IsColumnHeader", typeof(bool), typeof(AutomationProperties), - new UIPropertyMetadata(MS.Internal.KnownBoxes.BooleanBoxes.FalseBox)); + new UIPropertyMetadata(BooleanBoxes.FalseBox)); /// /// Helper for setting IsColumnHeader property on a DependencyObject. @@ -278,7 +278,7 @@ public static bool GetIsColumnHeader(DependencyObject element) "IsRowHeader", typeof(bool), typeof(AutomationProperties), - new UIPropertyMetadata(MS.Internal.KnownBoxes.BooleanBoxes.FalseBox)); + new UIPropertyMetadata(BooleanBoxes.FalseBox)); /// /// Helper for setting IsRowHeader property on a DependencyObject. @@ -310,7 +310,7 @@ public static bool GetIsRowHeader(DependencyObject element) "IsRequiredForForm", typeof(bool), typeof(AutomationProperties), - new UIPropertyMetadata(MS.Internal.KnownBoxes.BooleanBoxes.FalseBox)); + new UIPropertyMetadata(BooleanBoxes.FalseBox)); /// /// Helper for setting IsRequiredForForm property on a DependencyObject. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/ContentElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/ContentElement.cs index 6c5299aa65e..cbe55f1ec34 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/ContentElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/ContentElement.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Utility; using System.ComponentModel; using System.Windows.Input; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/UIElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/UIElement.cs index 100ff155da4..530792d87b7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/UIElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/UIElement.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Utility; using System.ComponentModel; using System.Windows.Input; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/UIElement3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/UIElement3D.cs index 59cd7efeca4..1e6f8347b7f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/UIElement3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/UIElement3D.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Utility; using System.ComponentModel; using System.Windows.Input; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/FocusManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/FocusManager.cs index 3f6e791dbd1..ad6729ba26c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/FocusManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/FocusManager.cs @@ -1,14 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// -// - using System.ComponentModel; using System.Windows.Media; using System.Windows.Media.Media3D; -using MS.Internal.KnownBoxes; - namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchDevice.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchDevice.cs index 85190d314b1..a5f48147124 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchDevice.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchDevice.cs @@ -5,7 +5,6 @@ using System.Windows.Media.Media3D; using System.Windows.Threading; using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Utility; using System.Windows.Input.Tracing; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/D3DImage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/D3DImage.cs index cc67ca22bb1..c7101a1ca71 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/D3DImage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/D3DImage.cs @@ -5,7 +5,6 @@ // An ImageSource that displays a user created D3D surface using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Win32.PresentationCore; using System.ComponentModel; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/EasingQuaternionKeyFrame.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/EasingQuaternionKeyFrame.cs index 81005662699..c91f42529fc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/EasingQuaternionKeyFrame.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/EasingQuaternionKeyFrame.cs @@ -1,11 +1,6 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// -// - -using MS.Internal.KnownBoxes; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanAnimationUsingKeyFrames.cs index 2678fad576b..6faf62389c5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanAnimationUsingKeyFrames.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Collections; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimation.cs index 9a94c45d3b7..8a916c3ca35 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimation.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Globalization; using System.Windows.Media.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimationUsingKeyFrames.cs index 4e6fff8093d..8da8bb0aba0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimationUsingKeyFrames.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Collections; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharAnimationUsingKeyFrames.cs index ed87735d039..4d1089419da 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharAnimationUsingKeyFrames.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Collections; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimation.cs index 02bd39bce19..a46cd675d40 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimation.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Globalization; using System.Windows.Media.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimationUsingKeyFrames.cs index 278458b00cd..1742bb453e3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimationUsingKeyFrames.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Collections; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimation.cs index 5ffeccf0cfe..83adfb85d45 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimation.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Globalization; using System.Windows.Media.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimationUsingKeyFrames.cs index e4c409d294a..8e6e410eccf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimationUsingKeyFrames.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Collections; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimation.cs index f3686303f01..4fcdad462a2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimation.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Globalization; using System.Windows.Media.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationUsingKeyFrames.cs index 996becb274c..6a7043e7e31 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationUsingKeyFrames.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Collections; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16Animation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16Animation.cs index d45c65ec73e..6ddcdd74822 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16Animation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16Animation.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Globalization; using System.Windows.Media.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16AnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16AnimationUsingKeyFrames.cs index a607043a8e0..8e3ff0d3d0c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16AnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16AnimationUsingKeyFrames.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Collections; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32Animation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32Animation.cs index 4a507a8560e..696ee2edbc5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32Animation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32Animation.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Globalization; using System.Windows.Media.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32AnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32AnimationUsingKeyFrames.cs index 86bf53a24f4..30070a5d3b8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32AnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32AnimationUsingKeyFrames.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Collections; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64Animation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64Animation.cs index f86324af0af..42899a27b05 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64Animation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64Animation.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Globalization; using System.Windows.Media.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64AnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64AnimationUsingKeyFrames.cs index 96e61e2c16c..85f52ee5e5a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64AnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64AnimationUsingKeyFrames.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Collections; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixAnimationUsingKeyFrames.cs index 9c9e0ed87a0..2703b3ec066 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixAnimationUsingKeyFrames.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Collections; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectAnimationUsingKeyFrames.cs index eacc9172c6a..7571347d427 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectAnimationUsingKeyFrames.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Collections; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimation.cs index b6791a86099..e68dcc2835a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimation.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Globalization; using System.Windows.Media.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimationUsingKeyFrames.cs index 3367d3b4f35..5fa554a79fa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimationUsingKeyFrames.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Collections; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimation.cs index 82558d14539..eba32c7da90 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimation.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Globalization; using System.Windows.Media.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationUsingKeyFrames.cs index c6553b24ab4..55e166187ff 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationUsingKeyFrames.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Collections; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimation.cs index ce4d5333aeb..d157ddffcd1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimation.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Globalization; using System.Windows.Media.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimationUsingKeyFrames.cs index cfe368798c4..f07ab11308d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimationUsingKeyFrames.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Collections; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimation.cs index 28168201391..29f97c8c4fc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimation.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Globalization; using System.Windows.Media.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationUsingKeyFrames.cs index b28bfdf0565..052c9019d30 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationUsingKeyFrames.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Collections; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimation.cs index dcbf6577880..f1faea301d2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimation.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Globalization; using System.Windows.Media.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimationUsingKeyFrames.cs index edfb1496f61..e950fb9f140 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimationUsingKeyFrames.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Collections; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimation.cs index 6d69877fcf5..595678254a8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimation.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Globalization; using System.Windows.Media.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimationUsingKeyFrames.cs index c5a495b878d..9df3b8a145a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimationUsingKeyFrames.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Collections; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimation.cs index 659eb2d3103..5b97f3ab508 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimation.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Globalization; using System.Windows.Media.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationUsingKeyFrames.cs index 126af79e5d5..c48fc2e04ae 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationUsingKeyFrames.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Collections; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringAnimationUsingKeyFrames.cs index e44ade12de7..d89680ee014 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringAnimationUsingKeyFrames.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Collections; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimation.cs index e81eae00043..347b4582a4b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimation.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Globalization; using System.Windows.Media.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimationUsingKeyFrames.cs index 30fd9472409..b71f65bf12c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimationUsingKeyFrames.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Collections; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimation.cs index cdb4c38f1e1..3b70905b6cb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimation.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Globalization; using System.Windows.Media.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimationUsingKeyFrames.cs index b51dfa90bf2..d3c39a4fa52 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimationUsingKeyFrames.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Collections; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/BrushValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/BrushValueSerializer.cs index 292ae97fa6d..53e91cab596 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/BrushValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/BrushValueSerializer.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/CacheModeValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/CacheModeValueSerializer.cs index c86692f4ddd..81463d4f71f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/CacheModeValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/CacheModeValueSerializer.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/DoubleCollectionValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/DoubleCollectionValueSerializer.cs index d7ca1977409..d4691bbaf5b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/DoubleCollectionValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/DoubleCollectionValueSerializer.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/GeometryValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/GeometryValueSerializer.cs index dfd94c7d4bd..30dd91fbab3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/GeometryValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/GeometryValueSerializer.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/Int32CollectionValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/Int32CollectionValueSerializer.cs index 1014421cf19..d58f58053ff 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/Int32CollectionValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/Int32CollectionValueSerializer.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/PathFigureCollectionValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/PathFigureCollectionValueSerializer.cs index 8094f92980b..49073ab3fc8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/PathFigureCollectionValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/PathFigureCollectionValueSerializer.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/PointCollectionValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/PointCollectionValueSerializer.cs index 4256a9d505d..6f7382780ec 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/PointCollectionValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/PointCollectionValueSerializer.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/TransformValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/TransformValueSerializer.cs index 4b9b2bb581a..7d998af35b4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/TransformValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/TransformValueSerializer.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/VectorCollectionValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/VectorCollectionValueSerializer.cs index 6d3870440d3..be3e6a212ef 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/VectorCollectionValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/VectorCollectionValueSerializer.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ArcSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ArcSegment.cs index f53d8a67b24..26b5b9ecef3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ArcSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ArcSegment.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; @@ -300,7 +299,7 @@ static ArcSegment() RegisterProperty("IsLargeArc", typeof(bool), typeofThis, - false, + BooleanBoxes.FalseBox, null, null, /* isIndependentlyAnimated = */ false, diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BezierSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BezierSegment.cs index 02b5db3dfc9..adb81af380e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BezierSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BezierSegment.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapCache.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapCache.cs index fe5d2e41e11..7504917c614 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapCache.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapCache.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; @@ -334,7 +333,7 @@ static BitmapCache() RegisterProperty("SnapsToDevicePixels", typeof(bool), typeofThis, - false, + BooleanBoxes.FalseBox, new PropertyChangedCallback(SnapsToDevicePixelsPropertyChanged), null, /* isIndependentlyAnimated = */ false, @@ -343,7 +342,7 @@ static BitmapCache() RegisterProperty("EnableClearType", typeof(bool), typeofThis, - false, + BooleanBoxes.FalseBox, new PropertyChangedCallback(EnableClearTypePropertyChanged), null, /* isIndependentlyAnimated = */ false, diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapCacheBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapCacheBrush.cs index fee503c3cff..445d35a93a4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapCacheBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapCacheBrush.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Brush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Brush.cs index 42f6e588839..babde49c1e3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Brush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Brush.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BrushConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BrushConverter.cs index 1d316e3e469..be12fbaacc7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BrushConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BrushConverter.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CacheMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CacheMode.cs index f9e2e33db06..cbec4985bf3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CacheMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CacheMode.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CacheModeConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CacheModeConverter.cs index c64bed7b1fb..47a62920b4d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CacheModeConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CacheModeConverter.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CombinedGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CombinedGeometry.cs index f899112f770..f3e55779a4d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CombinedGeometry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CombinedGeometry.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DashStyle.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DashStyle.cs index f57dab52fa6..cb07e68c487 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DashStyle.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DashStyle.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DoubleCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DoubleCollection.cs index 4190fb47727..c763c86a9f6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DoubleCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DoubleCollection.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DoubleCollectionConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DoubleCollectionConverter.cs index d87ee2a9ad7..a9d4c7216be 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DoubleCollectionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DoubleCollectionConverter.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Drawing.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Drawing.cs index 712d5d98a64..d32f867e4fc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Drawing.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Drawing.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingBrush.cs index 13c731dda86..ed0a57b02fa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingBrush.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingCollection.cs index ffca46ec862..4b19bc118b3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingCollection.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingGroup.cs index 6da866d018e..81b3a61da06 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingGroup.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingImage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingImage.cs index 3bd676e9ec3..fd2dc9fbbdc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingImage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingImage.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/EllipseGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/EllipseGeometry.cs index af908044e92..1e1b8d13a24 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/EllipseGeometry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/EllipseGeometry.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransform.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransform.cs index f1bbb93ca47..0a165d491c4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransform.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransform.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransformCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransformCollection.cs index 32d28cce9ec..748f14e62ef 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransformCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransformCollection.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransformGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransformGroup.cs index 25123a1be7c..75de164786f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransformGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransformGroup.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Geometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Geometry.cs index 252720487ae..adfcdcaa41b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Geometry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Geometry.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryCollection.cs index 7ba076d3e48..e1ad59c1632 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryCollection.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryConverter.cs index aca636cd2e3..f0e0f97fb99 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryConverter.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryDrawing.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryDrawing.cs index f77911f9b63..39e2a2a1cb0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryDrawing.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryDrawing.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryGroup.cs index 110a591395c..88d7f8544a5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryGroup.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GlyphRunDrawing.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GlyphRunDrawing.cs index 65d3da3b642..cbe81ec79d0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GlyphRunDrawing.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GlyphRunDrawing.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientBrush.cs index 4f3eb03f620..0b7dfbd5081 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientBrush.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientStopCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientStopCollection.cs index a438fb4514c..1fb63503785 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientStopCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientStopCollection.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GuidelineSet.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GuidelineSet.cs index c30b42a7b3c..fcbe5385ccb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GuidelineSet.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GuidelineSet.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; @@ -390,7 +389,7 @@ static GuidelineSet() RegisterProperty("IsDynamic", typeof(bool), typeofThis, - false, + BooleanBoxes.FalseBox, new PropertyChangedCallback(IsDynamicPropertyChanged), null, /* isIndependentlyAnimated = */ false, diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageBrush.cs index eb47c1a96bd..686a7638092 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageBrush.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageDrawing.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageDrawing.cs index fb99e820fd9..2a26aff2244 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageDrawing.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageDrawing.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageSource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageSource.cs index b61a87452b9..12f3bfce9f4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageSource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageSource.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Int32Collection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Int32Collection.cs index 6cf347c2c3d..35007361264 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Int32Collection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Int32Collection.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Int32CollectionConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Int32CollectionConverter.cs index 1cf230aa7a2..a80c2e7cfb5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Int32CollectionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Int32CollectionConverter.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LineGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LineGeometry.cs index fbcf1c7c4e0..a0fc740217a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LineGeometry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LineGeometry.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LineSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LineSegment.cs index 248dd33640e..c52444eba8c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LineSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LineSegment.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LinearGradientBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LinearGradientBrush.cs index 815643dc6a2..9188a470f4d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LinearGradientBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LinearGradientBrush.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/MatrixTransform.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/MatrixTransform.cs index c51c2d1e1d8..d5e52e014eb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/MatrixTransform.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/MatrixTransform.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/MediaTimeline.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/MediaTimeline.cs index 17f196db172..a856c14bb8c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/MediaTimeline.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/MediaTimeline.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigure.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigure.cs index 5f497f03891..712f9d6800b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigure.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigure.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; @@ -279,7 +278,7 @@ static PathFigure() RegisterProperty("IsFilled", typeof(bool), typeofThis, - true, + BooleanBoxes.TrueBox, null, null, /* isIndependentlyAnimated = */ false, @@ -297,7 +296,7 @@ static PathFigure() RegisterProperty("IsClosed", typeof(bool), typeofThis, - false, + BooleanBoxes.FalseBox, null, null, /* isIndependentlyAnimated = */ false, diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigureCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigureCollection.cs index 7ff60f682cc..eea3d27afd7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigureCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigureCollection.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigureCollectionConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigureCollectionConverter.cs index 3fb51f2347c..0f2fb91ed0b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigureCollectionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigureCollectionConverter.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathGeometry.cs index 2fcae70c8cb..69f42605788 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathGeometry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathGeometry.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathSegment.cs index e468286bf55..2a53e98a217 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathSegment.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; @@ -206,7 +205,7 @@ static PathSegment() RegisterProperty("IsStroked", typeof(bool), typeofThis, - true, + BooleanBoxes.TrueBox, null, null, /* isIndependentlyAnimated = */ false, @@ -215,7 +214,7 @@ static PathSegment() RegisterProperty("IsSmoothJoin", typeof(bool), typeofThis, - false, + BooleanBoxes.FalseBox, null, null, /* isIndependentlyAnimated = */ false, diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathSegmentCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathSegmentCollection.cs index ed90deed1dd..3d5ee94de7d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathSegmentCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathSegmentCollection.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Pen.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Pen.cs index ee384874435..9359bf563a8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Pen.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Pen.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PointCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PointCollection.cs index 60659216a64..83fb4ba356b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PointCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PointCollection.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PointCollectionConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PointCollectionConverter.cs index 1840140dd14..1ff2703c959 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PointCollectionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PointCollectionConverter.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyBezierSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyBezierSegment.cs index fa3b712d3ca..4181739c071 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyBezierSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyBezierSegment.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyLineSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyLineSegment.cs index ad651424fc7..e6f31d1427a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyLineSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyLineSegment.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyQuadraticBezierSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyQuadraticBezierSegment.cs index 15465bea49a..9059681598c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyQuadraticBezierSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyQuadraticBezierSegment.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/QuadraticBezierSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/QuadraticBezierSegment.cs index e78ae0ca09c..148ba2eead8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/QuadraticBezierSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/QuadraticBezierSegment.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RadialGradientBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RadialGradientBrush.cs index 87bc76ec368..f1a8da28ce2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RadialGradientBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RadialGradientBrush.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RectangleGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RectangleGeometry.cs index d0e60000a79..91cb8a47852 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RectangleGeometry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RectangleGeometry.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RotateTransform.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RotateTransform.cs index 872467af5be..d5deb87b2a5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RotateTransform.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RotateTransform.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ScaleTransform.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ScaleTransform.cs index ea16d90c651..96b4b6de33d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ScaleTransform.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ScaleTransform.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/SkewTransform.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/SkewTransform.cs index 86029d2fb0d..5bccea1c7ee 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/SkewTransform.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/SkewTransform.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/SolidColorBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/SolidColorBrush.cs index 767694b642e..4ac8670f6c1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/SolidColorBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/SolidColorBrush.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/StreamGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/StreamGeometry.cs index 6a0ba68a87c..4fa3cbca318 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/StreamGeometry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/StreamGeometry.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextEffect.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextEffect.cs index 96a8afc16f4..b2fc62115ed 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextEffect.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextEffect.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextEffectCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextEffectCollection.cs index 8f4bed204d8..a676dcf3268 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextEffectCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextEffectCollection.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TileBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TileBrush.cs index 802feb1f248..1a5007aca99 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TileBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TileBrush.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Transform.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Transform.cs index 88f91e7299e..ca88bbf04fb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Transform.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Transform.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformCollection.cs index f55bc227681..38331c5ca88 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformCollection.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformConverter.cs index 56b58e406b3..f3c5aabf172 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformConverter.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformGroup.cs index 8a8c2b72814..6a35d9d0b5d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformGroup.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TranslateTransform.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TranslateTransform.cs index 3b06d827672..b234e12b1b0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TranslateTransform.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TranslateTransform.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VectorCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VectorCollection.cs index 4b51cfe5924..2044d8d64a0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VectorCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VectorCollection.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VectorCollectionConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VectorCollectionConverter.cs index 695937db761..4a4d01575e8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VectorCollectionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VectorCollectionConverter.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VideoDrawing.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VideoDrawing.cs index 821f23f0b10..c46591d23e3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VideoDrawing.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VideoDrawing.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VisualBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VisualBrush.cs index 1ea25d84e53..38d0fd8c1e8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VisualBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VisualBrush.cs @@ -9,7 +9,6 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; using MS.Utility; using System.Collections; @@ -430,7 +429,7 @@ static VisualBrush() RegisterProperty("AutoLayoutContent", typeof(bool), typeofThis, - true, + BooleanBoxes.TrueBox, new PropertyChangedCallback(AutoLayoutContentPropertyChanged), null, /* isIndependentlyAnimated = */ false, diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGrid.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGrid.cs index 7cc2ae4c6bf..aa786dbbf16 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGrid.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGrid.cs @@ -17,7 +17,6 @@ using System.Windows.Threading; using MS.Internal; using MS.Internal.Data; -using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCell.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCell.cs index 259be1a5156..2486f900148 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCell.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCell.cs @@ -1,13 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - -using System.Windows.Automation; using System.Windows.Controls.Primitives; using System.Windows.Data; using System.Windows.Input; using System.Windows.Media; -using MS.Internal.KnownBoxes; +using System.Windows.Automation; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCheckBoxColumn.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCheckBoxColumn.cs index 5568afc217d..4c4577388a0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCheckBoxColumn.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCheckBoxColumn.cs @@ -1,9 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.Windows.Input; -using MS.Internal.KnownBoxes; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridComboBoxColumn.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridComboBoxColumn.cs index a77f29fc36f..fd8b9692b28 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridComboBoxColumn.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridComboBoxColumn.cs @@ -1,11 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.Collections; using System.Windows.Data; using System.Windows.Input; -using MS.Internal.KnownBoxes; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRow.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRow.cs index 4fd99823ccd..a588ce19fea 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRow.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRow.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; @@ -11,7 +10,6 @@ using System.Windows.Data; using System.Windows.Threading; using MS.Internal; -using MS.Internal.KnownBoxes; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GroupItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GroupItem.cs index d1b51de7cad..3db93d2b692 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GroupItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GroupItem.cs @@ -7,10 +7,10 @@ // Specs: Data Styling.mht // -using System.Windows.Automation; -using System.Windows.Controls.Primitives; using System.Windows.Media; +using System.Windows.Controls.Primitives; using MS.Internal; +using System.Windows.Automation; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MediaElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MediaElement.cs index 3f41c56c5fe..20c555815b6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MediaElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MediaElement.cs @@ -10,7 +10,6 @@ using System.Windows.Media; using System.Windows.Markup; using MS.Internal.Telemetry.PresentationFramework; -using MS.Internal.KnownBoxes; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RichTextBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RichTextBox.cs index 76577b4db85..26e06963ea8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RichTextBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RichTextBox.cs @@ -1,16 +1,16 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections; // IEnumerator +using MS.Internal; +using MS.Internal.Documents; +using System.Windows.Input; // KeyboardNavigation using System.ComponentModel; // DefaultValue using System.Windows.Automation.Peers; // AutomationPattern using System.Windows.Controls.Primitives; // TextBoxBase using System.Windows.Documents; // TextEditor -using System.Windows.Input; // KeyboardNavigation using System.Windows.Markup; // IAddChild -using MS.Internal; +using System.Collections; // IEnumerator using MS.Internal.Controls; // EmptyEnumerator -using MS.Internal.Documents; using MS.Internal.Telemetry.PresentationFramework; // diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextSearch.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextSearch.cs index 6307d2483ca..8afacf6faa1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextSearch.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextSearch.cs @@ -1,15 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - -using System.Globalization; +using System.Windows.Threading; using System.Windows.Data; using System.Windows.Input; +using MS.Win32; +using System.Globalization; using System.Windows.Markup; // for XmlLanguage -using System.Windows.Threading; using MS.Internal; using MS.Internal.Data; -using MS.Win32; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTipService.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTipService.cs index 2460ee201cf..14f214d46c0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTipService.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTipService.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.Windows.Controls.Primitives; using System.ComponentModel; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionViewSource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionViewSource.cs index c3367ae6e87..90df428474e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionViewSource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionViewSource.cs @@ -15,7 +15,7 @@ using System.ComponentModel; // ICollectionView using System.Windows.Markup; // XmlLanguage using MS.Internal; // Invariant.Assert -using MS.Internal.Data; // DataBindEngine +using MS.Internal.Data; // DataBindEngine namespace System.Windows.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Hyperlink.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Hyperlink.cs index 0839653085c..4b9874580c0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Hyperlink.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Hyperlink.cs @@ -13,8 +13,9 @@ using System.Windows.Markup; using System.Windows.Navigation; using System.Windows.Shapes; -using System.Windows.Threading; using MS.Internal.AppModel; +using System.Windows.Threading; + using CommonDependencyProperty = MS.Internal.PresentationFramework.CommonDependencyPropertyAttribute; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessAnimation.cs index 32a58291c84..80300e1d989 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessAnimation.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Globalization; using System.Windows.Media.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessAnimationUsingKeyFrames.cs index fc9a279fb0d..1c6e388f240 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessAnimationUsingKeyFrames.cs @@ -8,7 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.KnownBoxes; using System.Collections; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/generators/AnimationTemplate.cs b/src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/generators/AnimationTemplate.cs index 6b871b9fe68..c7bfa4b4b78 100644 --- a/src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/generators/AnimationTemplate.cs +++ b/src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/generators/AnimationTemplate.cs @@ -117,7 +117,6 @@ public override void Go(ResourceModel resourceModel) [[inline]] [[Helpers.ManagedStyle.WriteFileHeader(fileName)]] - using MS.Internal.KnownBoxes; using System.Globalization; using System.Windows.Media.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/generators/AnimationUsingKeyFramesTemplate.cs b/src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/generators/AnimationUsingKeyFramesTemplate.cs index fe9f23286a8..f853dd881a2 100644 --- a/src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/generators/AnimationUsingKeyFramesTemplate.cs +++ b/src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/generators/AnimationUsingKeyFramesTemplate.cs @@ -87,7 +87,6 @@ public override void Go(ResourceModel resourceModel) [[inline]] [[Helpers.ManagedStyle.WriteFileHeader(fileName)]] - using MS.Internal.KnownBoxes; using System.Collections; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/generators/Elements.cs b/src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/generators/Elements.cs index 796ce5dda1a..a4b7ee828cd 100644 --- a/src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/generators/Elements.cs +++ b/src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/generators/Elements.cs @@ -55,7 +55,6 @@ public override void Go() cs.WriteBlock( [[inline]] using MS.Internal; - using MS.Internal.KnownBoxes; using MS.Utility; using System.ComponentModel; using System.Windows.Input; diff --git a/src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/generators/ManagedResource.cs b/src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/generators/ManagedResource.cs index 5c5834f8061..54704868fd7 100644 --- a/src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/generators/ManagedResource.cs +++ b/src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/generators/ManagedResource.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. @@ -1003,7 +1003,7 @@ private string WriteRegisterDPProperty(McgResource resource) RegisterProperty("[[field.PropertyName]]", typeof([[field.Type.ManagedName]]), typeofThis, - [[GetDefaultValue(field)]], + [[GetDefaultValueBoxed(field)]], [[propertyChangedCallback]], [[/inline]] ); @@ -1065,6 +1065,18 @@ private string GetDefaultValue(McgField field) return "null"; } } + + private string GetDefaultValueBoxed(McgField field) + { + if (field.Type.ManagedName == "bool") + { + return field.Default == "true" ? "BooleanBoxes.TrueBox" : "BooleanBoxes.FalseBox"; + } + else + { + return GetDefaultValue(field); + } + } private bool UseStaticDefaultFieldInitializer(McgField field) { @@ -1214,7 +1226,7 @@ private string WriteStaticCtor(McgResource resource) [[inline]] [[field.PropertyAlias]].OverrideMetadata( typeof([[resource.ManagedName]]), - new UIPropertyMetadata([[GetDefaultValue(field)]], + new UIPropertyMetadata([[GetDefaultValueBoxed(field)]], new PropertyChangedCallback([[field.PropertyName]]PropertyChanged))); [[/inline]] ); diff --git a/src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/xml/Resource.xml b/src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/xml/Resource.xml index 8b9f3569d23..642dc252594 100644 --- a/src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/xml/Resource.xml +++ b/src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/xml/Resource.xml @@ -2796,7 +2796,6 @@ - From 430929f819c0b58e2751d23b58b2a8550555301e Mon Sep 17 00:00:00 2001 From: h3xds1nz Date: Sun, 6 Apr 2025 20:46:02 +0200 Subject: [PATCH 3/4] Only usings removals and removal of full namespace path --- .../Media/Animation/LinearQuaternionKeyFrame.cs | 7 +------ .../Windows/Media/Animation/QuaternionAnimation.cs | 7 +------ .../Media/Animation/SplineQuaternionKeyFrame.cs | 7 +------ .../System/Windows/Media3D/Viewport2DVisual3D.cs | 1 - .../System/Windows/MouseCaptureWithinProperty.cs | 10 +--------- .../System/Windows/StylusCaptureWithinProperty.cs | 8 -------- .../src/PresentationCore/System/Windows/UIElement.cs | 4 ---- .../src/PresentationCore/System/Windows/UIElement3D.cs | 4 ---- .../MS/Internal/AppModel/JournalNavigationScope.cs | 2 -- .../MS/Internal/documents/IFlowDocumentViewer.cs | 2 -- .../System/ComponentModel/DesignerProperties.cs | 5 +---- .../Windows/Automation/Peers/ComboBoxAutomationPeer.cs | 4 ++-- .../Windows/Automation/Peers/MenuItemAutomationPeer.cs | 4 ++-- .../Automation/Peers/RadioButtonAutomationPeer.cs | 2 +- .../System/Windows/Controls/Button.cs | 1 - .../System/Windows/Controls/CheckBox.cs | 2 -- .../System/Windows/Controls/ComboBox.cs | 2 -- .../System/Windows/Controls/ComboBoxItem.cs | 2 -- .../System/Windows/Controls/ContentControl.cs | 3 +-- .../System/Windows/Controls/ContentPresenter.cs | 1 - .../System/Windows/Controls/ContextMenu.cs | 2 -- .../System/Windows/Controls/ContextMenuService.cs | 4 +--- .../System/Windows/Controls/Control.cs | 2 -- .../System/Windows/Controls/DataGridColumn.cs | 2 -- .../System/Windows/Controls/DatePicker.cs | 2 -- .../System/Windows/Controls/Expander.cs | 2 -- .../System/Windows/Controls/FlowDocumentReader.cs | 2 -- .../System/Windows/Controls/GridSplitter.cs | 4 ++-- .../System/Windows/Controls/HeaderedContentControl.cs | 4 +--- .../System/Windows/Controls/HeaderedItemsControl.cs | 3 +-- .../System/Windows/Controls/InkCanvas.cs | 1 - .../System/Windows/Controls/ItemsControl.cs | 2 -- .../System/Windows/Controls/Label.cs | 4 ++-- .../System/Windows/Controls/Page.cs | 1 - .../System/Windows/Controls/Panel.cs | 2 -- .../System/Windows/Controls/Primitives/ButtonBase.cs | 3 +-- .../Windows/Controls/Primitives/DatePickerTextBox.cs | 2 +- .../Windows/Controls/Primitives/DocumentPageView.cs | 2 -- .../System/Windows/Controls/Primitives/Popup.cs | 3 --- .../System/Windows/Controls/Primitives/PopupRoot.cs | 1 - .../System/Windows/Controls/Primitives/Selector.cs | 2 -- .../System/Windows/Controls/Primitives/Thumb.cs | 8 ++++---- .../System/Windows/Controls/RadioButton.cs | 6 +++--- .../System/Windows/Controls/TabControl.cs | 4 ++-- .../System/Windows/Controls/ToolBar.cs | 4 ++-- .../System/Windows/Navigation/NavigationWindow.cs | 1 - .../src/WindowsBase/System/Windows/DependencyObject.cs | 6 +++--- 47 files changed, 34 insertions(+), 123 deletions(-) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/LinearQuaternionKeyFrame.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/LinearQuaternionKeyFrame.cs index f375d83c17f..59cce556ea1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/LinearQuaternionKeyFrame.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/LinearQuaternionKeyFrame.cs @@ -1,11 +1,6 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// -// - -using MS.Internal.KnownBoxes; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/QuaternionAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/QuaternionAnimation.cs index d47b1fe3d90..e3bf7a9b00d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/QuaternionAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/QuaternionAnimation.cs @@ -1,11 +1,6 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// -// - -using MS.Internal.KnownBoxes; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/SplineQuaternionKeyFrame.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/SplineQuaternionKeyFrame.cs index ebf6bd07491..1c0897ead48 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/SplineQuaternionKeyFrame.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/SplineQuaternionKeyFrame.cs @@ -1,11 +1,6 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// -// - -using MS.Internal.KnownBoxes; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Viewport2DVisual3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Viewport2DVisual3D.cs index 40fc23b726b..256386727a1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Viewport2DVisual3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Viewport2DVisual3D.cs @@ -3,7 +3,6 @@ using MS.Internal; using MS.Internal.Media3D; -using MS.Internal.KnownBoxes; using System.Windows.Markup; namespace System.Windows.Media.Media3D diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/MouseCaptureWithinProperty.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/MouseCaptureWithinProperty.cs index 5d39da49bff..f200001f014 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/MouseCaptureWithinProperty.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/MouseCaptureWithinProperty.cs @@ -1,16 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using MS.Internal.KnownBoxes; - namespace System.Windows { - ///////////////////////////////////////////////////////////////////////// - internal class MouseCaptureWithinProperty : ReverseInheritProperty { - ///////////////////////////////////////////////////////////////////// - internal MouseCaptureWithinProperty() : base( UIElement.IsMouseCaptureWithinPropertyKey, CoreFlags.IsMouseCaptureWithinCache, @@ -18,14 +12,12 @@ internal MouseCaptureWithinProperty() : base( { } - ///////////////////////////////////////////////////////////////////// - internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue) { DependencyPropertyChangedEventArgs args = new DependencyPropertyChangedEventArgs( UIElement.IsMouseCaptureWithinProperty, - BooleanBoxes.Box(oldValue), + BooleanBoxes.Box(oldValue), BooleanBoxes.Box(!oldValue)); if (uie != null) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/StylusCaptureWithinProperty.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/StylusCaptureWithinProperty.cs index 7dfef00ac69..b6143be4ad6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/StylusCaptureWithinProperty.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/StylusCaptureWithinProperty.cs @@ -1,16 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using MS.Internal.KnownBoxes; - namespace System.Windows { - ///////////////////////////////////////////////////////////////////////// - internal class StylusCaptureWithinProperty : ReverseInheritProperty { - ///////////////////////////////////////////////////////////////////// - internal StylusCaptureWithinProperty() : base( UIElement.IsStylusCaptureWithinPropertyKey, CoreFlags.IsStylusCaptureWithinCache, @@ -18,8 +12,6 @@ internal StylusCaptureWithinProperty() : base( { } - ///////////////////////////////////////////////////////////////////// - internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue) { DependencyPropertyChangedEventArgs args = diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/UIElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/UIElement.cs index 33241ed2c7d..9a4da352b64 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/UIElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/UIElement.cs @@ -1,12 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// -// - using MS.Internal; using MS.Internal.Interop; -using MS.Internal.KnownBoxes; using MS.Internal.Media; using MS.Internal.PresentationCore; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/UIElement3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/UIElement3D.cs index 5d4a65414aa..f5018288143 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/UIElement3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/UIElement3D.cs @@ -1,12 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// -// - using MS.Internal; using MS.Internal.Interop; -using MS.Internal.KnownBoxes; using MS.Internal.PresentationCore; using System.Windows.Automation; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/JournalNavigationScope.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/JournalNavigationScope.cs index 2724d8de74d..adf793284c9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/JournalNavigationScope.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/JournalNavigationScope.cs @@ -16,8 +16,6 @@ using System.Windows; using System.Windows.Navigation; -using MS.Internal.KnownBoxes; - namespace MS.Internal.AppModel { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/IFlowDocumentViewer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/IFlowDocumentViewer.cs index cc2eaf7b9aa..1e20eb8acc7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/IFlowDocumentViewer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/IFlowDocumentViewer.cs @@ -1,12 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.Windows; // Rect, Point using System.Windows.Documents; // ITextSelection using System.Windows.Controls; // FlowDocumentScrollViewer using System.Windows.Threading; // Dispatcher -using MS.Internal.KnownBoxes; // BooleanBoxes namespace MS.Internal.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/ComponentModel/DesignerProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/ComponentModel/DesignerProperties.cs index e1fb2930bf7..243884869a3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/ComponentModel/DesignerProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/ComponentModel/DesignerProperties.cs @@ -1,9 +1,7 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.Windows; -using MS.Internal.KnownBoxes; // // Description: @@ -11,7 +9,6 @@ // See spec at: Design%20Mode%20Property.doc // - namespace System.ComponentModel { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ComboBoxAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ComboBoxAutomationPeer.cs index 466d9161621..e8d91083205 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ComboBoxAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ComboBoxAutomationPeer.cs @@ -193,7 +193,7 @@ void IExpandCollapseProvider.Expand() throw new ElementNotEnabledException(); ComboBox owner = (ComboBox)((ComboBoxAutomationPeer)this).Owner; - owner.SetCurrentValueInternal(ComboBox.IsDropDownOpenProperty, MS.Internal.KnownBoxes.BooleanBoxes.TrueBox); + owner.SetCurrentValueInternal(ComboBox.IsDropDownOpenProperty, BooleanBoxes.TrueBox); } @@ -207,7 +207,7 @@ void IExpandCollapseProvider.Collapse() throw new ElementNotEnabledException(); ComboBox owner = (ComboBox)((ComboBoxAutomationPeer)this).Owner; - owner.SetCurrentValueInternal(ComboBox.IsDropDownOpenProperty, MS.Internal.KnownBoxes.BooleanBoxes.FalseBox); + owner.SetCurrentValueInternal(ComboBox.IsDropDownOpenProperty, BooleanBoxes.FalseBox); } diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/MenuItemAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/MenuItemAutomationPeer.cs index 732f46a7331..e43c2d2bbbc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/MenuItemAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/MenuItemAutomationPeer.cs @@ -220,7 +220,7 @@ void IExpandCollapseProvider.Collapse() throw new InvalidOperationException(SR.UIA_OperationCannotBePerformed); } - owner.SetCurrentValueInternal(MenuItem.IsSubmenuOpenProperty, MS.Internal.KnownBoxes.BooleanBoxes.FalseBox); + owner.SetCurrentValueInternal(MenuItem.IsSubmenuOpenProperty, BooleanBoxes.FalseBox); } /// @@ -278,7 +278,7 @@ void IToggleProvider.Toggle() throw new InvalidOperationException(SR.UIA_OperationCannotBePerformed); } - owner.SetCurrentValueInternal(MenuItem.IsCheckedProperty, MS.Internal.KnownBoxes.BooleanBoxes.Box(!owner.IsChecked)); + owner.SetCurrentValueInternal(MenuItem.IsCheckedProperty, BooleanBoxes.Box(!owner.IsChecked)); } /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/RadioButtonAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/RadioButtonAutomationPeer.cs index 5baea4c9a0f..8ce7ee96c70 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/RadioButtonAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/RadioButtonAutomationPeer.cs @@ -51,7 +51,7 @@ void ISelectionItemProvider.Select() if (!IsEnabled()) throw new ElementNotEnabledException(); - ((RadioButton)Owner).SetCurrentValueInternal(RadioButton.IsCheckedProperty, MS.Internal.KnownBoxes.BooleanBoxes.TrueBox); + ((RadioButton)Owner).SetCurrentValueInternal(RadioButton.IsCheckedProperty, BooleanBoxes.TrueBox); } diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Button.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Button.cs index 70edf132e46..91dca367311 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Button.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Button.cs @@ -5,7 +5,6 @@ using System.Windows.Controls.Primitives; using System.Windows.Input; -using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CheckBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CheckBox.cs index f24235dc610..0e30f6d623c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CheckBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CheckBox.cs @@ -1,11 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.ComponentModel; using System.Windows.Controls.Primitives; using System.Windows.Input; -using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; // Disable CS3001: Warning as Error: not CLS-compliant diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ComboBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ComboBox.cs index cc5c6361491..05fe947fd83 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ComboBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ComboBox.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.ComponentModel; using System.Collections.Specialized; using System.Windows.Threading; @@ -13,7 +12,6 @@ using System.Windows.Controls.Primitives; using System.Windows.Shapes; -using MS.Internal.KnownBoxes; using MS.Internal; using MS.Internal.Telemetry.PresentationFramework; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ComboBoxItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ComboBoxItem.cs index 4fa9200e12d..485389c64b7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ComboBoxItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ComboBoxItem.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - -using MS.Internal.KnownBoxes; using System.Windows.Media; using System.Windows.Input; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContentControl.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContentControl.cs index 5648a33c70b..6c1f2d7f383 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContentControl.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContentControl.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections; @@ -7,7 +7,6 @@ using System.Windows.Markup; using MS.Internal; using MS.Internal.Controls; -using MS.Internal.KnownBoxes; using MS.Internal.PresentationFramework; using MS.Internal.Telemetry.PresentationFramework; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContentPresenter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContentPresenter.cs index 7dee8888f5e..a6ef57f31fc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContentPresenter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContentPresenter.cs @@ -12,7 +12,6 @@ using System.Windows.Data; using System.Windows.Markup; using MS.Internal; -using MS.Internal.KnownBoxes; using System.Windows.Documents; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContextMenu.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContextMenu.cs index 1028799f186..97451f0c6a5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContextMenu.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContextMenu.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - -using MS.Internal.KnownBoxes; using System.ComponentModel; using System.Windows.Threading; #if OLD_AUTOMATION diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContextMenuService.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContextMenuService.cs index 0517e90db16..9c2ac8d9005 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContextMenuService.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContextMenuService.cs @@ -1,9 +1,7 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.Windows.Controls.Primitives; -using MS.Internal.KnownBoxes; using System.ComponentModel; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Control.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Control.cs index 95f58ac41dd..2b577402ed0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Control.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Control.cs @@ -1,14 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.ComponentModel; using System.Windows.Threading; using System.Windows.Media; using System.Windows.Input; using System.Windows.Documents; -using MS.Internal.KnownBoxes; using MS.Internal.PresentationFramework; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumn.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumn.cs index 913d71fa0e6..c97d9dc80d4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumn.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumn.cs @@ -1,13 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.ComponentModel; using System.Reflection; using System.Windows.Data; using System.Windows.Input; using MS.Internal; -using MS.Internal.KnownBoxes; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DatePicker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DatePicker.cs index 5b8e1a138a8..7a76e8dea9e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DatePicker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DatePicker.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.Collections.ObjectModel; using System.Globalization; using System.Windows.Automation.Peers; @@ -10,7 +9,6 @@ using System.Windows.Input; using System.Windows.Media; using System.Windows.Threading; -using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Expander.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Expander.cs index a5604b95a78..c9af17ac828 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Expander.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Expander.cs @@ -1,11 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.Windows.Automation.Peers; using System.Windows.Controls.Primitives; using System.ComponentModel; -using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentReader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentReader.cs index 9266295e69e..30dd0667166 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentReader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentReader.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.Collections; // IEnumerator using System.Windows.Automation.Peers; // AutomationPeer using System.Windows.Data; // BindingOperations @@ -14,7 +13,6 @@ using MS.Internal.Commands; // CommandHelpers using MS.Internal.Controls; // EmptyEnumerator using MS.Internal.Documents; // FindToolBar -using MS.Internal.KnownBoxes; // BooleanBoxes using MS.Internal.AppModel; // IJournalState namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridSplitter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridSplitter.cs index a830763aa31..fa99f4bcdc3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridSplitter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridSplitter.cs @@ -85,9 +85,9 @@ static GridSplitter() DefaultStyleKeyProperty.OverrideMetadata(typeof(GridSplitter), new FrameworkPropertyMetadata(typeof(GridSplitter))); _dType = DependencyObjectType.FromSystemTypeInternal(typeof(GridSplitter)); - FocusableProperty.OverrideMetadata(typeof(GridSplitter), new FrameworkPropertyMetadata(MS.Internal.KnownBoxes.BooleanBoxes.TrueBox)); + FocusableProperty.OverrideMetadata(typeof(GridSplitter), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); FrameworkElement.HorizontalAlignmentProperty.OverrideMetadata(typeof(GridSplitter), new FrameworkPropertyMetadata(HorizontalAlignment.Right)); - + // Cursor depends on ResizeDirection, ActualWidth, and ActualHeight CursorProperty.OverrideMetadata(typeof(GridSplitter), new FrameworkPropertyMetadata(null, new CoerceValueCallback(CoerceCursor))); diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/HeaderedContentControl.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/HeaderedContentControl.cs index 5d82258ee85..633247d4eb6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/HeaderedContentControl.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/HeaderedContentControl.cs @@ -1,7 +1,6 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.Collections; using System.ComponentModel; using System.Windows.Data; @@ -9,7 +8,6 @@ using System.Windows.Media; using MS.Internal; using MS.Internal.Controls; -using MS.Internal.KnownBoxes; using MS.Internal.PresentationFramework; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/HeaderedItemsControl.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/HeaderedItemsControl.cs index 8c6c0fc4322..63fe54f45bd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/HeaderedItemsControl.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/HeaderedItemsControl.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections; @@ -8,7 +8,6 @@ using System.Windows.Data; using MS.Internal; using MS.Internal.Controls; -using MS.Internal.KnownBoxes; using MS.Internal.PresentationFramework; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InkCanvas.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InkCanvas.cs index 5f8e436f2a1..93d59e2ced0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InkCanvas.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InkCanvas.cs @@ -11,7 +11,6 @@ using MS.Internal.Commands; using MS.Internal.Controls; using MS.Internal.Ink; -using MS.Internal.KnownBoxes; using System.Collections; using System.Collections.ObjectModel; using System.ComponentModel; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemsControl.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemsControl.cs index 04a14d0bc60..1249e7d3988 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemsControl.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemsControl.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.Collections; using System.Collections.ObjectModel; using System.Collections.Specialized; @@ -15,7 +14,6 @@ using MS.Internal; using MS.Internal.Controls; using MS.Internal.Data; -using MS.Internal.KnownBoxes; using MS.Internal.PresentationFramework; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Label.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Label.cs index 85d68621169..1698899f5c1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Label.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Label.cs @@ -47,8 +47,8 @@ static Label() _dType = DependencyObjectType.FromSystemTypeInternal(typeof(Label)); // prevent label from being a tab stop and focusable - IsTabStopProperty.OverrideMetadata(typeof(Label), new FrameworkPropertyMetadata(MS.Internal.KnownBoxes.BooleanBoxes.FalseBox)); - FocusableProperty.OverrideMetadata(typeof(Label), new FrameworkPropertyMetadata(MS.Internal.KnownBoxes.BooleanBoxes.FalseBox)); + IsTabStopProperty.OverrideMetadata(typeof(Label), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); + FocusableProperty.OverrideMetadata(typeof(Label), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); ControlsTraceLogger.AddControl(TelemetryControls.Label); } diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Page.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Page.cs index 0b88093e82d..cba253cfb63 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Page.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Page.cs @@ -11,7 +11,6 @@ using System.Windows.Media; using System.Windows.Markup; using System.Windows.Documents; -using MS.Internal.KnownBoxes; using MS.Internal; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Panel.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Panel.cs index 17fb6e4beac..09ef301b774 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Panel.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Panel.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.Collections; using System.Collections.Specialized; using System.ComponentModel; @@ -9,7 +8,6 @@ using System.Windows.Media; using System.Windows.Markup; // IAddChild, ContentPropertyAttribute using MS.Internal.Controls; -using MS.Internal.KnownBoxes; using MS.Internal.PresentationFramework; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ButtonBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ButtonBase.cs index 7a6d44484a4..048415140c2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ButtonBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ButtonBase.cs @@ -1,10 +1,9 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel; using System.Windows.Input; using System.Windows.Media; -using MS.Internal.KnownBoxes; using MS.Internal.PresentationFramework; namespace System.Windows.Controls.Primitives diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DatePickerTextBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DatePickerTextBox.cs index 24e9bd61352..b74276a8fc8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DatePickerTextBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DatePickerTextBox.cs @@ -164,7 +164,7 @@ private void OnDatePickerTextBoxIsEnabledChanged(object sender, DependencyProper Debug.Assert(e.NewValue is bool); bool isEnabled = (bool)e.NewValue; - SetCurrentValueInternal(IsReadOnlyProperty, MS.Internal.KnownBoxes.BooleanBoxes.Box(!isEnabled)); + SetCurrentValueInternal(IsReadOnlyProperty, BooleanBoxes.Box(!isEnabled)); } private void OnWatermarkChanged() diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentPageView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentPageView.cs index 859054a20de..2935b316044 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentPageView.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentPageView.cs @@ -12,8 +12,6 @@ using System.Windows.Threading; // Dispatcher using MS.Internal; // Invariant using MS.Internal.Documents; // DocumentPageHost, DocumentPageTextView -using MS.Internal.KnownBoxes; // BooleanBoxes - namespace System.Windows.Controls.Primitives { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Popup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Popup.cs index 67069f8ee9c..018d915e20e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Popup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Popup.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - - using System.Collections; using System.Collections.Specialized; using System.ComponentModel; @@ -19,7 +17,6 @@ using Accessibility; using MS.Internal; using MS.Internal.Controls; -using MS.Internal.KnownBoxes; using MS.Internal.Interop; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PopupRoot.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PopupRoot.cs index 3971b157134..24fb4991444 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PopupRoot.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PopupRoot.cs @@ -6,7 +6,6 @@ using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; -using MS.Internal.KnownBoxes; namespace System.Windows.Controls.Primitives { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Selector.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Selector.cs index 2548a83ee8d..0c5de2c82cf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Selector.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Selector.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.ComponentModel; using System.Collections; using System.Collections.ObjectModel; @@ -11,7 +10,6 @@ using System.Windows.Input; using MS.Internal; using MS.Internal.Data; -using MS.Internal.KnownBoxes; using MS.Internal.Controls; using BuildInfo = MS.Internal.PresentationFramework.BuildInfo; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Thumb.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Thumb.cs index d00df20472f..8d565ffcf51 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Thumb.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Thumb.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel; @@ -38,7 +38,7 @@ static Thumb() // Register metadata for dependency properties DefaultStyleKeyProperty.OverrideMetadata(typeof(Thumb), new FrameworkPropertyMetadata(typeof(Thumb))); _dType = DependencyObjectType.FromSystemTypeInternal(typeof(Thumb)); - FocusableProperty.OverrideMetadata(typeof(Thumb), new FrameworkPropertyMetadata(MS.Internal.KnownBoxes.BooleanBoxes.FalseBox)); + FocusableProperty.OverrideMetadata(typeof(Thumb), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); EventManager.RegisterClassHandler(typeof(Thumb), Mouse.LostMouseCaptureEvent, new MouseEventHandler(OnLostMouseCapture)); @@ -90,7 +90,7 @@ static Thumb() typeof(bool), typeof(Thumb), new FrameworkPropertyMetadata( - MS.Internal.KnownBoxes.BooleanBoxes.FalseBox, + BooleanBoxes.FalseBox, new PropertyChangedCallback(OnIsDraggingPropertyChanged))); /// @@ -107,7 +107,7 @@ static Thumb() public bool IsDragging { get { return (bool) GetValue(IsDraggingProperty); } - protected set { SetValue(IsDraggingPropertyKey, MS.Internal.KnownBoxes.BooleanBoxes.Box(value)); } + protected set { SetValue(IsDraggingPropertyKey, BooleanBoxes.Box(value)); } } #endregion Properties and Events diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RadioButton.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RadioButton.cs index 378f4493b20..fee4e49704b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RadioButton.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RadioButton.cs @@ -26,7 +26,7 @@ static RadioButton() DefaultStyleKeyProperty.OverrideMetadata(typeof(RadioButton), new FrameworkPropertyMetadata(typeof(RadioButton))); _dType = DependencyObjectType.FromSystemTypeInternal(typeof(RadioButton)); - KeyboardNavigation.AcceptsReturnProperty.OverrideMetadata(typeof(RadioButton), new FrameworkPropertyMetadata(MS.Internal.KnownBoxes.BooleanBoxes.FalseBox)); + KeyboardNavigation.AcceptsReturnProperty.OverrideMetadata(typeof(RadioButton), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); ControlsTraceLogger.AddControl(TelemetryControls.RadioButton); } @@ -179,7 +179,7 @@ private void UpdateRadioButtonGroup() private void UncheckRadioButton() { - SetCurrentValueInternal(IsCheckedProperty, MS.Internal.KnownBoxes.BooleanBoxes.FalseBox); + SetCurrentValueInternal(IsCheckedProperty, BooleanBoxes.FalseBox); } #endregion @@ -243,7 +243,7 @@ protected override void OnChecked(RoutedEventArgs e) /// protected internal override void OnToggle() { - SetCurrentValueInternal(IsCheckedProperty, MS.Internal.KnownBoxes.BooleanBoxes.TrueBox); + SetCurrentValueInternal(IsCheckedProperty, BooleanBoxes.TrueBox); } /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TabControl.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TabControl.cs index 4f056ad2e98..5e8c6843829 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TabControl.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TabControl.cs @@ -33,7 +33,7 @@ static TabControl() { DefaultStyleKeyProperty.OverrideMetadata(typeof(TabControl), new FrameworkPropertyMetadata(typeof(TabControl))); _dType = DependencyObjectType.FromSystemTypeInternal(typeof(TabControl)); - IsTabStopProperty.OverrideMetadata(typeof(TabControl), new FrameworkPropertyMetadata(MS.Internal.KnownBoxes.BooleanBoxes.FalseBox)); + IsTabStopProperty.OverrideMetadata(typeof(TabControl), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(TabControl), new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained)); IsEnabledProperty.OverrideMetadata(typeof(TabControl), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); @@ -383,7 +383,7 @@ protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e) if (startIndex > Items.Count) startIndex = 0; TabItem nextTabItem = FindNextTabItem(startIndex, -1); - nextTabItem?.SetCurrentValueInternal(TabItem.IsSelectedProperty, MS.Internal.KnownBoxes.BooleanBoxes.TrueBox); + nextTabItem?.SetCurrentValueInternal(TabItem.IsSelectedProperty, BooleanBoxes.TrueBox); } } diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolBar.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolBar.cs index a8ca79507da..9e6611d61f1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolBar.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolBar.cs @@ -60,8 +60,8 @@ static ToolBar() DefaultStyleKeyProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(typeof(ToolBar))); _dType = DependencyObjectType.FromSystemTypeInternal(typeof(ToolBar)); - IsTabStopProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(MS.Internal.KnownBoxes.BooleanBoxes.FalseBox)); - FocusableProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(MS.Internal.KnownBoxes.BooleanBoxes.FalseBox)); + IsTabStopProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); + FocusableProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/NavigationWindow.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/NavigationWindow.cs index 7176e5fc9db..a13e4f8e880 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/NavigationWindow.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/NavigationWindow.cs @@ -17,7 +17,6 @@ using System.ComponentModel; using MS.Internal.AppModel; -using MS.Internal.KnownBoxes; using MS.Internal.Utility; using System.Windows.Automation.Peers; using System.Windows.Controls; diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyObject.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyObject.cs index 04d61c871b5..7516f3d7a6b 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyObject.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyObject.cs @@ -452,7 +452,7 @@ public void SetCurrentValue(DependencyProperty dp, object value) /// New local value internal void SetValue(DependencyProperty dp, bool value) { - SetValue(dp, MS.Internal.KnownBoxes.BooleanBoxes.Box(value)); + SetValue(dp, BooleanBoxes.Box(value)); } /// @@ -463,7 +463,7 @@ internal void SetValue(DependencyProperty dp, bool value) /// New local value internal void SetCurrentValue(DependencyProperty dp, bool value) { - SetCurrentValue(dp, MS.Internal.KnownBoxes.BooleanBoxes.Box(value)); + SetCurrentValue(dp, BooleanBoxes.Box(value)); } /// @@ -550,7 +550,7 @@ internal void SetMutableDefaultValue(DependencyProperty dp, object value) /// New local value internal void SetValue(DependencyPropertyKey dp, bool value) { - SetValue(dp, MS.Internal.KnownBoxes.BooleanBoxes.Box(value)); + SetValue(dp, BooleanBoxes.Box(value)); } /// From 52c25da21fa88ad1b6a7a7c7a4698aedad632bbf Mon Sep 17 00:00:00 2001 From: h3xds1nz Date: Sun, 6 Apr 2025 20:50:34 +0200 Subject: [PATCH 4/4] Replace Box(true) -> TrueBox --- .../System/Windows/Controls/GridViewColumnHeader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnHeader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnHeader.cs index 9afece04980..b9ccb40dc1e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnHeader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnHeader.cs @@ -859,7 +859,7 @@ private bool HandleIsMouseOverChanged() (_headerGripper == null || !_headerGripper.IsMouseOver)) { // Hovering over the button will click in the OnHover click mode - SetValue(IsPressedPropertyKey, BooleanBoxes.Box(true)); + SetValue(IsPressedPropertyKey, BooleanBoxes.TrueBox); OnClick(); } else