ArgumentException: WebView2 was already initialized with a different CoreWebView2Environment. Check to see if the Source property was already set or EnsureCoreWebView2Async was previously called with different values.
at Microsoft.Web.WebView2.Wpf.WebView2Base.EnsureCoreWebView2Async(CoreWebView2Environment environment, CoreWebView2ControllerOptions controllerOptions)
The keyboard arrow selection doesn't select tabs, just moves the focus. This happens when the content area of RadRibbonView is minimizable and open.
To work this around, manually select the focused tab on key down.
private void RadRibbonView_PreviewKeyDown(object sender, KeyEventArgs e)
{
var ribbon = (RadRibbonView)sender;
if (ribbon.IsMinimized && (e.Key == Key.Left || e.Key == Key.Right))
{
var focusedHeader = Keyboard.FocusedElement as RadRibbonTab;
if (focusedHeader != null && ribbon.SelectedItem != focusedHeader)
{
ribbon.SelectedItem = focusedHeader;
e.Handled = false;
}
}
}
The committed RadSpreadsheetRibbon_style.xaml renders the AI group unconditionally:
<telerikRibbon:RadRibbonGroup Header="AI">
Workaround:
private void HideAIButton()
{
var aiButton = this.spreadsheetRibbon
.ChildrenOfType<RadRibbonButton>()
.FirstOrDefault(b => b.Text == "AI Tools");
if (aiButton == null)
{
return;
}
var aiGroup = aiButton.ParentOfType<RadRibbonGroup>();
if (aiGroup != null)
{
aiGroup.Visibility = Visibility.Collapsed;
}
else
{
aiButton.Visibility = Visibility.Collapsed;
}
}
RadSyntaxEditor, while inside of a virtualized RadGridView, stealings focus immediately upon loading. It appears to do this automatically and there is no configuration to disabling. Meaning when scrolling in a RadGridView with virtualized rows, when a row with the RadSyntaxEditor materializes it will automatically steal focus from other elements.
This can be worked around using custom behavior that discards the first preview keyboard focus event that it receives.
private void onPreviewGotKeyboardFocus(object s, KeyboardFocusChangedEventArgs e)
{
if (!this.SuppressAutoFocus || _wasFocusSuppressed)
{
return;
}
_wasFocusSuppressed = true;
e.Handled = true;
}The offending line of code is this in RadSyntaxEditor.InitActiveEditorPresenter:
if (flag)
{
base.Dispatcher.BeginInvoke((Action)delegate
{
Focus();
});
}Request: Add a dependency property to allow opting-out of this default behavior. The above workaround works, but is a bit hacky for something that should probably be built-in.
In RadGanttView, the drag reorder visual element position indicators ('Before', 'After', and 'Inside') are not translated according to the application's UI culture settings (e.g., German), remaining displayed in English because they are hardcoded in the element's template.
To work this around, create a custom DragReorderTemplate and apply it via the CueTemplateSelector of GanttDragResizeVisualCue. This can be applied via an implicit style defined in App.xaml.
<Style TargetType="telerik:GanttDragResizeVisualCue">
<Setter Property="CueTemplateSelector">
<Setter.Value>
<telerik:GanttDragVisualCueContentTemplateSelector DragTemplate="{StaticResource GanttDragResizeVisualCueTemplate}"
ResizeTemplate="{StaticResource GanttDragResizeVisualCueTemplate}"
CreateDependencyTemplate="{StaticResource GanttCreateDependencyTemplate}"
DragReorderTemplate="{StaticResource CustomGanttDragReorderTemplate}" />
</Setter.Value>
</Setter>
</Style>
The automation properties are not read by screen readers (Windows Narrator).
Steps to reproduce:
1. Open Word 2016 or later. Create a new blank document. Type any text. **File → Save As** → `original.docx`.Implement the export of notes (footnote, endnote) in the PdfFormatProvider of the RadRichTextBox.