or
private System.Windows.Controls.ListBoxItem GetItemFromPoint(FrameworkElement listBox, Point CurrentPoint){ var p = listBox.TransformToVisual(App.Center.RootVisual).Transform(CurrentPoint); IEnumerable hits = VisualTreeHelper.FindElementsInHostCoordinates(p, listBox); System.Windows.Controls.ListBoxItem item = null; foreach (UIElement element in hits) { if (element is System.Windows.Controls.ListBoxItem) { item = (System.Windows.Controls.ListBoxItem)element; break; } } return item;}<telerik:RadNumericUpDown Value="{Binding DaysNumber}" Minimum="1" IsInteger="True" VerticalAlignment="Center" Margin="5" Maximum="999"> <telerik:RadNumericUpDown.NumberFormatInfo> <globalization:NumberFormatInfo NumberGroupSeparator="" NumberDecimalSeparator="." /> </telerik:RadNumericUpDown.NumberFormatInfo></telerik:RadNumericUpDown>I noticed that the gauge.xaml was embedded in the assembly "Telerik.WIndows.Controls.DataVisualization.dll" before (in Q2) and it is no longer there now. I could not find any related information in readme, anyone knows how to find this missing resource? Thanks in advance for any tips or links.
<UserControl x:Class="WpfApplication1.ChartControl" mc:Ignorable="d" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:telerik.chart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting" xmlns:telerik.charting="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting" d:DesignHeight="300" d:DesignWidth="300"> <UserControl.Resources> <Style x:Key="AxisXLineStyle" TargetType="Line"> <Setter Property="Stroke" Value="Black" /> <Setter Property="StrokeThickness" Value="1" /> </Style> <Style x:Key="AxisYLineStyle" TargetType="Line"> <Setter Property="Stroke" Value="Black" /> <Setter Property="StrokeThickness" Value="1" /> </Style> <Style x:Key="AxisXStyle" TargetType="telerik.charting:AxisX2D"> <Setter Property="AxisLineStyle" Value="{StaticResource AxisXLineStyle}" /> </Style> <Style x:Key="AxisYStyle" TargetType="telerik.charting:AxisY2D"> <Setter Property="AxisLineStyle" Value="{StaticResource AxisYLineStyle}" /> </Style> <Style x:Key="RadChartDefaultStyle" TargetType="telerik.chart:RadChart" > <Setter Property="Background" Value="Transparent" /> <Setter Property="BorderBrush" Value="Transparent" /> <Setter Property="BorderThickness" Value="0" /> <Setter Property="Margin" Value="0" /> <Setter Property="HorizontalAlignment" Value="Stretch" /> <Setter Property="HorizontalAlignment" Value="Stretch" /> <Setter Property="telerik:StyleManager.Theme" Value="Metro" /> </Style> <Style x:Key="ChartAreaDefaultStyle" TargetType="telerik.charting:ChartArea" > <Setter Property="Background" Value="Transparent"/> <Setter Property="EnableAnimations" Value="True"/> <Setter Property="AxisXStyle" Value="{DynamicResource AxisXStyle}"/> <Setter Property="AxisYStyle" Value="{DynamicResource AxisYStyle}"/> <!--<Setter Property="ItemOverlapPercent" Value="-20" />--> <Setter Property="ItemWidthPercent" Value="50" /> </Style> <Style x:Key="GridLineStyle" TargetType="Line"> <Setter Property="Stroke" Value="#D7D7D7" /> <Setter Property="StrokeThickness" Value="2" /> </Style> <Style x:Key="AxisItemLabelStyle" TargetType="TextBlock"> <Setter Property="FontSize" Value="10" /> <Setter Property="FontWeight" Value="SemiBold" /> <Setter Property="Foreground" Value="Black" /> <Setter Property="HorizontalAlignment" Value="Right" /> <Setter Property="Margin" Value="0,0,3,0" /> </Style> <telerik.charting:BrushCollection x:Key="ChartPaletteBrushes2" > <SolidColorBrush Color="#002060"/> <SolidColorBrush Color="#FFC000"/> </telerik.charting:BrushCollection> </UserControl.Resources> <Grid> <telerik:RadChart Grid.Row="0" Style="{DynamicResource RadChartDefaultStyle}" ItemsSource="{Binding Data}" Name="chart" LayoutUpdated="chart_LayoutUpdated"> <telerik:RadChart.DefaultView> <telerik:ChartDefaultView ChartLegendPosition="Bottom" > <telerik:ChartDefaultView.ChartArea > <telerik:ChartArea Style="{DynamicResource ChartAreaDefaultStyle}" LabelFormatBehavior="HumanReadable" LegendName="Legend1" PaletteBrushes="{DynamicResource ChartPaletteBrushes2}" SmartLabelsEnabled="True"> <!--<telerik:ChartArea.Annotations> <telerik.charting:CustomGridLine YIntercept="0" StrokeThickness="2" Stroke="Black" > </telerik.charting:CustomGridLine> </telerik:ChartArea.Annotations>--> <telerik:ChartArea.AxisY > <telerik:AxisY AutoRange="True" IsZeroBased="True" PlotAreaAxisVisibility="Visible" MajorTicksVisibility="Collapsed" MajorGridLinesVisibility="Visible" MinorTicksVisibility="Collapsed" StripLinesVisibility="Collapsed"> <telerik:AxisY.AxisStyles > <telerik:AxisStyles GridLineStyle="{DynamicResource GridLineStyle}" ItemLabelStyle="{DynamicResource AxisItemLabelStyle}" /> </telerik:AxisY.AxisStyles> </telerik:AxisY> </telerik:ChartArea.AxisY> <telerik:ChartArea.AxisX> <telerik:AxisX IsZeroBased="True" MajorGridLinesVisibility="Collapsed" StripLinesVisibility="Collapsed"> <telerik:AxisX.AxisStyles> <telerik:AxisStyles ItemLabelStyle="{DynamicResource AxisItemLabelStyle}"/> </telerik:AxisX.AxisStyles> </telerik:AxisX> </telerik:ChartArea.AxisX> </telerik:ChartArea> </telerik:ChartDefaultView.ChartArea> <telerik:ChartDefaultView.ChartLegend > <telerik:ChartLegend Name="Legend1" Visibility="Collapsed"/> </telerik:ChartDefaultView.ChartLegend> </telerik:ChartDefaultView> </telerik:RadChart.DefaultView> <telerik:RadChart.SeriesMappings > <telerik:SeriesMapping > <telerik:SeriesMapping.SeriesDefinition> <telerik:HorizontalBarSeriesDefinition TextBlock.TextAlignment="Right" ItemToolTipFormat="#VAL{C0}" ItemLabelFormat="#VAL{C0}" SeriesItemLabelStyle="{DynamicResource ChartSeriesItemLabelStyle}" ShowItemToolTips="True"> <telerik:HorizontalBarSeriesDefinition.Appearance > <telerik:SeriesAppearanceSettings Foreground="Black" /> </telerik:HorizontalBarSeriesDefinition.Appearance> <telerik:HorizontalBarSeriesDefinition.InteractivitySettings> <telerik:InteractivitySettings SelectionMode="Multiple" SelectionScope="Item" /> </telerik:HorizontalBarSeriesDefinition.InteractivitySettings> </telerik:HorizontalBarSeriesDefinition> </telerik:SeriesMapping.SeriesDefinition> <telerik:SeriesMapping.ItemMappings> <telerik:ItemMapping FieldName="Balance" DataPointMember="YValue"/> <telerik:ItemMapping FieldName="AcctCatTyp" DataPointMember="XCategory" /> </telerik:SeriesMapping.ItemMappings> </telerik:SeriesMapping> </telerik:RadChart.SeriesMappings> </telerik:RadChart> </Grid></UserControl>