C
C#14mo ago
h0la

❔ Error using XAMLReader.Load()

Hey there, I am trying to load a Canvas element from a file after I have first serialized it using XAMLWriter.Save(), but when I try to load it, it throws the following error: "'Failed to create a 'Figures' from the text 'M1124,352C1124,352 1123,349 1121,346 1119,343 1116,340 1113,338 1110,336 1107,334 1104,333 1101,332 1098,331 1095,330 1092,329 1088,328 1085,327 1081,327 1078,326 1075,326 1071,326 1068,326 1065,326 1062,326 1059,326 1055,326 1051,326 1048,326 1044,327 1041,328 1038,329 1035,330 1031,332 1027,334 1024,336 1021,338 1015,343 1011,346 1009,349 1006,352 1004,355 1002,358 1001,361 999,364 998,367 997,370 997,373 997,376 996,380 996,383 996,386 997,389 997,392 998,395 1000,398 1001,401 1002,404 1003,407 1005,410 1007,413'.' Line number '1' and line position '1302'." Now I know that it has something to do with the Path and the Figures it has inside of it, but after a lot of research I still cannot figure out what is actually causing this since the figures coordinates seem to be correct. Here's the XAML I am trying to read: https://paste.mod.gg/vkidrxocbpkp/0 And here's how I am trying to read the XAML from the file: https://paste.mod.gg/qkuhzdyfanzt/0
BlazeBin - vkidrxocbpkp
A tool for sharing your source code with the world!
BlazeBin - qkuhzdyfanzt
A tool for sharing your source code with the world!
6 Replies
h0la
h0la14mo ago
even this throws the same error, without even touching external files
Accord
Accord13mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Trinitek
Trinitek13mo ago
how did you generate this?
Trinitek
Trinitek13mo ago
Path Markup Syntax - WPF .NET Framework
Learn about the powerful and complex mini-language you can use to specify compact path geometries in Windows Presentation Foundation (WPF).
Trinitek
Trinitek13mo ago
you have a Move command that takes 1 point, a Cubic Bezier Curve command that takes 3 points, and then the rest of the points don't have any commands
Accord
Accord13mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.