Menu

Problem integrating Accordion with my code

2019-12-28
2019-12-29
  • Todd Hoatson

    Todd Hoatson - 2019-12-28

    I was able to build the Accordion demo program OK with VS 2017. But as I tried to integrate the Accordion component with my own project, I ran into the following error:

    AccordionFiles\FontExWPF.cs(5,26,5,31): error CS0234: The type or namespace name 'Media' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)

    The line of code from FontExWPF.cs is:

    using M = System.Windows.Media;

    I was a bit confused anyway, since I understood this to be Winforms Accordion, not WPF Accordion...

    Anyway, is there an easy fix for this? Alternately, I'm not sure why there needs to be special font-handling code for the Accordion to work. Is there a way to alter the Accordion to use standard font-handling and not need this bit?

    Thanks!

     
  • Todd Hoatson

    Todd Hoatson - 2019-12-29

    Sorry - I found I had missed adding the reference to PresentationCore.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.