CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets for: CodeFuzion
C#
    public class ViewModelLocator {
        public ViewModelLocator() {
            //if (!ViewModelBase.IsInDesignModeStatic)
            CompositionInitializer.SatisfyImports(this);
        }
 
                //If I do not use AllowDefault = true, the Design Time blows up saying it cannot
                //  match the export to the import
        [Import(AllowDefault = true)]
        public OrbitScreenViewModel SomeViewModelInstance { get; set; }
by CodeFuzion   March 20, 2010 @ 11:11am
Tags:
404 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate