WPF Webbrowser создает HTML-файл из пользовательского ввода
Я читаю HTML, используя компонент webbrowser в WPF. Я должен позволить.user to give there own text, upload an image and save it as a .html file
Таким образом, я могу получить значение тега:
string myTagValue = (FrameWithinGrid.Document as mshtml.HTMLDocument)
.getElementsByTagName("div")
.OfType()
.First()
.innerText;
Как я могуget the value from a text box and save it as a .html file
в том числе новый образ?
Нужна ваша помощь. Спасибо.
Это HTML-файл:
Welcome to Linguini Party!
* {
margin: 0;
}
html, body {
height: 100%;
font-family: Arial;
background-color: #e1dfe3;
color: #333333;
background-repeat: no-repeat;
}
h1 {
margin-right: 8%;
margin-left: 7%;
font-size: 450%;
text-align: center;
}
h2 {
font-size: 450%;
text-align: center;
color: #8a00ca;
font-style: italic;
}
Welcome to<br>
Linguini Party!