下午好,
我们使用RadMap的SelectionRectangleChanged事件允许用户(去)选择带有方框的地图元素。在事件处理程序中,我们使用层的GetItemsInRectangle函数来查看所选区域内的内容,但这是我们遇到LineData对象问题的地方。拖动一个不接触边缘但距离边缘足够近(可能在LineData的包围框内)的选择矩形,会错误地将该行识别为矩形内的行。请参阅所附的屏幕截图,以获得一个选择矩形的示例,该矩形内不应包含任何元素,但实际上将其右侧的长行报告为它所包含的元素。这也可以复制与所附的项目:
问候
杜米尼克沙赫特
当使用SeriesDescriptorSelector属性时,RadChartView的seriesprovider的SeriesCreated事件永远不会被调用。
为了解决这个问题,你可以创建一个自定义的图表系列描述符,并覆盖它的CreateInstanceCore方法。
公共类CustomScatterSeriesDescriptor:ScatterSeriesDescriptor{受保护的覆盖ChartSeriesCreateInstanceCore(对象上下文){var级数= (ScatterSeries)基地.CreateInstanceCore(上下文);//指定你需要的任何设置返回系列;}}
当图表系列的ItemsSource填充了实现ICustomTypeProvider接口的项,并且系列的值绑定属性(ValueBinding、CategoryBinding、YValueBinding、XValueBinding等)被分配给动态属性时,就会发生ArgumentException。当值绑定属性被分配给指向属性名的PropertyNameDataPointBinding对象时,就会发生这种情况。如果在XAML中使用字符串值设置属性,也会发生这种情况。
要解决这个问题,可以使用GenericDataPointBinding < T >在代码隐藏中定义的类,以便分配值绑定属性。
或者,您也可以实现自定义PropertyNameDataPointBinding类并重写其GetValue()方法。在该方法中,您可以检查项目类型以及是否为ICustomTypeProvider,然后执行获取值的自定义代码。自定义的PropertyNameDataPointBinding实现显示在附加的CustomPropertyNameDataPointBinding.zip文件中。要在XAML中使用自定义绑定类,可以使用以下语法:
<telerik: ScatterPointSeries。YValueBinding><本地:CustomPropertyNameDataPointBindingPropertyName=“Y”/>telerik: ScatterPointSeries。YValueBinding>
切换Windows 11主题的颜色变化到不同的一个云母效果没有正确应用。当Windows 11版本为22621时,就会出现这种情况。
一个临时的解决方法是通过设置WindowEffectsHelper.BackdropMaterial的属性RadWindow来没有一个.
<telerik: RadWindowx:类=”的例子。主窗口”xmlns=“http://schemas.microsoft.com/winfx/2006/xaml/presentation”xmlns: x=“http://schemas.microsoft.com/winfx/2006/xaml”xmlns: telerik=“http://schemas.telerik.com/2008/xaml/presentation”xmlns:助手=“clr-namespace: Telerik.Windows.Controls.Theming.Helpers;装配= Telerik.Windows.Controls”助手:WindowEffectsHelper。BackdropMaterial=“没有”头=“RadWindow”>
另一种方法是使用DynamicResource当基于自定义样式的RadWindow的默认一个。此外,当改变颜色变化时,合并的资源字典可以被清除,然后再次合并。这样一来,云母效应就不必关闭了。
<telerik: RadWindowxmlns: telerik=“http://schemas.telerik.com/2008/xaml/presentation”x:类=”的例子。主窗口”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: mc=“http://schemas.openxmlformats.org/markup-compatibility/2006”xmlns:本地=“clr-namespace: WindowWindows11ThemeTest”主持人:可忽略的=“d”风格=“{DynamicResource RadWindowStyle}”头=“主窗口”高度=“450”宽度=“800”>
私人保龄球isDarkPalette;私人无效RadButton_Click(对象发送者,RoutedEventArgs e){如果(这.isDarkPalette) {Windows11Palette.LoadPreset(Windows11Palette.ColorVariation.System);这.isDarkPalette =假;}其他的{Windows11Palette.LoadPreset (Windows11Palette.ColorVariation.Dark);这.isDarkPalette =真正的;}这.MergeDictionaries ();}私人无效MergeDictionaries(){Application.Current.Resources.MergedDictionaries.Clear ();Application.Current.Resources.MergedDictionaries.Add (新ResourceDictionary() {Source =新Uri (“/ Telerik.Windows.Themes.Windows11;组件/主题/ System.Windows.xaml”, UriKind.RelativeOrAbsolute)});Application.Current.Resources.MergedDictionaries.Add (新ResourceDictionary() {Source =新Uri (“/ Telerik.Windows.Themes.Windows11;组件/主题/ Telerik.Windows.Controls.xaml”, UriKind.RelativeOrAbsolute)});Application.Current.Resources.MergedDictionaries.Add (新ResourceDictionary() {Source =新Uri (“/ Telerik.Windows.Themes.Windows11;组件/主题/ Telerik.Windows.Controls.Navigation.xaml”, UriKind.RelativeOrAbsolute)});}
当对表单字段进行更改,然后将其平展并调用查看器的Save方法时,会抛出一个异常:keynotfoundexception: '给定的键不存在于字典中。'
代码来重现问题:
这.pdfViewer.Document.AcroForm.FlattenFormFields ();使用(流输出=文件。OpenWrite (“Exported.pdf”)) {这.pdfViewer.Save(输出);}
这.pdfViewer.Document.AcroForm.FlattenFormFields ();使用(流输出=文件。OpenWrite (“Exported.pdf”)) {PdfFormatProvider提供者=新PdfFormatProvider ();提供者。出口(这.pdfViewer。文档输出);}
控件的默认控件模板中RadSlider,跟踪元素由a表示ContentControl控制。当使用Xaml版本的程序集,则需要提取TrackStyle,以便在此基础上进行定制。一种替代方法是使用ChildrenOfType方法来检索ContentControl与x: Name = "追踪"并应用所需的修改。
当只需要更新这个Track元素的Width/Height属性时,这两种方法都有点难以承受。
我们可以暴露额外的属性来改变这个ContentControl (x:Name="Track")的宽度/高度值。
GridView的组标题的背景在Windows 11主题的深色变化中有一个浅色背景。
这只会重现RadGridView的GroupRenderMode属性被设置为嵌套(默认值)。
为了解决这个问题,将RadGridView的GroupRenderMode属性设置为Flat。
向当前文档插入纯文本内容控件。
在内容控件中输入一个字符。
撤消,然后重做。
内容控件保持占位符模式,这是不应该的。
System.Drawing.Common包安装在为. net Core 3.1 Core、. net 5和. net 6构建Telerik.Windows.Controls.Navigation.dll的项目中。当前包版本为4.7.0。
将包更新到最新可用版本。
加载文档时观察到: