-
Notifications
You must be signed in to change notification settings - Fork 433
Expand file tree
/
Copy pathMainViewModel.cs
More file actions
37 lines (30 loc) · 854 Bytes
/
MainViewModel.cs
File metadata and controls
37 lines (30 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using CefSharp.MinimalExample.Wpf.Binding;
using System.Windows.Input;
namespace CefSharp.MinimalExample.Wpf
{
public class MainViewModel : BindableBase
{
private string html;
public MainViewModel()
{
ViewHtmlCommand = new RelayCommand(OnViewHtml);
Address = "www.google.com";
}
public string Html
{
get { return html; }
set { SetProperty(ref html, value); }
}
private string address;
public string Address
{
get { return address; }
set { SetProperty(ref address, value); }
}
public ICommand ViewHtmlCommand { get; private set; }
private void OnViewHtml()
{
Html = "<div dir=\"ltr\"><b><i>test</i></b></div>\r\n";
}
}
}