I would like to make the following code to be XAML:
CData cData = new CData();
MyClass mc1 = new MyClass();
MyClass mc2 = new MyClass();
mc1.Data = cData;
mc2.Data = cData;
How to make the above code to be XAML format?
Since the property .Data is a custom class CData and Both mc1 and mc3 has to point to the same cData. How to make it in XAML?
This should do:
where
localpoints to your namespace where both classes are defined.