Cannot find RadRichTextBox in .NET 4.0 DLL

8 posts, 1 answers
  1. Jeffrey Lewis
    Jeffrey Lewis avatar
    8 posts
    Member since:
    Apr 2010

    Posted 25 Mar 2011 Link to this post

    Hi,

    We have just downloaded the latest release (2011 Q1 .NET 4.0), however intellisense cannot find RichTextBox. The reference to Telerik.Windows.Controls.dll (version 2011.1.315.40) is already added.

    Error in Visual Studio 2011:
    The tag 'RadRichTextBox' does not exist in XML namespace 'http://schemas.telerik.com/2008/xaml/presentation'.


    Please advice. Thanks!
  2. Answer
    Ivailo Karamanolev
    Admin
    Ivailo Karamanolev avatar
    276 posts

    Posted 29 Mar 2011 Link to this post

    Hello Jeffrey Lewis,

    As the RadRichTextBox is quite a large component, we have decided to separate it in another assembly. That is Telerik.Windows.Documents.dll. Additionally, some if its components are in different assemblies. As the WPF version is very new, the documentation is still not ready. However, you can refer to the Silverlight documentation as nearly everything is the same as in WPF.

    Regards,
    Ivailo
    the Telerik team
  3. UI for WPF is Visual Studio 2017 Ready
  4. Jeffrey Lewis
    Jeffrey Lewis avatar
    8 posts
    Member since:
    Apr 2010

    Posted 31 Mar 2011 Link to this post

    Hi Ivailo,

    I've got it to work. Thanks very much for the help.
  5. Joel
    Joel avatar
    14 posts
    Member since:
    Aug 2010

    Posted 19 May 2011 Link to this post

    Hi,

    I'm having the same problem as Jeff.  I'm trying to add a RadRichTextBox control to a WPF app.  Now, from what I read in different posts, I should be using the Silverlight assemblies to acheive this.  I'm using the WPF DLLs v2010.3.1110.35.  The closest Silverlight version I was able to find is version 2010.3.1110.1040 from Silverlight 4 - DLLs only (zip, 15 MB) http://www.telerik.com/account/your-products/product-versions/single-download.aspx?pmvid=2342&pid=0.  As soon as I add a reference to the Telerik.Windows.Documents.dll (version 2010.3.1110.1040 from SL package) to my project I get this error:

    Unknown build error, 'Cannot resolve dependency to assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.'

    Now, my guess is that the version number conflicts with other WPF Telerik.Windows.*.dlls I have included in the project (they are all v2010.3.1110.35).  Now, where can I get a set of Silverlight Assemblies that would match that WPF version?

    Thanks,

    -- Joel
  6. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 20 May 2011 Link to this post

    Hi Joel,
    Actually, you should be using the WPF DLLs for WPF applications. Using Silverlight DLLs in a WPF application will not work. Perhaps you have misunderstood, as we have advised developers who wish to use the rich text box in Silverlight applications server-side (from the web application) to use the WPF assemblies. If that is not the case, we would appreciate it if you could point the threads, so that we can clear the misunderstanding there too.
    The WPF assemblies that are needed in order to have a RadRichTextBox should be available in the same folder as your other DLLs. Here is a list of them with regard to the functionality you will be using:
    • Required:
      • Telerik.Windows.Controls;
      • Telerik.Windows.Documents;
    • For UI (ribbon, context menu, selection mini toolbar):
      • Telerik.Windows.Controls.Input;
      • Telerik.Windows.Controls.Navigation;
      • Telerik.Windows.Control.RibbonBar;
      • Telerik.Windows.Controls.RichTextBoxUI;
    • Export/Import in different formats:
      • Telerik.Windows.Documents.FormatProviders.Html;
      • Telerik.Windows.Documents.FormatProviders.Rtf;
      • Telerik.Windows.Documents.FormatProviders.OpenXml;
      • Telerik.Windows.Documents.FormatProviders.Xaml;
      • Telerik.Windows.Documents.FormatProviders.Pdf (export only);
    • Telerik.Windows.Documents.Proofing.Dictionaries.En-US - default dictionary for spell checking in English.
    I hope this helps.

    All the best,
    Iva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Joel
    Joel avatar
    14 posts
    Member since:
    Aug 2010

    Posted 20 May 2011 Link to this post

    Here is one thread that lead me to think that:

    http://www.telerik.com/community/forums/wpf/richtextbox/create-an-instance-of-richtextbox.aspx
    You can review the documentation of the Silverlight version, since you can use both versions of the control in one and the same way. More information on data-binding can be found here. The only difference is that the data providers have to be in the visual tree and not in the resources in order to work.

    "you can use both versions of the control in one and the same way" led me off to think they were the same dlls.  

    Once I though I should be using the Silverlight dlls this one (and a couple more which I can't find) were somewhat supporting the argument:
    http://www.telerik.com/community/forums/wpf/richtextbox/cannot-find-radrichtextbox-in-net-4-0-dll.aspx

    Big assumption from my part.  Sorry for the confusion.

    I went back to the WPF download page (http://www.telerik.com/account/your-products/product-versions/single-download.aspx?pmvid=2343&pid=0) and got the dlls only version (WPF 4 - DLLs only (zip, 12 MB))

    After unzipping the file I only get these dlls:

    C:\TEMP\RadControls_for_WPF40_2010_3_1110_Dev_hotfix\Binaries\WPF>dir *.dll

     Directory of C:\TEMP\RadControls_for_WPF40_2010_3_1110_Dev_hotfix\Binaries\WPF

    10/11/2010  01:45 PM         2,315,264 Telerik.Windows.Controls.Charting.dll
    10/11/2010  01:45 PM           304,640 Telerik.Windows.Controls.Data.dll
    10/11/2010  01:46 PM         1,017,344 Telerik.Windows.Controls.DataVisualization.dll
    10/11/2010  01:44 PM         2,010,112 Telerik.Windows.Controls.dll
    10/11/2010  01:45 PM           641,024 Telerik.Windows.Controls.Docking.dll
    10/11/2010  01:47 PM           864,256 Telerik.Windows.Controls.Gauge.dll
    10/11/2010  01:47 PM         2,211,328 Telerik.Windows.Controls.GridView.dll
    10/11/2010  01:45 PM           996,864 Telerik.Windows.Controls.Input.dll
    10/11/2010  01:44 PM         2,143,744 Telerik.Windows.Controls.Navigation.dll
    10/11/2010  01:46 PM         1,092,096 Telerik.Windows.Controls.RibbonBar.dll
    10/11/2010  01:46 PM         1,141,760 Telerik.Windows.Controls.Scheduler.dll
    10/11/2010  01:46 PM           880,128 Telerik.Windows.Controls.ScheduleView.dll
    10/11/2010  01:44 PM           310,784 Telerik.Windows.Data.dll
    10/11/2010  02:17 PM           248,320 Telerik.Windows.QuickStart.dll
    10/11/2010  02:15 PM            19,968 Telerik.Windows.QuickStartLoader.dll
    10/11/2010  02:17 PM         1,385,984 Telerik.Windows.QuickStartTheme.dll
                  16 File(s)     17,583,616 bytes
                   0 Dir(s)  945,473,507,328 bytes free

    From your list, I am still missing:

    Telerik.Windows.Documents;
    Telerik.Windows.Control.RibbonBar;
    Telerik.Windows.Controls.RichTextBoxUI;
    Telerik.Windows.Documents.FormatProviders.Html;
    Telerik.Windows.Documents.FormatProviders.Rtf;
    Telerik.Windows.Documents.FormatProviders.OpenXml;
    Telerik.Windows.Documents.FormatProviders.Xaml;
    Telerik.Windows.Documents.FormatProviders.Pdf (export only);Telerik.Windows.Documents.Proofing.Dictionaries.En-US 

    Where can I get those?
  8. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 20 May 2011 Link to this post

    Hi Joel,

    Please excuse me for misleading you. I had overlooked the most important part of your post.
    RadRichTextBox for WPF's first release was Q1 2011. That is why it does not appear in the Q3 2010 version of the controls (2010.3 1110). In order to use it, you have to upgrade to Q1 2011 (2011.1 315) or even better - the Q1 SP1 (2011.1 419).

    Kind regards,
    Iva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  9. Joel
    Joel avatar
    14 posts
    Member since:
    Aug 2010

    Posted 20 May 2011 Link to this post

    OK, I'll give that a try.

    Thanks for the quick response!

    -- Joel
Back to Top
UI for WPF is Visual Studio 2017 Ready