7 changed files with 42 additions and 17 deletions
@ -1,16 +1,16 @@ |
|||||
using System; |
using System; |
||||
using System.IO; |
using System.IO; |
||||
using System.Reflection; |
using System.Reflection; |
||||
using Avalonia.DesignerSupport; |
using Avalonia.Markup.Xaml; |
||||
using Avalonia.Markup.Xaml.XamlIl; |
using Avalonia.Markup.Xaml.XamlIl; |
||||
|
|
||||
namespace Avalonia.Designer.HostApp |
namespace Avalonia.Designer.HostApp |
||||
{ |
{ |
||||
class DesignXamlLoader : DesignWindowLoader.IDesignXamlLoader |
class DesignXamlLoader : AvaloniaXamlLoader.IRuntimeXamlLoader |
||||
{ |
{ |
||||
public object Load(MemoryStream stream, Assembly localAsm, object o, Uri baseUri) |
public object Load(Stream stream, Assembly localAsm, object o, Uri baseUri, bool designMode) |
||||
{ |
{ |
||||
return AvaloniaXamlIlRuntimeCompiler.Load(stream, localAsm, o, baseUri, true); |
return AvaloniaXamlIlRuntimeCompiler.Load(stream, localAsm, o, baseUri, designMode); |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue