I have this XAML code:
<Window.Resources>
<x:Array x:Name="arrayXAML" x:Key="WordList" Type="sys:String">
<sys:String>Abraham</sys:String>
<sys:String>Xylophonic</sys:String>
<sys:String>Yistlelotusmoustahoppenfie</sys:String>
<sys:String>Zoraxboraxjajaja</sys:String>
</x:Array>
</Window.Resources>
I know that I can access this array by both of these lines of c#:
Object res1 = this.Resources["WordList"];
wordList = this.FindResource("WordList") as string[];
But what about if I want to add a new string to the x:Array programmatically?
I have tried: arrayXAML.Items.Add("hello");
but it doesn't seem to work when I then use the "FindRescource" as shown above. Is there a way to add items to this array?