unosquare / ffmediaelement

FFME: The Advanced WPF MediaElement (based on FFmpeg)
https://unosquare.github.io/ffmediaelement/
Other
1.17k stars 240 forks source link

Serialize a MediaElement object using XamlWriter.Save(element) #500

Closed hfaran1 closed 4 years ago

hfaran1 commented 4 years ago

Serialization causes an exception !

Issue Categories

[V ] Feature Request [V] Question

Version Information

Steps to Reproduce

string MyString = XamlWriter.Save(new Unosquare.FFME.MediaElement());

My intention is to create mediaelement objects on the fly at runtime using MyString (which can contains other wpf elements as well). But at runtime this statement cause an error: DelMe

Expected Results

string with content like <MediaElement ... />

Sample Code

using Unosquare.FFME; namespace MyExample { public class MySerialization { public static XmlDocument To_Xml() { string MyString = XamlWriter.Save(new Unosquare.FFME.MediaElement()); XmlDocument xmlDoc = new XmlDocument(); xmlDoc.LoadXml(MyString); return xmlDoc; } } }

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.