遇到了一个有趣的问题,它只影响Surface Pro 3上的代码。当为 RadRibbonView 运行 Telerik 控件并将其最小化时,弹出窗口将在屏幕的最左侧打开。此行为不会发生在桌面上,仅在 RadRibbonTab 下方剪辑时起作用。在 Surface Pro 3 上,当视图未最小化时它可以正常工作,但在最小化时它的行为很糟糕。我正在考虑对可能导致此问题的原因进行更多调查,并正在关注 Telerik 上的一些教程:https ://docs.telerik.com/devtools/wpf/controls/radribbonview/features/ribbon-controls/ribbon-window- wpf. 在我的示例 XAML 中显示它正在使用他们的 RadRibbonWindow 但窗口顶层也会产生这个问题。我很可能也会联系 Telerik,但很好奇 Stack Overflow 上是否有人看到并知道如何处理它。
<telerik:RadRibbonWindow x:Class="TelerikTesting.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:TelerikTesting"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<telerik:RadRibbonView x:Name="RibbonView" IsMinimizable="True" IsMinimized="True" MinimizeButtonVisibility="Visible"
PopupOpened="RadRibbonView_PopupOpened">
<telerik:RadRibbonView.Items>
<telerik:RadRibbonTab Header="Home">
<telerik:RadRibbonGroup Header="HomeContent" >
</telerik:RadRibbonGroup>
</telerik:RadRibbonTab>
<telerik:RadRibbonTab Header="View" />
</telerik:RadRibbonView.Items>
</telerik:RadRibbonView>
</telerik:RadRibbonWindow>
那么这不应该发生。