Skip to content

Commit

Permalink
(MahAppsGH-3746) WPF0011: Register containing type: 'MahApps.Metro.Co…
Browse files Browse the repository at this point in the history
…ntrols.TimePickerBase' as owner
  • Loading branch information
punker76 committed May 3, 2020
1 parent 49fd227 commit 8167598
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ indent_size = 4
[*.{md,yml}]
indent_style = space
indent_size = 2


[*.cs]
# WPF0011: Containing type should be used as registered owner.
dotnet_diagnostic.WPF0011.severity = error
1 change: 1 addition & 0 deletions src/MahApps.Metro.sln
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MahApps.Metro.Tests", "Maha
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{EC5373FC-2098-4D7B-8990-B15E9C631AE8}"
ProjectSection(SolutionItems) = preProject
..\.editorconfig = ..\.editorconfig
Directory.Build.Props = Directory.Build.Props
Directory.Build.Targets = Directory.Build.Targets
global.json = global.json
Expand Down
2 changes: 1 addition & 1 deletion src/MahApps.Metro/Controls/TimePicker/TimePickerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ static TimePickerBase()
EventManager.RegisterClassHandler(typeof(TimePickerBase), UIElement.GotFocusEvent, new RoutedEventHandler(OnGotFocus));
VerticalContentAlignmentProperty.OverrideMetadata(typeof(TimePickerBase), new FrameworkPropertyMetadata(VerticalAlignment.Center));
LanguageProperty.OverrideMetadata(typeof(TimePickerBase), new FrameworkPropertyMetadata(OnLanguageChanged));
IsEnabledProperty.OverrideMetadata(typeof(DatePicker), new UIPropertyMetadata(new PropertyChangedCallback(OnIsEnabledChanged)));
IsEnabledProperty.OverrideMetadata(typeof(TimePickerBase), new UIPropertyMetadata(OnIsEnabledChanged));
}

protected TimePickerBase()
Expand Down

0 comments on commit 8167598

Please sign in to comment.