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 99using CodeDisplayer ;
1010using MaterialDesignColors . WpfExample . Domain ;
1111using MaterialDesignThemes . Wpf ;
12+ using System . IO ;
1213
1314namespace MaterialDesignColors . WpfExample
1415{
@@ -20,10 +21,13 @@ public partial class MainWindow : Window {
2021 public MainWindow ( )
2122 {
2223 InitializeComponent ( ) ;
24+
25+ var sourceLocation = File . Exists ( @"..\..\MainWindow.xaml" ) ? XamlDisplayerPanel . SourceEnum . LoadFromLocal : XamlDisplayerPanel . SourceEnum . LoadFromRemote ;
26+
2327 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/" ,
2731 attributesToBeRemoved :
2832 new List < string > ( )
2933 {
You can’t perform that action at this time.
0 commit comments