New to WPF and problem with Style in Resource Dictionary

3 posts, 1 answers
  1. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 10 Sep 2012 Link to this post

    I've been working with silverlight mostly, but I'm converting an app to WPF.  I'm using a mystyle.xaml resource dictionary and it's compiling ok, but I get this error message when I debug the program, 'Failed to create a 'TargetType' from the text 'telerik:RadDatePicker'. ...
    The initelisense says it's ok and it compiles.  The project it configured with the dropdown Telerik->RadControls for WPF ->Configure Project and I have all the references.

    Also, I don't see the Telerik controls in the toolbar to the left.  Even when I try to 'Launch Toolbox Configurator', it's doesn't do anything.  This doesn't bother me since I usually don't use the toolbox, but it may be related.  Maybe I'm missing something on my install
  2. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 11 Sep 2012 Link to this post

    Seems like when I add my Source to the resource directory, I can't add the directory name or it will fail.  Must be a WPF thing

    This works:
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="StyleBrush.xaml" />
        <ResourceDictionary Source="StylesCommon.xaml" />
    </ResourceDictionary.MergedDictionaries>

    This won't (either one), I'm not sure why.  It's ok though, it was just different than silverlight
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/Application;component/StyleBrush.xaml" />
        <ResourceDictionary Source="Assets/StylesCommon.xaml" />
    </ResourceDictionary.MergedDictionaries>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Answer
    Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 12 Sep 2012 Link to this post

    Hello Dan,

     

    Will you please check the following thread and let us know how this works for you? 
    As per your question about the missing controls in the toolbox you may review the following help article. 
    In order to avoid such problems it is essential to ensure that you do not have installed multiple versions of Telerik RadControls/WPF.  



    I look forward to hearing from you!

     

    Greetings,
    Vanya Pavlova
    the Telerik team

    Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

Back to Top