public WpfLoaderViewModel() { IXamlSnippetProvider snippetsProvider = new XamlSnippetProvider(typeof(Dummy).Assembly, "Xaml.Tests.Resources.Wpf.resources"); Snippets = snippetsProvider.Snippets; LoadCommand = new RelayCommand(o => LoadXamlForWpf(), o => Xaml != string.Empty); RuntimeTypeSource = new WpfRuntimeTypeSource(); }
public WpfLoaderViewModel() { IXamlSnippetProvider snippetsProvider = new SnippetProvider("Xaml\\Wpf"); Snippets = snippetsProvider.Snippets; LoadCommand = new RelayCommand(o => LoadXamlForWpf(), o => Xaml != string.Empty); RuntimeTypeSource = new WpfRuntimeTypeSource(); }
public WpfLoaderViewModel() { IXamlSnippetProvider snippetsProvider = new XamlSnippetProvider(typeof(Dummy).Assembly, "Xaml.Tests.Resources.Wpf.resources"); Snippets = snippetsProvider.Snippets; LoadCommand = new RelayCommand(o => LoadXamlForWpf(), o => Xaml != string.Empty); WiringContext = WiringContextFactory.GetContext(new TypeFactory()); }
public DummyLoaderViewModel() { IXamlSnippetProvider snippetsProvider = new XamlSnippetProvider(typeof(XamlResources).Assembly, "Xaml.Tests.Resources.Dummy.resources"); Snippets = snippetsProvider.Snippets; Xaml = XamlResources.ChildCollection; SetSelectedItemCommand = new RelayCommand(o => SelectedItem = (InstanceNodeViewModel)o, o => o != null); LoadCommand = new RelayCommand(Execute.Safely(o => LoadXaml()), o => Xaml != string.Empty); WiringContext = DummyWiringContext.Create(new TypeFactory()); }