question

YRK-33345 avatar image
0 Votes"
YRK-33345 asked TimonYang-MSFT commented

Can't find System.Windows.Media.editing namespace

I'm trying to add the namespace "system.windows.media.editing" but I can not add it, at first it did not recognize the "media" so I added presentation.dll, but now it does not allow me to add the "edit", I am using the .net 5.0 version

dotnet-csharp
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


Why do you need it?


0 Votes 0 ·

to make a video editor @Viorel-1

0 Votes 0 ·

Which class or control do you want to use from 'System.Windows.Media.editing' namespace?

0 Votes 0 ·

@YRK-33345
May I know if you have got any chance to check my answer? I am glad to help if you have any other questions.

0 Votes 0 ·
lextm avatar image
0 Votes"
lextm answered lextm edited

If you meant the `Windows.Media.Editing` namespace, it is exclusively available in UWP apps (Windows 10 only), not in a typical WPF app (.NET 5 supports non-Windows 10 machines).

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

TimonYang-MSFT avatar image
0 Votes"
TimonYang-MSFT answered

If you need to use UWP APIs in non-UWP applications, please refer to the following Windows Developer Blog:

Calling Windows 10 APIs From a Desktop Application just got easier

Calling Windows 10 APIs From a Desktop Application

Find two files in windows for reference, or add a nuget package, then you can use these APIs.

95091-1.png


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1.png (6.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.