Skip to content

Commit e9e6e24

Browse files
committed
Change to download from Github
1 parent a173ee2 commit e9e6e24

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

MainDemo.Wpf/Buttons.xaml.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ public Buttons()
2929
InitializeComponent();
3030

3131
FloatingActionDemoCommand = new AnotherCommandImplementation(Execute);
32-
var xmlDoc = new XmlDocument();
33-
string source = File.ReadAllText(@"..\..\Buttons.xaml");
34-
xmlDoc.LoadXml(source);
35-
//XmlDocument xmlDoc =
36-
// new MaterialDesignInXamlToolkitGitHubFile(
37-
// ownerName: "wongjiahau" ,
38-
// branchName: "New-Demo-2" ,
39-
// fileName: "Buttons.xaml")
40-
// .GetXmlDocument();
41-
XamlDisplayerPanel.Initialize(xmlDoc);
32+
//var xmlDoc = new XmlDocument();
33+
//string source = File.ReadAllText(@"..\..\Buttons.xaml");
34+
//xmlDoc.LoadXml(source);
35+
XmlDocument xmlDoc =
36+
new MaterialDesignInXamlToolkitGitHubFile(
37+
ownerName: "wongjiahau" ,
38+
branchName: "New-Demo-2" ,
39+
fileName: "Buttons.xaml")
40+
.GetXmlDocument();
41+
XamlDisplayerPanel.Initialize(xmlDoc);
4242
}
4343

4444
public ICommand FloatingActionDemoCommand { get; }

MainDemo.Wpf/TextFields.xaml.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ public TextFields()
3030
{
3131
InitializeComponent();
3232
DataContext = new TextFieldsViewModel();
33-
var xmlDoc = new XmlDocument();
34-
xmlDoc.Load(@"..\..\TextFields.xaml");
35-
//XmlDocument xmlDoc =
36-
// new MaterialDesignInXamlToolkitGitHubFile(
37-
// ownerName: "wongjiahau" ,
38-
// branchName: "New-Demo-2" ,
39-
// fileName: "TextFields.xaml")
40-
// .GetXmlDocument();
33+
//var xmlDoc = new XmlDocument();
34+
//xmlDoc.Load(@"..\..\TextFields.xaml");
35+
XmlDocument xmlDoc =
36+
new MaterialDesignInXamlToolkitGitHubFile(
37+
ownerName: "wongjiahau" ,
38+
branchName: "New-Demo-2" ,
39+
fileName: "TextFields.xaml")
40+
.GetXmlDocument();
4141
XamlDisplayerPanel.Initialize(xmlDoc);
4242

4343
}

0 commit comments

Comments
 (0)