Я использую WPF WebView2compositionControl для отображения экземпляра Monaco Editor, но содержимое размыто. Таким образом, я перешел на WebView2compositionControl , проблема наложения сейчас исправлена, но контент размыт. Это было не тот случай, когда я использовал WebView2 Control.
Кто-нибудь знает, как это исправить?
Editor
html, body {
height: 100%;
margin: 0;
}
#container {
height: 100%;
}
require.config({paths: {'vs': './min/vs'}});
// Hold a reference to the Monaco editor instance
let monacoEditor;
// Function to initialize the editor
function initializeEditor(content, theme = 'vs-light') {
require(['vs/editor/editor.main'], function () {
if (monacoEditor) {
return;
}
monacoEditor = monaco.editor.create(document.getElementById('container'), {
value: content.toString(),
automaticLayout: true,
theme: theme,
});
});
// Add a resize listener to resize Monaco Editor dynamically
window.addEventListener('resize', () => {
if (monacoEditor) {
monacoEditor.layout();
}
});
}
< /code>
и my xaml: < /p>
Подробнее здесь: https://stackoverflow.com/questions/795 ... nt-blurred