
01.FrameworkElementFactory borderFramework = new FrameworkElementFactory(typeof(Border));02. borderFramework.SetValue(Border.BackgroundProperty, brush);03. borderFramework.SetValue(Border.OpacityProperty, 0.7D);04. 05.// set a small space between the bar/columns just like chartjs does it06. borderFramework.SetValue(Border.BorderThicknessProperty, new Thickness(2, 0, 2, 0));07. 08.... new BarSeries(){09....10. PointTemplate = new DataTemplate()11. {12. VisualTree = borderFramework,13. },14.}

We recently (a few months ago) switched from Q3 2017 to R1 2019 SP1, and traced the origin of this exception to switching to the new version. I.e. it did not have this issue with the older version.
We are using implicit styles and it only happens in the 2013 theme, at least among the themes that we use.
If we press Alt, and then "F" to get to the backstage, we get the following exception. After the exception everything works normally, but you have to press Alt again to get the access text to show on the backstage.
Object reference not set to an instance of an object.
Stack Trace:
at Telerik.Windows.Controls.RibbonView.KeyTipService.<ShowBackstageItemsTips>b__48()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

This control has been working fine until today, but now it cannot be displayed for some reason. This occurred after I added an empty WPF Custom Control Library project to the solution, which I have since removed...
The element "acbSelectPerson" could not be displayed because of a problem with Telerik.Controls.RadAutoCompleteBox:
InvalidCastException:
[A]Telerik.Windows.Controls.RadListBox cannot be cast to [B]Telerik.Windows.Controls.RadListBox. Type A originates from 'Telerik.Windows.Controls, Version=2016.2.613.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' in the context 'LoadFrom' at location 'C:\Program Files (x86)\Telerik\UI for WPF Q2 2016\Binaries\WPF45\Telerik.Windows.Controls.dll'. Type B originates from 'Telerik.Windows.Controls, Version=2016.2.613.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' in the context 'LoadNeither' at location 'C:\Users\000105261\AppData\Local\Microsoft\VisualStudio\14.0\Designer\ShadowCache\13qxpo3c.c3s\4xmqqihl.1si\Telerik.Windows.Controls.dll'.
Stack Trace:
at Telerik.Windows.Controls.RadAutoCompleteBox.InitializeItemsControlPart()
at Telerik.Windows.Controls.RadAutoCompleteBox.OnApplyTemplate()
at System.Windows.FrameworkElement.ApplyTemplate()
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.DockPanel.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.Border.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.Border.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.Control.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.Control.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
Is there a sample of using guage as aircraft horizon that supported roll and pitch values?
Thanks

I'm using the RadGridView with a dynamic object binding in order to show a grid of business objects (rows), each with properties (columns). The properties are not known before the business objects are selected.
Each property has its own viewmodel and related DataTemplate.
The GridCellPropertyContainerViewModel we are using for each grid cell encapsulates the relevant PropertyContent, so its DataTemplate uses a ContentControl, like so:
<DataTemplate DataType="{x:Type local:GridCellPropertyContainerViewModel}"> <ContentControl Content="{Binding PropertyContent, ValidatesOnExceptions=True, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}" /></DataTemplate> In my code-behind for the following XAML fragment, I would like to do "MyTextBox.Focus()", but MyTextBox is not accessible. Is there a way I can access it?
<Grid>
<telerik:RadPropertyGrid Item="{Binding}"
RenderMode="Flat"
AutoGeneratePropertyDefinitions="False"
DescriptionPanelVisibility="Collapsed"
SearchBoxVisibility="Collapsed"
SortAndGroupButtonsVisibility="Collapsed"
FieldIndicatorVisibility="Collapsed"
Loaded="RadPropertyGrid_Loaded"
LabelColumnWidth="150">
<telerik:RadPropertyGrid.PropertyDefinitions>
<telerik:PropertyDefinition DisplayName="Text"
GroupName="Text Properties"
OrderIndex="0">
<telerik:PropertyDefinition.EditorTemplate>
<DataTemplate>
<TextBox x:Name="MyTextBox"
TextWrapping="Wrap"
AcceptsReturn="True"
AcceptsTab="True"
Height="60"
VerticalContentAlignment="Top"
Text="{Binding Text, UpdateSourceTrigger=PropertyChanged}"/>
</DataTemplate>
</telerik:PropertyDefinition.EditorTemplate>
</telerik:PropertyDefinition>
</telerik:RadPropertyGrid.PropertyDefinitions>
</telerik:RadPropertyGrid>
</Grid>
