Beispiel #1
0
        protected override void ConfigurePresentationFramework(PresentationFrameworkConfiguration module)
        {
            module.Using(x => x.ConventionManager<DefaultConventionManager>())
                .Configured(x => {
                    x.AddElementConvention<BusyIndicator>("IsBusyChanged", BusyIndicator.IsBusyProperty, (c, o) => c.IsBusy = (bool)o, c => c.IsBusy);
                    x.AddElementConvention<Rating>("ValueChanged", Rating.ValueProperty, (c, o) => c.Value = (double?)o, c => c.Value);
                });

            module.With.ShellFramework();
        }
Beispiel #2
0
        protected override void ConfigurePresentationFramework(PresentationFrameworkConfiguration module)
        {
            module.With.ShellFramework()
            .ConfigureDeepLinking <DeepLinkStateManager, DefaultHistoryCoordinator>()
            .RedirectViewNamespace("Fab.Client.Shell.Views");

            module.RegisterAllScreensWithSubjects(true)
            .Using(x => x.ViewLocator <DefaultViewLocator>())
            .Configured(x => x.AddNamespaceAlias("Fab.Client.Models", "Fab.Client.Shell.Views"));
        }
Beispiel #3
0
        protected override void ConfigurePresentationFramework(PresentationFrameworkConfiguration module)
        {
            module.With.ShellFramework()
                .ConfigureDeepLinking<DeepLinkStateManager, DefaultHistoryCoordinator>()
                .RedirectViewNamespace("Caliburn.Silverlight.NavigationShell.Shell.Views");

            module
                .RegisterAllScreensWithSubjects(true)
                .Using(x => x.ViewLocator<DefaultViewLocator>())
                    .Configured(x =>{
                        x.AddNamespaceAlias("Caliburn.Silverlight.NavigationShell.Framework",
                                            "Caliburn.Silverlight.NavigationShell.Shell.Views");
                    });
        }
Beispiel #4
0
 protected override void ConfigurePresentationFramework(PresentationFrameworkConfiguration module)
 {
     module.RegisterAllScreensWithSubjects();
     ExecuteBootsrapTasks();
 }
 protected override void given_the_context_of()
 {
     _config = CaliburnModule<PresentationFrameworkConfiguration>.Instance;
     _module = _config;
 }
Beispiel #6
0
 protected override void ConfigurePresentationFramework(PresentationFrameworkConfiguration module)
 {
     module.RegisterAllScreensWithSubjects();
     ExecuteBootsrapTasks();
 }
Beispiel #7
0
 protected override void given_the_context_of()
 {
     config = CaliburnModule <PresentationFrameworkConfiguration> .Instance;
     module = config;
 }