File tree 2 files changed +16
-7
lines changed
WpfDesign.Designer/Project/PropertyGrid/Editors
2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 1
1
# WpfDesigner
2
- The WPF Designer from SharpDevelop
2
+ The WPF Designer from SharpDevelop, available via [ NuGet ] ( https://www.nuget.org/packages/ICSharpCode.WpfDesigner/ )
3
3
4
4
## Overview
5
5
@@ -14,18 +14,14 @@ Branch | Status
14
14
15
15
## System Requirements
16
16
17
- .NET 4.5 or Net Core 3 .0
17
+ .NET 4.5, or .NET Core 5.0 as well as .NET 6 .0
18
18
19
19
## Libraries and Integrated Tools
20
20
21
21
Only the sample app has dependencies:
22
22
* [ Avalon Dock] ( http://avalondock.codeplex.com/ )
23
23
* [ Avalon Edit] ( https://github.com/icsharpcode/AvalonEdit )
24
24
25
- ## Download
26
-
27
- [ NuGet] ( https://www.nuget.org/packages/ICSharpCode.WpfDesigner/ )
28
-
29
25
## Sample App
30
26
![ Sample App] ( /screenshot.png?raw=true " Sample App ")
31
27
Original file line number Diff line number Diff line change @@ -116,7 +116,20 @@ public void LoadItemsCombobox()
116
116
117
117
private IEnumerable < Type > GetInheritedClasses ( Type type )
118
118
{
119
- return AppDomain . CurrentDomain . GetAssemblies ( ) . Where ( x => ! x . IsDynamic ) . SelectMany ( x => x . GetTypes ( ) . Where ( y => y . IsClass && ! y . IsAbstract && y . IsSubclassOf ( type ) ) ) ;
119
+ return AppDomain . CurrentDomain . GetAssemblies ( ) . Where ( x => ! x . IsDynamic ) . SelectMany ( x => GetLoadableTypes ( x ) . Where ( y => y . IsClass && ! y . IsAbstract && y . IsSubclassOf ( type ) ) ) ;
120
+ }
121
+
122
+ private IEnumerable < Type > GetLoadableTypes ( Assembly assembly )
123
+ {
124
+ if ( assembly == null ) throw new ArgumentNullException ( "assembly" ) ;
125
+ try
126
+ {
127
+ return assembly . GetTypes ( ) ;
128
+ }
129
+ catch ( ReflectionTypeLoadException e )
130
+ {
131
+ return e . Types . Where ( t => t != null ) ;
132
+ }
120
133
}
121
134
122
135
private void OnAddItemClicked ( object sender , RoutedEventArgs e )
You can’t perform that action at this time.
0 commit comments