Mark Payton

Mark Payton

  • NA
  • 3
  • 717

Set properties via a file

Aug 1 2016 5:28 PM
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)