Approved
Last Updated: 03 Sep 2019 09:40 by ADMIN
Export and then import a linked style with HtmlFormatProvider and the style gets lost on import.
Approved
Last Updated: 26 Jul 2019 05:46 by ADMIN
Created by: Martin Ivanov
Comments: 2
Category: UI for WPF
Type: Bug Report
2

Most commonly the exception message is "Input file or data stream does not conform to the expected file format specification".

This appears because of the glyphs font used in the different controls.

To work this around you can use two approaches:

  • Update to Windows 7 SP2.

  • The second option is to download the UI for WPF source code, find the TelerikWebUI.ttf file and convert it to .otf using a third party tool (like FontForge for example). Then use a reflection to replace the font file, before the application startup. For example:
    RadGlyph.GetRegisteredFonts();
    var dictionary = typeof(RadGlyph).GetField("registeredTypefaces", BindingFlags.NonPublic | BindingFlags.Static)?.GetValue(null) as Dictionary<string, Typeface>;
    dictionary?.Clear();
       
    RadGlyph.RegisterFont(new FontFamily(new Uri("pack://application:,,,/WpfApp3;component/TelerikFont/", UriKind.RelativeOrAbsolute), "./#TelerikWebUI"), "TelerikWebUI");
    In the code snippet, "WpfApp3" is the assembly name of your project, and "TelerikFont" is a folder in your project, containing the converted font file. You can call this code in the OnStartup override of App.xaml.cs. Or before the InitializeComponent() call in the main window's constructor.
Approved
Last Updated: 15 Oct 2019 10:25 by ADMIN
When a document is imported (for example from XAML) and then exported to DOCX or RTF, the fields lose their formatting. The issue is not observed if the document is just created.
Workaround: Change the fields display mode of all fields in headers/footers just before the export:
private void UpdateHeadersFooters(RadDocument document)
{
    foreach (Section section in document.Sections)
    {
        if (section.Headers.Default.Body != null)
        {
            this.UpdateFields(section.Headers.Default.Body);
        }
 
        if (section.Headers.First.Body != null)
        {
            this.UpdateFields(section.Headers.First.Body);
        }
 
        if (section.Headers.Even.Body != null)
        {
            this.UpdateFields(section.Headers.Even.Body);
        }
 
        if (section.Footers.Default.Body != null)
        {
            this.UpdateFields(section.Footers.Default.Body);
        }
 
        if (section.Footers.First.Body != null)
        {
            this.UpdateFields(section.Footers.First.Body);
        }
 
        if (section.Footers.Even.Body != null)
        {
            this.UpdateFields(section.Footers.Even.Body);
        }
    }
}
 
private void UpdateFields(RadDocument radDocument)
{
    RadDocumentEditor editor = new RadDocumentEditor(radDocument);
    editor.ChangeAllFieldsDisplayMode(FieldDisplayMode.Code);
}
Approved
Last Updated: 21 Jan 2019 14:24 by ADMIN
Created by: Usman
Comments: 1
Category: UI for WPF
Type: Bug Report
0
I have downloaded the SDKSampleBrowser application from link but when I open application I am getting error attached in log file.
Approved
Last Updated: 16 Oct 2018 14:17 by ADMIN
Approved
Last Updated: 02 Oct 2018 09:30 by ADMIN
ADMIN
Created by: Dilyan Traykov
Comments: 0
Category: UI for WPF
Type: Bug Report
2

			
Approved
Last Updated: 19 Jul 2018 10:55 by Rick
Created by: Rick
Comments: 0
Category: UI for WPF
Type: Bug Report
5
List numbering should be restarted when copied list is pasted after content that is not in a list.

Steps to reproduce:
1. Create a file with a list, a blank line, some text, and another blank line
2. Copy the list
3. Paste it on the blank line directly after the list
Expected: The items are added to the end of the existing list
Observed: The items are added to the end of the existing list
4. Paste it on the blank line after the text
Expected: The items are added to a new list and start numbering at 1
Observed: The items are added to the existing list and start numbering at 7

Workaround:
private void RadRichTextBox_CommandExecuting(object sender, Telerik.Windows.Documents.RichTextBoxCommands.CommandExecutingEventArgs e)
{
    if (e.Command is PasteCommand)
    {
        DocumentPosition position = new DocumentPosition(this.radRichTextBox.Document);
        position.MoveToPosition(this.radRichTextBox.Document.CaretPosition);
        position.MoveUp();
        Paragraph previousParagraph = position.GetCurrentParagraphBox().AssociatedParagraph;
        if (previousParagraph.IsInList)
        {
            // We shouldn't restart the numbering when the previous paragraph is in a list.
            return;
        }

        RadDocument doc = ClipboardEx.GetDocument().ToDocument();
        Paragraph firstParagraph = doc.EnumerateChildrenOfType<Paragraph>().First();
        if (firstParagraph != null && firstParagraph.IsInList)
        {
            RadDocumentEditor editor = new RadDocumentEditor(doc);
            editor.Document.CaretPosition.MoveToStartOfDocumentElement(firstParagraph);
            editor.RestartListNumbering();
        }

        this.radRichTextBox.InsertFragment(new DocumentFragment(doc));
        e.Cancel = true;
    }
}
Approved
Last Updated: 11 Jun 2018 13:59 by ADMIN
maybe there are some ways to appear the  mouse point offset grow in steps when move the float window in raddocking by mouse drag.but I found when move the float window's header pass the document's tab,don't docking,then release mouse,and then move the float window again back and forth or up and down,the  mouse point offset grow in steps, at last the mouse's point leave the float window's header with hold the window's drag state.
Approved
Last Updated: 18 Dec 2017 13:14 by ADMIN
It seems that on some devices a touch with the Stylus doesn't fire the WPF native Touch events. Only the Stylus events will be fired. Because the TouchManager internally works only with the WPF Touch events, the manager's events are not fired.
Approved
Last Updated: 24 Aug 2017 12:31 by ADMIN
Created by: Rob
Comments: 1
Category: UI for WPF
Type: Bug Report
1
The event args for the RadDocking.ActivePaneChanged are named "ActivePangeChangedEventArgs" which I'm assuming is a typo for "ActivePaneChangedEventArgs".
Approved
Last Updated: 15 May 2017 15:54 by ADMIN
When setting IsSynchronizedWithCurrentItem to true, the RadListBox behaves differently from the standard ListBox; changing the selection in the RadListBox does not update the current item of the underlying ICollectionView.
Approved
Last Updated: 04 Jan 2017 13:10 by ADMIN
InvalidProjectFileException is thrown when ApiAnalyzer cannot find the file Microsoft.VisualStudio.ServiceModel.targets referenced from a WPF project.
Approved
Last Updated: 30 Jan 2017 15:20 by ADMIN
Approved
Last Updated: 08 Aug 2016 09:29 by Eric Rodewald
Approved
Last Updated: 05 Jan 2017 12:12 by ADMIN
Approved
Last Updated: 05 Jan 2017 12:08 by ADMIN
ADMIN
Created by: Nasko
Comments: 2
Category: UI for WPF
Type: Bug Report
1