Answer the question
In order to leave comments, you need to log in
Why do I get errors when converting a vector graphics file to XAML?
Rewriting the example from "The C# 7 Programming Language and the .NET Platforms and .NET Core, 8th Ed. by Andrew Troelsen, Philip Japix" page 1057, converting a vector graphics file to XAML . I opened the .svg file with Inkscape and printed it using Microsoft XPS Document Writer as the printer. I changed the resulting .oxps file to .zip, unzipped it into a folder, copied the contents from the 1.fpage file (except for the opening and closing FixedPage handles) into the Canvas of my WPF application (everything is the same as written in the book). Changed all the wrong file paths, but the errors still remain.
Please tell me how to fix this?
If you specify the path to _D1.dict through the properties window, then the error remains:
The file itself:
Please help with the resolution of these errors or point to the relevant literature. Thanks))
Answer the question
In order to leave comments, you need to log in
ResourceDictionary.Source does not imply work with an external file.
Documentation
I have not come across this, but Inscape allows you to immediately convert to xaml.
Maybe try to convert and make a custom control to insert directly in the xaml code?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question