Tape using .Net 4.5

So, I was looking for new features in .NET 3.5, and I found that the feed is now the native API for it. I tried the program in WPF using it by including "System.Windows.Controls.Ribbon.dll" and followed the example given in msdn added

 "xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"

but got an error Error 1 The type or name of the Controls namespace does not exist in the Microsoft.Windows namespace (do you miss the assembly reference?) C: \ users \ ABC \ documents \ visual studio 11 \ Projects \ WpfApplication1 \ WpfApplication1 \ obj \ Debug \ MainWindow.g.cs 12 25 WpfApplication1 "

I did not find any "Microsoft.Windows.Controls.Ribbon" that was added, I searched the Internet, but could not find the feed in refrence.Net 4.5, although there is a lot for .Net4 as some external API, I did not receive a response even on the MSDN forum. Does anyone working on .net 4.5 know what I am missing in the example? "http://msdn.microsoft.com/en-us/library/system.windows.controls.ribbon.ribbon(v=vs .110) .aspx" the above example is on this site.

+5
source share
1 answer

Add link to

System.Windows.Controls.Ribbon

Then you can use <Ribbon> in your XAML, without too much mess.

<Window x:Class="Test"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Ribbon>
            <!-- controls -->
        </Ribbon>
    </Grid>
</Window>

But when I look at your code, the namespace is System.Windows .... and not Microsoft.Windows ....

+12
source

All Articles