@@ -648,9 +648,9 @@ private static Type LookForTypeByName(string typeName)
648
648
}
649
649
}
650
650
651
- // Search in Microsoft.Toolkit.Uwp.UI.Controls
652
- var controlsProxyType = GridSplitter . GridResizeDirection . Auto ;
653
- assembly = controlsProxyType . GetType ( ) . GetTypeInfo ( ) . Assembly ;
651
+ // Search in Microsoft.Toolkit.Uwp.UI.Controls.Core
652
+ var controlsCoreProxyType = StackMode . Replace ;
653
+ assembly = controlsCoreProxyType . GetType ( ) . GetTypeInfo ( ) . Assembly ;
654
654
655
655
foreach ( var typeInfo in assembly . ExportedTypes )
656
656
{
@@ -718,6 +718,18 @@ private static Type LookForTypeByName(string typeName)
718
718
}
719
719
}
720
720
721
+ // Search in Microsoft.Toolkit.Uwp.UI.Controls.Layout
722
+ var controlsLayoutProxyType = GridSplitter . GridResizeDirection . Auto ;
723
+ assembly = controlsLayoutProxyType . GetType ( ) . GetTypeInfo ( ) . Assembly ;
724
+
725
+ foreach ( var typeInfo in assembly . ExportedTypes )
726
+ {
727
+ if ( typeInfo . Name == typeName )
728
+ {
729
+ return typeInfo ;
730
+ }
731
+ }
732
+
721
733
// Search in Microsoft.Toolkit.Uwp.UI.Controls.Markdown
722
734
var markdownTextBlockType = typeof ( MarkdownTextBlock ) ;
723
735
assembly = markdownTextBlockType . GetTypeInfo ( ) . Assembly ;
@@ -730,6 +742,30 @@ private static Type LookForTypeByName(string typeName)
730
742
}
731
743
}
732
744
745
+ // Search in Microsoft.Toolkit.Uwp.UI.Controls.Media
746
+ var controlsMediaProxyType = BitmapFileFormat . Bmp ;
747
+ assembly = controlsMediaProxyType . GetType ( ) . GetTypeInfo ( ) . Assembly ;
748
+
749
+ foreach ( var typeInfo in assembly . ExportedTypes )
750
+ {
751
+ if ( typeInfo . Name == typeName )
752
+ {
753
+ return typeInfo ;
754
+ }
755
+ }
756
+
757
+ // Search in Microsoft.Toolkit.Uwp.UI.Controls.Primitivs
758
+ var controlsPrimitivsProxyType = StretchChild . Last ;
759
+ assembly = controlsPrimitivsProxyType . GetType ( ) . GetTypeInfo ( ) . Assembly ;
760
+
761
+ foreach ( var typeInfo in assembly . ExportedTypes )
762
+ {
763
+ if ( typeInfo . Name == typeName )
764
+ {
765
+ return typeInfo ;
766
+ }
767
+ }
768
+
733
769
return null ;
734
770
}
735
771
0 commit comments