New Posts New Posts RSS Feed: Understanding the Cocktail FrameworkBootstrapper class.
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Understanding the Cocktail FrameworkBootstrapper class.

 Post Reply Post Reply
Author
mgood View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 18-Nov-2010
Location: Emeryville, CA
Posts: 583
Post Options Post Options   Quote mgood Quote  Post ReplyReply Direct Link To This Post Topic: Understanding the Cocktail FrameworkBootstrapper class.
    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.



Edited by mgood - 06-Nov-2012 at 12:50pm
Back to Top
mgood View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 18-Nov-2010
Location: Emeryville, CA
Posts: 583
Post Options Post Options   Quote mgood Quote  Post ReplyReply Direct Link To This Post Posted: 04-Apr-2012 at 1:05pm
Back to Top
Siyfion View Drop Down
Groupie
Groupie
Avatar

Joined: 22-Mar-2012
Location: Bristol, UK
Posts: 47
Post Options Post Options   Quote Siyfion Quote  Post ReplyReply Direct Link To This Post 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>
Back to Top
mgood View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 18-Nov-2010
Location: Emeryville, CA
Posts: 583
Post Options Post Options   Quote mgood Quote  Post ReplyReply Direct Link To This Post Posted: 05-Apr-2012 at 4:51am
That is very true. Thank you for pointing that out. I will update the page.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down