我正在爲我的應用程序使用System.Windows.Controls.Ribbon
庫。一切工作都非常好,除非我最大化窗口開始脫離屏幕。WPF功能區:最大化窗口關閉屏幕
我也注意到,與其他WPF應用程序,但當您使用RibbonWindow
它變得更糟。
下面是我的源代碼(沒有什麼真正令人興奮的,我認爲):
<RibbonWindow
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="WpfApplication1.MainWindow"
Title="TestWindow" Height="350" Width="525" Background="LightSteelBlue">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Ribbon Grid.Row="0">
<RibbonTab x:Name="TestRibbon" Header="TestRibbon">
<RibbonGroup>
<RibbonButton x:Name="TestButton" Label="Button" LargeImageSource="traffic_lights_green.png" />
</RibbonGroup>
</RibbonTab>
</Ribbon>
<ContentControl Grid.Row="1">
</ContentControl>
</Grid>
</RibbonWindow>
是否有某種方式來阻止這樣的窗口?
見http://stackoverflow.com/a/12567883/183367是否有幫助。 –
微軟錯誤:http://connect.microsoft.com/VisualStudio/feedback/details/775972/wpf-ribbon-window-the-border-is-too-thin – jbe
只需使用http://fluent.codeplex.com/使用起來更加方便,甚至beta版本也適用於我們的多個生產應用程序 – Staeff