namespace Common.UI.ViewModels { using Common.UI.Infrastructure; using System; using System.Windows.Input; internal class MainWindowVM : BaseViewModel { public MainWindowVM() { this.SetSourceCommand = new Command(this.SetSourceCommandHandler); this.SetSourceCommandHandler("EregisterManuelProgramming.xaml"); } private Uri source; public Uri Source { get => this.source; set => this.Set(vm => vm.source = value); } public ICommand SetSourceCommand { get; } private void SetSourceCommandHandler(string url) => this.Source = new Uri(url, UriKind.Relative); } }