Thanks for the reply.  This looks like what I currently have but it still 
doesn't work.  Currently there is only one window in the installer.  Am I 
missing something?

<Window x:Class="TestInstaller.Views.InstallView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation";
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml";
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"; 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"; 
        mc:Ignorable="d" 
        Width="789"
        Height="400"
        WindowStyle="None"
        ResizeMode="NoResize"
        AllowsTransparency="True"
        Background="Transparent" >
    <Window.Resources> 
                <ResourceDictionary 
Source="pack://application:,,,/Views/Style/ButtonStyles.xaml"/>
    </Window.Resources>

Nicholas Miller (Network Administrator) 
LiveTechnology Holdings, Inc. 
LiveTechnology Park: 16 Sterling Lake Rd, Tuxedo Park, NY 10987 
Phone: 845.351.5100 Direct: 845.535.6205 Fax: 845.351.5102 
Email: nmil...@livetechnology.com 
Website: www.LiveTechnology.com

-----Original Message-----
From: ptr [mailto:ptrajku...@gmail.com] 
Sent: Monday, April 08, 2013 2:59 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Visual Styles in Wix BA

I had the same issue. The cause seem to be that for a regular WPF application 
there is always an Application.Current

The boostrapper kinda fakes it so there is no application.Current and as a 
consequence you cannot have any application level resources for a managed 
boostrapper. What I ended up doing is having a

    <Page.Resources>
        <ResourceDictionary
Source="pack://application:,,,/Styles/Styles.xaml" />
    </Page.Resources>

for every window/page in my boostrapper. This works fine.

Hope it helps
Raj



On Mon, Apr 8, 2013 at 12:02 PM, Marco Tognacci <mark...@live.it> wrote:

> How do you refere to the resource dictionary, perhaps do you have 
> copied it to the output folder?If you don't add any other item to the 
> bundle paylod you have only the WixBA.dll in the temp folder where 
> it's a started, so you need to have all the resources embedded on the 
> dll.If you can, you could post your sample project.
>
> > From: jacob.hoo...@greenheck.com
> > To: wix-users@lists.sourceforge.net
> > Date: Mon, 8 Apr 2013 17:50:26 +0000
> > Subject: Re: [WiX-users] Visual Styles in Wix BA
> >
> > I don't do much with managed BA's, but there is a difference between 
> > a
> standard WPF Exe project and a BA which is a DLL. You might want to 
> have a look at the Wix BA (src\Setup\WixBA) to see if there is an 
> example to go by there.
> >
> > -----Original Message-----
> > From: Nick Miller [mailto:nmil...@livetechnology.com]
> > Sent: Monday, April 08, 2013 12:19 PM
> > To: wix-users@lists.sourceforge.net
> > Subject: [WiX-users] Visual Styles in Wix BA
> >
> > Hi All,
> >
> > I am fairly new to Wix, and I am running into a strange issue that I
> can't seem to figure out.  I have a simple bootsrapper application 
> that works fine until I add a resource dictionary to the wpf 
> component.  These resource dictionaries work fine on a normal wpf 
> application, however when I add it to the BA, it builds fine but the 
> installer crashes.  Is there anything I need to add to the resource 
> dictionaries to get them to work with the BA?
> >
> > Thanks,
> > Nick
> >
> > Nicholas Miller (Network Administrator) LiveTechnology Holdings, 
> > Inc.
> > LiveTechnology Park: 16 Sterling Lake Rd, Tuxedo Park, NY 10987
> > Phone: 845.351.5100 Direct: 845.535.6205 Fax: 845.351.5102
> > Email: nmil...@livetechnology.com<mailto:nmil...@livetechnology.com>
> > Website: www.LiveTechnology.com<http://www.livetechnology.com/>
> >
> >
> ----------------------------------------------------------------------
> --------
> > Minimize network downtime and maximize team effectiveness.
> > Reduce network management and security costs.Learn how to hire the 
> > most
> talented Cisco Certified professionals. Visit the Employer Resources 
> Portal http://www.cisco.com/web/learning/employer_resources/index.html
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
> ----------------------------------------------------------------------
> --------
> > Minimize network downtime and maximize team effectiveness.
> > Reduce network management and security costs.Learn how to hire the 
> > most talented Cisco Certified professionals. Visit the Employer 
> > Resources Portal 
> > http://www.cisco.com/web/learning/employer_resources/index.html
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> ----------------------------------------------------------------------
> -------- Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire the 
> most talented Cisco Certified professionals. Visit the Employer 
> Resources Portal 
> http://www.cisco.com/web/learning/employer_resources/index.html
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire the most 
talented Cisco Certified professionals. Visit the Employer Resources Portal 
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to