Using with VB.net

Apr 20, 2011 at 1:32 PM

I add reference to project , application.xaml is
<Application x:Class="Application"
    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>

 

and MainWindow.xaml is

<Fluent:RibbonWindow x:Class="Window"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
    Title="Fluent.Sample.ColorGallery" Width="500" Height="250" Background="#FFEBEDF0" x:Name="window">

    <Grid>
        <Fluent:Ribbon>
        </Fluent:Ribbon>
    </Grid>
</Fluent:RibbonWindow>

 

it doesn't work... same way in C# works great. Where is the problem?

<!--Attach Default Fluent Control's Theme-->
Apr 21, 2011 at 4:24 AM

Open the MainWindow.g.vb file and where it has Inherits Fluent.RibbonWindow replace it with Inherits Global.Fluent.RibbonWindow. This fixed it for me, however, since this file is re-generated everytime you add something this can become a nuisance. I think if you can find out how to make it a global Inherit it would fix it for good.

Sep 12, 2012 at 2:33 PM

I have the same issue, is there no way to get it work with vb.net.
Its not usable if i have to change to global evry control

Sep 17, 2012 at 8:42 AM

I have no issues using it with vb.net. You may check my projectfiles at biller.codeplex.com

Developer
Oct 22, 2012 at 6:41 PM

You have got:

x:Class="Window"

shouldn't it be:

x:Class="MainWindow"

????

Jan 23, 2013 at 10:39 AM

Hi LastElb,

It was in German. :)

Thanks so much for your code. Now I can fully understand on how to use it.
Just need to convert all words into English first. :)

THANKS A BUNCH!!

Neoral 

Jan 23, 2013 at 11:20 AM

I know. Glad I could help you though