public static Assembly GetLocalAssembly(this ITypeDescriptorContext ctx)
 {
     return(ctx.GetWriterSettings()?.Context?.LocalAssembly);
 }
 public static AvaloniaXamlContext GetAvaloniaXamlContext(this ITypeDescriptorContext ctx)
 {
     return(ctx.GetWriterSettings()?.Context);
 }
 public static Uri GetBaseUri(this ITypeDescriptorContext ctx)
 {
     return(ctx.GetWriterSettings()?.Context?.BaseUri);
 }