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".
Related
Project I work on need to show UWP control from UWP library inside of WPF window.
Here is the document page on which I had based my work (check section for adding custom UWP control):
https://learn.microsoft.com/en-us/windows/communitytoolkit/controls/wpf-winforms/windowsxamlhost#add-a-custom-uwp-control
Had setup WPF window and it shows standard UWP controls (like button) at the runtime just fine. However, when I include UWP project, WPF window throws exception at start (at the moment of context initialization of EF).
Could not load file or assembly 'Windows.Foundation.UniversalApiContract, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
Sqlite version I'm using is 1.0.88.0 and EF is 5. But it doesn't make any sense that it clashes with these libraries?
Ffixed an issue on startup by updating SQLite package to 1.0.111.0 and EF to version 6.2.0.
Including UWP project in WPF project raises runtime errors
Derive from official document, I create sample project. When build the project, it throw many errors that lost assembly. After add the Windows.winmd file every thing work well. You could try to add the Windows.winmd file where in the C:\Program Files (x86)\Windows Kits\10\UnionMetadata\Windows.winmd to WPF app reference.
Detail steps
Right click project References -> Add References -> Browse(file type all file)-> select Windows.winmd
And this sample project that you could refer this.
I am attempting to use the WPF Extended Toolkit. I downloaded it and it is currently sitting in my project folder.
I right clicked the .dll file and checked "Unblock" following this answer. I have it referenced in my Visual Studio project.
I have it named WPF Extended Toolkit in my Toolbox.
I have the namespace in my XAML file.
When I try to use it in my XAML file, I'm getting the blue squiggly line stating, "The type toolkit:BusyIndicator was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built."
I'm very new to this, since I've only used what was available by default in WPF apps. Can someone tell me what I'm doing wrong? I thought I covered everything needed to get this going.
I figured it out! I found this answer!
Before adding the namespace, I rebuilt my project, then I added the namespace. IntelliSense picked it up and I was able to add my Busy Indicator.
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.
I am trying to drag and drop Telerik RadGridView on my windows form. But instead of showing on the form(in designer view), it shows the control just below the designer i.e. the area where some of the controls like DataSet, Binding Source, FileDialog controls are shown when added to the form from the toolbox.
The same problem happens for any rad control like RadButton, RadLabel etc. I can work on the control by using the controls added to the form, but the problem is that in case of some controls like RadGridView, the smart tag is not available that makes a lot of things easier.
I think I am missing something, so that I am unable to drag-drop the controls. Can any one help me out?
Can also be caused by a version mismatch. I had the latest version installed but code base referenced previous version (specifically 2011 Q2).
An uninstall of latest and install of 20011.Q2 fixed it for me.
This is caused by missing design time assembly in your GAC. Uninstall the all telerik controls from your computer, reinstall them and then update your project references. This should solve the problem.
More info at this link.
you must ReInstall your telerik product then open your project and reload your toolbox.
this sometime happen like you update your visual studio or you install a new package of telerik.
how can I import the System.ServiceProcess namespace into a WPF project in VB.NET (not C#)? The ServiceController object is not in the toolbox in VS2008 and I can't seem to figure it out. Any ideas? If that particular namespace cannot be imported into WPF projects, could somebody suggest another way of controlling windows services from a WPF application? I know this framework is focused more on multimedia apps, but would really like to switch over some of my tools to WPF.
Thanks in advance!
You need to add a reference to System.ServiceProcess.dll.
The confusing thing is that this assembly is not in C:\Program Files\Reference Assemblies\Microsoft\Framework. It should be be in the GAC; however, it might not show in the list of assemblies. You can browse to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 and reference it from there.
I assume you mean you want to add a project reference, rather than specifically adding it into a XAML file.
You will need to add a reference to the appropriate DLL, but it might be hidden from you if you aren't targeting the correct framework version -- make sure your project properties say you are targeting 3.5.
In my case, I used VS2017, I searched for System.ServiceProcess in NuGet manager (Tools -> NuGet Package Manager -> Manage NuGet Packages for Solution...)
Install it for the required projects and that is it.