Print Page | Close Window

Understanding the Cocktail FrameworkBootstrapper class.

Printed From: IdeaBlade
Category: Cocktail
Forum Name: Community Forum
Forum Discription: A professional application framework using Caliburn.Micro and DevForce
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3375
Printed Date: 16-Apr-2024 at 4:38am


Topic: Understanding the Cocktail FrameworkBootstrapper class.
Posted By: mgood
Subject: Understanding the Cocktail FrameworkBootstrapper class.
Date Posted: 04-Apr-2012 at 12:13pm
The FrameworkBootstrapper class has been a source of confusion mostly due to the lack of documentation. I've just updated and posted the documentation explaining what it does and how it can be customized.

http://drc.ideablade.com/xwiki/bin/view/Documentation/cocktail-application-bootstrapper - http://drc.ideablade.com/xwiki/bin/view/Documentation/cocktail-application-bootstrapper



Replies:
Posted By: mgood
Date Posted: 04-Apr-2012 at 1:05pm
Sorry, wrong link. Here's the correct one.

http://drc.ideablade.com/xwiki/bin/view/Documentation/cocktail-application-bootstrapper - http://drc.ideablade.com/xwiki/bin/view/Documentation/cocktail-application-bootstrapper


Posted By: Siyfion
Date Posted: 05-Apr-2012 at 3:41am
I think it would also be a good idea to make it clear that the code on that documentation page:

<Application x:Class="SampleApplication.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:app="clr-namespace:SampleApplication;assembly=SampleApplication.SL">
    <Application.Resources>
        <app:AppBootstrapper x:Key="Bootstrapper" />
    </Application.Resources>
</Application>

I don't think it will work for a WPF app, you've got to use:

<Application x:Class="SampleApplication.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:app="clr-namespace:SampleApplication;assembly=SampleApplication.SL">
    <Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary>
        <app:AppBootstrapper x:Key="Bootstrapper" />
</ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
    </Application.Resources>
</Application>


Posted By: mgood
Date Posted: 05-Apr-2012 at 4:51am
That is very true. Thank you for pointing that out. I will update the page.



Print Page | Close Window