Previewer is not working #13667
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
@BlankWhite when does it happen? do you click anything on during previewer? In general, please fill the issue template if you file a bug. Thank you. But for me this is more or less a discussion. I'll convert it for now, hope you don't mind. Looking roughly into your sample, I see that you do this: CopyCommand = ReactiveCommand.Create(async () =>
{
var window = ((IClassicDesktopStyleApplicationLifetime)Application.Current.ApplicationLifetime).Windows[0];
var clipboard = window.Clipboard;
var dataObject = new DataObject();
dataObject.Set(DataFormats.Text, AfterSql);
await clipboard.SetDataObjectAsync(dataObject);
});
PasteCommand = ReactiveCommand.Create(async () =>
{
var window = ((IClassicDesktopStyleApplicationLifetime)Application.Current.ApplicationLifetime).Windows[0];
var clipboard = window.Clipboard;
BeforeSql = await clipboard.GetTextAsync();
});However the designer has no window, so you cannot reference any window from the designer. You can for example use |
Beta Was this translation helpful? Give feedback.
-
|
@BlankWhite @vpenades , <PropertyGroup Condition="'$(_IsPublishing)' == 'true'">
<PublishAot>true</PublishAot>
</PropertyGroup> |
Beta Was this translation helpful? Give feedback.

I found the issue; uncommenting this line resolved the issue. It might be a bug.
<PublishAot>true</PublishAot>