Duplicated
Last Updated: 13 Jan 2025 11:28 by Maximilian

Hello,

HtmlDataProvider will throw an exception on export or when used by a RadRichTextBox, when using a html containing the length value "NaN", which doesn't seem to be a standard approved value, but nevetheless it is a special case because other invaild values are simply ignored while this one triggers two exceptions - one of which is hard to catch and crashes the whole application.

Code to reproduce:  Console App / .Net Framework 4.8 / Package Telerik.Windows.Documents.FormatProviders.Html.for.Wpf 2022.3.912

using System; using Telerik.Windows.Documents.FormatProviders.Html; using Telerik.Windows.Documents.Model; namespaceHtmlProviderCrash { internalclassProgram { static void Main(string[] args) { var htmlContent = "<img src=\"https://static.cleverpush.com/notification/icon/92fYF7FtKbthsezwS.png?element=Le7adDwC\" " + "alt=\"\" style=\"display: inline-table;max-width: 100%;width: 300px;\" width=\"300\" height=\"NaN\" class=\"cp-element-image light-img\">"; HtmlFormatProvider htmlProvider = new HtmlFormatProvider(); RadDocument document = htmlProvider.Import(htmlContent); try { var export = htmlProvider.Export(document); } catch (Exception ex) { var ka = ex.ToString(); } while (Console.ReadKey().KeyChar != 'x') { } } } }

Message	"MeasureOverride returned NaN: Telerik.Windows.Documents.Layout.ImageLayoutBox"	string

at Telerik.Windows.Documents.Layout.LayoutElement.Measure(SizeF availableSize)
   at Telerik.Windows.Documents.Layout.ParagraphLayoutBox.MeasureCurrentGroupSize(ParagraphLayoutBoxMeasureContext context, SizeF measureSize, Func`1 GetCurrentXDefaultValue, LinkedList`1 currentGroupInlines)
   at Telerik.Windows.Documents.Layout.ParagraphLayoutBox.MeasureOverride(SizeF availableSize)
   at Telerik.Windows.Documents.Layout.LayoutElement.MeasureCore(SizeF availableSize)
   at Telerik.Windows.Documents.Layout.LayoutElement.Measure(SizeF availableSize)
   at Telerik.Windows.Documents.Layout.SectionLayoutBox.MeasureOverrideInternal(SizeF availableSize)
   at Telerik.Windows.Documents.Layout.SectionLayoutBox.MeasureOverride(SizeF availableSize)
   at Telerik.Windows.Documents.Layout.LayoutElement.MeasureCore(SizeF availableSize)
   at Telerik.Windows.Documents.Layout.LayoutElement.Measure(SizeF availableSize)
   at Telerik.Windows.Documents.Layout.DocumentLayoutBox.MeasureOverrideInternal(SizeF availableSize)
   at Telerik.Windows.Documents.Layout.DocumentLayoutBox.MeasureOverride(SizeF availableSize)
   at Telerik.Windows.Documents.Layout.LayoutElement.MeasureCore(SizeF availableSize)
   at Telerik.Windows.Documents.Layout.LayoutElement.Measure(SizeF availableSize)
   at Telerik.Windows.Documents.Model.RadDocument.Measure(SizeF measureSize)
   at Telerik.Windows.Documents.Model.RadDocument.MeasureAndArrangeInDefaultSize()
   at Telerik.Windows.Documents.Model.RadDocument.EnsureDocumentMeasuredAndArranged()
   at Telerik.Windows.Documents.FormatProviders.Html.Export.HtmlDocumentExporter.Export(RadDocument document, Stream output)
   at Telerik.Windows.Documents.FormatProviders.Html.HtmlFormatProvider.Export(RadDocument document, Stream output)
   at Telerik.Windows.Documents.FormatProviders.Html.HtmlFormatProvider.Export(RadDocument document)
   at HtmlProviderCrash.Program.Main(String[] args)

Message "The image data generated an overflow during processing"

   at System.Windows.Media.Imaging.TransformedBitmap.FinalizeCreation() in System.Windows.Media.Imaging\TransformedBitmap.cs:line 216
   at System.Windows.Media.Imaging.TransformedBitmap.EndInit() in System.Windows.Media.Imaging\TransformedBitmap.cs:line 112
   at System.Windows.Media.Imaging.BitmapImage.FinalizeCreation() in System.Windows.Media.Imaging\BitmapImage.cs:line 505
   at System.Windows.Media.Imaging.BitmapImage.EndInit() in System.Windows.Media.Imaging\BitmapImage.cs:line 319
   at Telerik.Windows.Documents.Model.ImageDocumentElementHelper.CreateImageSourceCore(BitmapCreateOptions createOptions, Byte[] bytes, Size renderingSize, String& extension, Byte[]& resultBytes)
   at Telerik.Windows.Documents.Model.ImageDocumentElementHelper.CreateImageSource(Byte[] bytes, Size imageSize, Size scaleFactor, String& extension, Byte[]& resultBytes)
   at Telerik.Windows.Documents.Model.ImageDocumentElementHelper.InitializeRawImageData(IImageDocumentElement imageElement, Byte[] bytes, Size scaleFactor, String& extension)
   at Telerik.Windows.Documents.Model.ImageDocumentElementHelper.InitInternal(IImageDocumentElement imageElement, Byte[] bytes, Size size, String extension, Boolean isUserInitiated)
   at Telerik.Windows.Documents.Model.ImageInline.InitImageElementFromUriStream(Stream stream)
   at Telerik.Windows.Documents.Model.ImageInline.<SetStreamFromUriSource>b__0(Object s, StreamReadyEventArgs a)
   at Telerik.Windows.Documents.Utils.ResourceStreamLocator.OnStreamReady()
   at Telerik.Windows.Documents.Utils.ResourceStreamLocator.<GetStreamAsync>b__0(Object sender, OpenReadCompletedEventArgs e)
   at System.Net.WebClient.OnOpenReadCompleted(OpenReadCompletedEventArgs e)
   at System.Net.WebClient.OpenReadOperationCompleted(Object arg)
   at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()


 

Declined
Last Updated: 30 Jan 2025 19:34 by ADMIN
Created by: Romain
Comments: 1
Category: UI for WPF
Type: Feature Request
0

Hi,

it would be convenient to add an extra small font size to te existing enumerations. For instance in Windows 11 theme, could it be possible to add a XS size:

Windows11Palette.Palette.FontSizeXS = 10;
Windows11Palette.Palette.FontSizeS = 12; 
Windows11Palette.Palette.FontSize = 14; 
Windows11Palette.Palette.FontSizeM = 18; 
Windows11Palette.Palette.FontSizeL = 20; 
Windows11Palette.Palette.FontSizeXL = 28; 

Having a range in the bigger font sizes is very useful. It owuld be equally helpful to have a range on the smaller font.

Thank you for considering it :)

Duplicated
Last Updated: 26 Nov 2024 06:40 by ADMIN
Created by: n/a
Comments: 1
Category: UI for WPF
Type: Bug Report
2

Suddenly with WPF release 2024 Q4 some of pdf-s are not presented correctly. Attached file was produced with Telerik Report Designer and exported as pdf. With previous WPF version was OK.

You can check in your demo application. It is shown in previous release but not with latest.

Please make solution ASAP.

 

Regards
Janez Ovsenik

 

Duplicated
Last Updated: 27 Nov 2024 15:39 by ADMIN

After upgrading to .net 9 I get the following error when starting the published program (running it in RIDER in debug-mode doesn't create the issue).


System.TypeInitializationException: The type initializer for 'Telerik.Windows.Input.Touch.TouchManager' threw an exception.
 ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Forms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Das System kann die angegebene Datei nicht finden.

 

the mentioned assembly System.Windows.Forms is not used by me at all.

Completed
Last Updated: 12 Nov 2024 08:17 by ADMIN
Release Telerik UI for WPF 2024.4.1111 (2024 Q4)

A XamlParseException is raised when the theme's resource dictionaries are not merged in App.xaml. The missing resource is the RepeatButtonStyle resource.

To work this around, merge the resource dictionaries for the theme in the Resources collection of the App.xaml file.

Completed
Last Updated: 12 Nov 2024 09:24 by ADMIN
Release Telerik UI for WPF 2024.4.1111 (2024 Q4)
Memory leak due to GridViewRowAutomationPeer holding instance to the data item
Completed
Last Updated: 12 Nov 2024 08:17 by ADMIN
Release Telerik UI for WPF 2024.4.1111 (2024 Q4)

When trying to install one of the following nuget packages an error occurs:

  • Telerik.Windows.Controls.EntityFramework60.for.Wpf.Xaml
  • Telerik.UI.for.Wpf.AllControls.Xaml (which contains the EF6 package from the previous bullet)

The same issue manifests with the NoXaml version of the same packages.

The error message is:

Severity Code Description Project File Line Suppression State Details
Error Failed to add reference. The package 'Telerik.Windows.Controls.EntityFramework60.for.Wpf.Xaml' tried to add a framework reference to 'EntityFramework' which was not found in the GAC. This is possibly a bug in the package. Please contact the package owners for assistance.
Reference unavailable.
To work this around, To work this around, you can reference the Telerik.Windows.Controls.EntityFramework60.dll directly and manually install the EntityFramework package (version 6.4.4), instead of using the nuget package.

 

Completed
Last Updated: 12 Nov 2024 08:17 by ADMIN
Release Telerik UI for WPF 2024.4.1111 (2024 Q4)
EnumEditor in PropertyGrid is not ReadOnly when ReadOnlyEditorState="ReadOnly"
Unplanned
Last Updated: 24 Sep 2024 08:02 by Stenly
Currently, the Telerik UI for WPF product does not have an editor that works mainly with the DateTimeOffset value type. We could introduce such an editor.
Unplanned
Last Updated: 17 Sep 2024 12:32 by ADMIN

Currently the Windows 11 theme for Telerik WPF features the ability to switch backdrop material to Acrylic, Mica and None, but what it's missing the Mica ALT material.

Because of the substantial difference from the normal Mica material, and the ability it gives to create more modern looking applications we think that the addition of this backdrop material would greatly benefit an already very good looking theme!

Unplanned
Last Updated: 10 Jul 2024 08:55 by Martin Ivanov
Created by: Martin Ivanov
Comments: 0
Category: UI for WPF
Type: Feature Request
0
Add a ComboBox control with hierarchical items structure like in RadTreeView.
Unplanned
Last Updated: 05 Jul 2024 11:38 by Zac
Cobination of GetBestView() and SetView() with pixelPadding parameter set might result in such zoom value that Map does not show all of the items intended to focus in the viewport. Padding and should always visualize all items given in the list.
Declined
Last Updated: 30 Jul 2024 08:20 by ADMIN

Currently PropertyDefinitions have only one Property for DataBinding, which is very strange solution.

All these instances are DependencyObject, but at the same time they are not in the visual tree and we could not bind to a visibility or to readonly or to any other property without some starnge sorkarounds (why this was designed in this way?).

This makes these objects almost useless. becuae we cannot fully use them in an MVVM way (bindings, multiibindings, etc.)

Possible solutions:

  1. provide bindings for all properties to make them be bindable withput any workarounds
  2. Change PropertyDefinitions to something that will live inside visual tree.

 

Unplanned
Last Updated: 25 Jun 2024 05:54 by Jennifer
One is unable to paste in Excel when selecting all and copying with the top left button.
Duplicated
Last Updated: 09 May 2024 08:43 by ADMIN
Hi, this document is displaying the stamps in the wrong place. I am using this tool to load drawings published by Adobe and Autocad. The stamps that are added later do not display properly. Using Windows 10 and Windows 11, also lates Telerik Componets just released. 2024 for WPF. Please see attachment for testing.
Duplicated
Last Updated: 03 Jun 2024 09:30 by ADMIN
Created by: Rick
Comments: 1
Category: UI for WPF
Type: Feature Request
1

Hi, we have many documents (drawings) and these documents are full of stamps. Unfortunately the pdfviewer does not show them.

I am only asking for rendering stamps properly, not creating or modifying. I want to see the stamps. I also see that some stamps are rendered, not all, but some and they are displayed off the document. as if they were rotated 90deg. If no support is added, at least correct the position they are displayed at.

I have attached two pictures, one opened in Adobe and one with the viewer in my app.

 

Please consider at least fixing the display, even if no support for stamps is provided. Just display it correctly. By the way the stamps have not been flattened. that is intentional.

 

Thanks,

Unplanned
Last Updated: 19 Apr 2024 07:14 by ADMIN
RadMap control has an interesting feature in which, while zooming in, if no data is available for a zoom level, the last available image of a lower zoom level is used (scaled up to match the geographical bounds of the image). It would be really useful if the feature was available also while zooming out, allowing users to not have to have data for all zoom levels when using a custom offline provider.
Duplicated
Last Updated: 29 Mar 2024 15:24 by ADMIN
Created by: LindenauAtSOG
Comments: 1
Category: UI for WPF
Type: Bug Report
0
Using the mouse to select text inside the `PdfViewer` does not correctly select the text, sometimes it even selects the text of the next line.
The visual indicator of the selected area is slightly above the text as you can see in the attached screenshot.


You can find a fully reproducable example in the attachments


Completed
Last Updated: 11 Mar 2024 07:36 by ADMIN
Release 2024.1.312

- collision with classes CallbackBehaviour and ConcurrencyMode, collision with DuplexChannelFactory

- Collision with SecurityPolicyVersion and may others types in System.ServiceModel.Security Namespace | Microsoft Learn

[Breaking change]: WCF Client 6.0 release will no longer support net standard 2.0 · Issue #33515 · dotnet/docs · GitHub

- - large amount of 40 unnecessary dependencies. These are potential errors in Nuget dependecy resolution.

9,4 MB unnecessary additional files per application.

-Only necessary dependencies should be added.