XamlParse Exception when using visual component package - wpf

So I am making a WPF application and I need it to draw some charts. I've installed DynamicDataDisplay NuGet package but I get an exception when I try to add it to xaml.
Here are some picture to help you understand:
http://imgur.com/a/npLrO

Related

How do I add a new WPF UserControl to my .NetCore 3.1 application?

How do I create a WPF UserControl using .Net Core 3.1 in Visual Studio 2019?
I looked through the default templates available in "Add .. New .. Dialog," but I don't seem to see it.
Am I missing something?
Do I need to add it from a the command line?
I've got the DevExpress WPF/.Net Core packages installed and can add a DevExpress flavoured UserControl.
I'm able to create/add one of those from the installed templates.
How do I do so in vanilla .NetCore/WPF
Thanks,JohhB
Same as WinForms...compile your code, open Toolbox, drag it from there onto either your designer page or into the XAML code directly.

Design time errors when working in .NET 3.5 and adding charts after reopening the designer

Unfortunalty I need to use .NET 3.5 and use charts in the designer. Everything works quite well. I have added a package Microsoft Chart Controls that are not there by default with .NET 3.5 and added the dlls to the tools bar and to the reference.
I able to have the chart displayed in the designer and work with its data in the class. Problems start if I close the designer window and then open it again - I get a bunch of design time errors!
The strangest thing is that the code compiles and the chart works well in the application. Also the code behind in the auto generated design.cs stays untouched but i get millions of errors such as:
Has anyone come across a similar situation? Don't know how to go around it. I am using Visual Studio 2017. Thanks!
I think you have to add reference of this dll
System.Windows.Forms.DataVisualization.Charting.ChartArea
If this error will showing continuously then
Please add a new Winform and add a chart control.
then write your code in new created form . it will work.

Devexpress report designer version conflicts

I'm trying to add a DevExpress Report Desginer Wizard to my WPF project but I keep getting an error about versions. I've posted a screenshot to simplify things
This project already contains references to DevExpress controls of a different version.
The current version is 15.2.4.
Incorrect reference: DevExpress.Data.v14.1 14.1.8
I've updated the project files per the DevExpress Upgrade notes but this hasn't changed anything.
You can try to execute "upgrade tool" from the visual studio menu
DevExpress -> Upgrade tool,
run this tool on the current solution/project, close the wpf window designer, rebuild solution/project, open your wpf window again in the designer, check that the toolbox contains WPF ReportDesigner v15.2 control and add it to the wpf window.
I resolved the error by removing all references to DevExpress components with a different version than the 15.2 that it was trying to use.
I had to clean and build my solution after doing this because they obstinately kept coming back and causing trouble so if you're here looking for a solution, be aware of that.

WPF Toolkit Autocomplete Trouble

I installed the WPF Toolkit using the following NuGet command.
PM> Install-Package WPFToolkit
and then I followed the code in this link to create an autocomplete control without using the designer drag and drop:
WPF: AutoComplete TextBox, ...again
When I ran it, I'm getting this error:
Could not load file or assembly 'System.Windows.Controls.Input.Toolkit, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
If someone could tell me what I'm missing, that would be very helpful.
This may be caused by windows security restictions, Try to run VS2010 as Administrator, Uninstall WPF Toolkit using nuget and then reinstall it.
You need to include that assembly in the project references:
Right click "References", then "Add reference".

WPF VS2010 Upgrade - Now WPF designer throws exception when projects targets .NET framework 3.5

I recently upgraded a number of projects from VS2008 to VS2010. Now I'm having an issue at design time w/ the WPF designer in Visual Studio. It throws an exception for every XAML page I open in design mode. Exceptions also throw for new brand new XAML pages.
Projects currently target .NET 3.5. If I switch to target .NET 4.0, designer opens correctly.
Do note that projects build and run successfully.
The exception Details displayed in the WPF designer vary but scrolling to the bottom of the Details of all the exceptions do show something similar to:
The component 'MS.Internal.Interaction.AdornerFontResourceDictionary' does not have a resource identified by the URI '/Microsoft.Windows.Design.Interaction;component/ms/internal/interaction/adornerfontresourcedictionary.xaml'.
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at MS.Internal.Interaction.AdornerFontResourceDictionary.InitializeComponent()
at MS.Internal.Interaction.AdornerFontResourceDictionary..ctor()
at Microsoft.Windows.Design.Interaction.AdornerFonts.<.cctor>b__0()
at Microsoft.Windows.Design.Interaction.AdornerResources.EnsureResources(Boolean forceUpdate)
at Microsoft.Windows.Design.Interaction.AdornerResources.get_ThemeResources()
at MS.Internal.Themes.GenericTheme..ctor()
I'm guessing switching the framework targets is is causing the project to point to some older DLL. Any thoughts?
Following the upgrade, look through all the projects in the solution looking for references to any DLL named "Microsoft.Windows.Design*". Removing these references and recompiling will fix the issue.

Resources