Where can I find the Windows.UI.Xaml.Media.Imaging namespace? [duplicate] - c#

This question already has answers here:
Does the new SvgImageSource class designed for UWP can be used in WPF project
(2 answers)
Closed 4 years ago.
I am trying to write a WPF application and I require a function in the Windows.UI.Xaml.Media.Imaging namespace. I have tried adding a reference in the Reference Manager of Visual Studio. I have looked in Nuget package manager. I just can't seem to find it anywhere. Can someone guide me, please?

I believe the Windows.UI namespaces are only valid for UWP apps and not WPF apps.

You don't say what you're doing exactly but you can now use uwp in wpf.
There are some wrapped controls and there's "xaml islands".
https://blogs.windows.com/buildingapps/2018/11/02/xaml-islands-a-deep-dive-part-1/
https://learn.microsoft.com/en-us/windows/uwp/xaml-platform/xaml-host-controls

Related

How to install Windows.Security.Credentials; C# .NET VS 2017 [duplicate]

This question already has answers here:
How to access the stored credentials (PasswordVault?) on Win7 and Win8?
(3 answers)
Closed 5 years ago.
how do I install Windows.Security.Credentials into VS 2017? I've looked everywhere and i can't find a thing. I cant add it through 'add reference'.
Thanks for any help.
Windows.Security.Credentials class avilible only in WinRT based projects type. For example in WindowsRuntimeComponent. You can't access to it from WinForms or Console project.

Having trouble with referencing c# project from web forms project [duplicate]

This question already has answers here:
How to reference a C# Class Library project in Visual Studio 2010?
(2 answers)
Closed 8 years ago.
I am trying to write a page that displays a flow Diagram to the user. I downloaded the Tree Chart Generator from: http://www.codeproject.com/Articles/20508/Tree-Chart-Generator and added the Tree Generator project to my solution. However, when I try to reference TreeGenerator from my code behind, it is not recognized. I am sorry if this is a simplistic question, I am pretty new to .NET development.
Go to your web site project in the Solution Explorer, right click, click Add Reference, and select the project you want to reference. You may need to change to a "Solution" tab depending on your version of Visual Studio. I'm assuming Visual Studio because you didn't provide that detail in your question.

Add a file and import it to projects in same solution? [duplicate]

This question already has answers here:
How do you share code between projects/solutions in Visual Studio?
(17 answers)
Closed 8 years ago.
I want to have a file with some enum's and use them in several projects in the same solution.
How could I use the same enums throught projects in the same solution instead of having to copy them into every .cs file?
Im from xcode and obj-c and not very used to Visual Studio c# :(
If you have multiple projects that need to share source code you would create a new project as a class library type. Add the code to that project and then add it as a reference to the other projects that need it. Visual Studio will then handle building and sharing of the code for you.
To use the code in those projects you will have to define the using of the shared project in the C# files that need it.
If you need more detailed instructions. Just let me know.

How to add f# file to c# class library [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Is it possible to mix .cs (C#) and .fs (F#) files in a single Visual Studio Windows Console Project? (.NET)
I have a c# class library project. What is the best way to get f# files working in the same project?
You can't. You'd need to create these as separate projects. It might however be possible to merge to create a single assembly on build using ILMerge.

WPF Project cannot find system.web Assembly [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How do I add System.Web as a reference if I cant find it in the list of references?
I am developing wpf application.
I am using one of the system.web class called HttpUtility.
I am not able to add the reference.
Thank you.
You can adjust your Target Framework to .NET Framework 4.

Categories