I made an application that draws an organization tree based on values ββfrom an XML file.
The xaml file is as follows:
<Window.Resources>
<XmlDataProvider x:Key="organization" Source="model.xml" />
<SolidColorBrush x:Key="ListBorder" Color="#FF7F9DB9"/>
<Style TargetType="{x:Type draw:Node}">
<Setter Property="OverridesDefaultStyle" Value="true"/>
<Setter Property="Template">
---------------------------------------------------------
I want to be able to change the source code at runtime by selecting an xml file from openfiledialog (like clicking a button), how to do this?
arety source
share