The width of the popup element that shows the selected tab content when RadRibbonView is minimized is wrong in the following situation. A tab in the minimized ribbon is clicked to display its content, then the tab is clicked again. After that, the width of the ribbon is changed. At this point when you open the minimized content, the popup uses the previous size of the RadRibbonView control.
To work this around, you can manually update the MaxWidth of the popup content element on size changed.
public class CustomRibbonView : RadRibbonView
{
private ContentPresenter popupContent;
public override void OnApplyTemplate()
{
base.OnApplyTemplate();
this.popupContent = this.GetTemplateChild("SelectedTabContentPopup") as ContentPresenter;
}
protected override void OnRenderSizeChanged(SizeChangedInfo sizeInfo)
{
base.OnRenderSizeChanged(sizeInfo);
if (popupContent != null)
{
double popupContentPadding = 16;
popupContent.MaxWidth = this.ActualWidth - popupContentPadding;
}
}
}
The ScreenTip no longer is displayed on mouse over of the owner element. This reproduces only if the element is hovered before the ScreenTips of the previously hovered element is closed. In other words this happens if the two elements that contain ScreenTips are overlapping are very close to one another and there is no space that allows closing the tooltip while moving the mouse.
To work this around, subscribe to the Opened event of the ScreenTip control and set its Visibility to Visible if the element was previously Collapsed.
<Window.Resources>
<Style TargetType="telerik:ScreenTip">
<EventSetter Event="Opened" Handler="ScreenTip_Opened" />
</Style>
</Window.Resources>
private void ScreenTip_Opened(object sender, RoutedEventArgs e)
{
var screenTip = (ScreenTip)sender;
if (screenTip.Visibility == Visibility.Collapsed)
{
screenTip.Visibility = Visibility.Visible;
}
}
In XP and Windows10, the window goes behind the windows task bar when it is maximized. The problem manifests itself if we set explicitly the "WindowStyle" property of the RadRibbonWindow. With its "default" value, the problem do not exists. It is also reproduced when AllowTransparency = True (it requires WindowStyle = None), which is needed to set a drop shadow effect.
1. When the RibbonWindow is maximized the draggable area ends below the WindowTitle
2. In Normal state - the draggable area could be expanded in Material, Fluent and Crystal themes
A possible workaround is to change the WindowCaptionHeight property:
The issue is reproducible in Fluent theme as well.
Several galleries in collapsed state. Open rightmost so that its popup is outside wpf window. Then resize the window so that gallery goes into large state. The height of the RibbonGallery is incorrect and smaller than expected. Workaround is to set MinHeight to (for example 67) to all RibbonGalleries.
Windows10 on two monitors, at least one of them is with higher DPI -125 , 150 %. This leads to unexpected black gap (glitch) between the RibbonWindow TitleBar and Content. Partial workaround is to set manually a margin on the WindowDecorator: private void RadRibbonWindow_Loaded(object sender, RoutedEventArgs e) { Grid windowDecorator = this.ChildrenOfType<Grid>().FirstOrDefault(x => x.Name == "MaximizedWindowDecorator"); windowDecorator.Margin = new Thickness(0, -1, 0, 0); }
Currently, RadRibbonView's OnApplyTemplate method can be called after adding the new tabs so that the group and tabs are redrawn correctly.
The default size is 9. If you change it the issue occurs. This brings a visual glitch in the window. The title text is resized but the titlebar is not. Note: This is reproducible only if the DPI is larger than 100%. To work this around manually set the size of the titlebar element. private void MainWindow_Loaded(object sender, RoutedEventArgs e) { Grid windowDecorator = this.ChildrenOfType<Grid>().FirstOrDefault(x => x.Name =="MaximizeWindowDecorator"); RibbonTitleBarPanel ribbonTitlePanel = this.ChildrenOfType<RibbonTitleBarPanel>().FirstOrDefault(x => x.Name == "RibbonTitleBarPanel"); windowDecorator.RowDefinitions[0].Height = newGridLength(ribbonTitlePanel.ActualHeight); }
RibbonWindow icon appears clipped when the DPI is set larger than 100%. Also, the icon separator is offset.
Possible workaround is to set the ApplicationButtonVisibility property to Hidden.