Ejemplo n.º 1
0
        public DummyLoaderViewModel()
        {
            IXamlSnippetProvider snippetsProvider = new SnippetProvider("Xaml\\Dummy");
            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);

            RuntimeTypeSource = new TestRuntimeTypeSource();
        }
Ejemplo n.º 2
0
        public DummyLoaderViewModel()
        {
            IXamlSnippetProvider snippetsProvider = new SnippetProvider("Xaml\\Dummy");

            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);

            RuntimeTypeSource = new TestRuntimeTypeSource();
        }
 protected GivenARuntimeTypeSource()
 {
     TypeRuntimeTypeSource = new TestRuntimeTypeSource();
 }
Ejemplo n.º 4
0
 protected GivenARuntimeTypeSource()
 {
     RuntimeTypeSource = new TestRuntimeTypeSource();
     X = new XamlInstructionBuilder(RuntimeTypeSource);
     P = new ProtoInstructionBuilder(RuntimeTypeSource);
 }