From ed0401bd438650c2a064983dfad1248c89ff304d Mon Sep 17 00:00:00 2001 From: Giuseppe Lippolis Date: Mon, 21 Aug 2023 10:40:57 +0200 Subject: [PATCH] feat: Add suuport {x:True} and {x:False} According https://github.com/AvaloniaUI/avalonia-docs/issues/139 add support {x:True} and {x:False}. --- .../AssemblyMetadata/MetadataConverter.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CompletionEngine/Avalonia.Ide.CompletionEngine/AssemblyMetadata/MetadataConverter.cs b/CompletionEngine/Avalonia.Ide.CompletionEngine/AssemblyMetadata/MetadataConverter.cs index 4fba9e31..24f7b8ad 100644 --- a/CompletionEngine/Avalonia.Ide.CompletionEngine/AssemblyMetadata/MetadataConverter.cs +++ b/CompletionEngine/Avalonia.Ide.CompletionEngine/AssemblyMetadata/MetadataConverter.cs @@ -611,6 +611,16 @@ private static void PreProcessTypes(Dictionary types, Meta IsXamlDirective = true, Properties = { new MetadataProperty("", boolType,null, false, false, false, true)}, }, + new MetadataType("True") + { + HasSetProperties = true, + IsMarkupExtension = true, + }, + new MetadataType("False") + { + HasSetProperties = true, + IsMarkupExtension = true, + }, }; //as in avalonia 0.9 Portablexaml is missing we need to hardcode some extensions