3
Answers

Set properties via a file

Mark Payton

Mark Payton

8y
399
1
Hi All,
 
I have an app which reads an XML file, part of that file holds elements which should direct the app how to present the information.
 
So, I have a <TextData> tag which encapsulates "Hello World", but I want to put something in the attributes which when read by the app will interpret the alignment of that text so that it could perform something like ContentAlignment.MiddleCenter
 
I could put something in the app which will test for each ContentAlignment type, but I was wondering if there was any kind of shortcut I could use.
 
Thanks in advance.
 
Mark 
Answers (3)