开发者

Ribbon Control showing Windows 2000 Minimise/Maximise/Close buttons

I'm trying to get a standard Ribbon Control working using VS 2010 on Windows XP. I've downloaded/installed 开发者_JS百科the latest version of the Ribbon Control (October 2010) from the Microsoft Download Centre. From here I created a new project with the "WPF Ribbon Application" template.

The control itself works fine, but it seems to apply the Windows 2000 theme to the Minimise/Maximise/Close buttons, as can be seen in this screenshot:

Ribbon Control showing Windows 2000 Minimise/Maximise/Close buttons

I've tried changing the main window style to Aero in app.xaml (no effect on top right controls). I also tried (and failed) to set the Ribbon style to Office2007 (apparently the most recent version of the ribbon control has removed this feature).

Did I install something incorrectly? I installed both the *.msi files in the link. Am I missing a reference?

Any help would be much appreciated.


I figured it out, I know this is an old question but he this pops up in Google so for all the people that will see this in the future!

ANSWER DOWN HERE!!!

https://stackoverflow.com/a/21675624/3239917

Instead of the tags <ribbon:RibbonWindow on the beginning of the xaml, Make it <Window .

Then in your class delete your : RibbonWindow

After that go back to your XAML, and change the Ribbon margin to -22 :

 <r:Ribbon x:Name="Ribbon" prism:RegionManager.RegionName="RibbonRegion" Margin="0,-22,0,0" >
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜