File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 9
9
using CodeDisplayer ;
10
10
using MaterialDesignColors . WpfExample . Domain ;
11
11
using MaterialDesignThemes . Wpf ;
12
+ using System . IO ;
12
13
13
14
namespace MaterialDesignColors . WpfExample
14
15
{
@@ -20,10 +21,13 @@ public partial class MainWindow : Window {
20
21
public MainWindow ( )
21
22
{
22
23
InitializeComponent ( ) ;
24
+
25
+ var sourceLocation = File . Exists ( @"..\..\MainWindow.xaml" ) ? XamlDisplayerPanel . SourceEnum . LoadFromLocal : XamlDisplayerPanel . SourceEnum . LoadFromRemote ;
26
+
23
27
XamlDisplayerPanel . Initialize (
24
- source : XamlDisplayerPanel . SourceEnum . LoadFromRemote ,
25
- defaultLocalPath : $@ "C:\Users\User\Desktop\MaterialDesignXAMLToolKitNew\MaterialDesignInXamlToolkit\MainDemo.Wpf \",
26
- defaultRemotePath : @"https://raw.githubusercontent.com/wongjiahau /MaterialDesignInXamlToolkit/New-Demo-2 /MainDemo.Wpf/" ,
28
+ source : sourceLocation ,
29
+ defaultLocalPath : $@ "..\.. \",
30
+ defaultRemotePath : @"https://raw.githubusercontent.com/ButchersBoy /MaterialDesignInXamlToolkit/master /MainDemo.Wpf/" ,
27
31
attributesToBeRemoved :
28
32
new List < string > ( )
29
33
{
You can’t perform that action at this time.
0 commit comments