New User

May 27, 2012 at 9:15 PM

Hello,

I'm quite new to WPF and i'm following the documentation for fluent.

I'm blocking at the top of the 3rd page with that : 

<Application.Resources><!--Attach Default Fluent Control's Theme--><ResourceDictionary Source="pack://application:,,,/Fluent;Component/Themes/Office2010/Silver.xaml" /></Application.Resources>

Visual Studio don't recognise the resourcedictionary.... and i have added the fluent.dll in the reference.. any idea ?

thanks in advance,

Cyril

Coordinator
May 27, 2012 at 9:19 PM

Any errors messages will be helpful

Daniel

Coordinator
May 27, 2012 at 9:20 PM

Are you adding in the App.xaml?

May 27, 2012 at 9:24 PM

yes, i put it in the app.xaml

<Application x:Class="VegaBanque.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             StartupUri="MainWindow.xaml">
    <Application.Resources>
        <!--Attach Default Fluent Control's Theme-->
        <ResourceDictionary Source="pack://application:,,,/Fluent;Component/Themes/Office2010/Silver.xaml" />
    </Application.Resources>

</Application>

 

there are the two errors : 

Error 1 Unable to load the metadata for assembly 'Fluent'. This assembly may have been downloaded from the web.  See http://go.microsoft.com/fwlink/?LinkId=179545.  The following error was encountered during load: Could not load file or assembly 'Fluent, Version=2.0.0.0, Culture=neutral, PublicKeyToken=3e436e32a8c5546f' or one of its dependencies. Le fichier spécifié est introuvable. D:\Cyril\Mes Docs\Visual Studio 2010\Projects\VegaBanque\VegaBanque\MainWindow.xaml 1 1 VegaBanque

Error 2 The type 'Fluent:RibbonWindow' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. D:\Cyril\Mes Docs\Visual Studio 2010\Projects\VegaBanque\VegaBanque\MainWindow.xaml 1 2 VegaBanque

Coordinator
May 28, 2012 at 8:41 AM

Try to move Fluent.dll to your 'bin' folder or check 'Copy Local' in properties of Fluent in your project folder 'Referencies' in VS.

May 28, 2012 at 9:05 AM
Edited May 28, 2012 at 9:06 AM

no sorry, i have tried to do this yesterday.. the property "copy local" is set to "true" and the dll is in the bin directory.

 

Even the fluent samples don't work. there are the same errors

you can check the code there if you want : 

http://code.google.com/p/vegabanque/source/browse/#svn%2Ftrunk%2FVegaBanque

May 28, 2012 at 10:30 AM

no i don't use network drive. I have downloaded the version 2.0 of fluent, dezip it on a local drive, and then add the reference in the visual studio.

May 28, 2012 at 11:34 AM

very strange, if i build the solution all is ok and the exe don't stop .... only in the designer it is KO.

May 28, 2012 at 11:43 AM

if i add between <grid> and </grid>, the buid and execution are ok

 

<Fluent:Ribbon>
<!--Backstage-->
<Fluent:Ribbon.Menu>
<Fluent:Backstage>
</Fluent:Backstage>
</Fluent:Ribbon.Menu>
<!--Tabs-->
<Fluent:RibbonTabItem Header="Tab">
<Fluent:RibbonGroupBox Header="Group">
<Fluent:Button Name="buttonGreen" Header="Green"
Icon="Images\Green.png"
LargeIcon="Images\GreenLarge.png" />
<Fluent:Button Name="buttonGray" Header="Grey" Icon="Images\Gray.png"
LargeIcon="Images\GrayLarge.png" />
</Fluent:RibbonGroupBox>
</Fluent:RibbonTabItem>
</Fluent:Ribbon>

Coordinator
May 28, 2012 at 11:49 AM

VS designer leaves much to be desired

May 28, 2012 at 12:08 PM

ok

so all the code will be done in source code format ? very interesting ... lol

Coordinator
May 28, 2012 at 12:12 PM

We use Expression Design primarily, however we open in VS designer too.

Aug 9, 2012 at 1:15 PM

A little late but, for anyone experiencing this the answer is to unblock the dlls.

Since the zip was downloaded windows automatically blocks the dlls.

Aug 9, 2012 at 1:45 PM
If downloading any zipped file:
  • You should Unblock The Zip File itself before extracting.

Good habit and saves a lot of time

  1. Right-click the compressed file, and then click Properties.
  2. Click the General tab, click Unblock, and then click OK.
  3. Extract the files from the compressed file.

More on why you should do this can be found here KB942532