|
@@ -170,7 +170,7 @@ namespace PDF_Office.ViewModels
|
|
{
|
|
{
|
|
var folder = PDFViewer.Document.FilePath.Substring(0, PDFViewer.Document.FilePath.LastIndexOf("\\"));
|
|
var folder = PDFViewer.Document.FilePath.Substring(0, PDFViewer.Document.FilePath.LastIndexOf("\\"));
|
|
////File.Move(PDFViewer.Document.FilePath,Path.Combine(folder,FileName));
|
|
////File.Move(PDFViewer.Document.FilePath,Path.Combine(folder,FileName));
|
|
- ///TODO:
|
|
|
|
|
|
+ ///TODO:会被占用 无法操作
|
|
IsReNameTextShow = Visibility.Collapsed;
|
|
IsReNameTextShow = Visibility.Collapsed;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -542,8 +542,11 @@ namespace PDF_Office.ViewModels
|
|
#region Navigation
|
|
#region Navigation
|
|
public async void OnNavigatedTo(NavigationContext navigationContext)
|
|
public async void OnNavigatedTo(NavigationContext navigationContext)
|
|
{
|
|
{
|
|
|
|
+ mainWindowViewModel = App.mainWindowViewModel;
|
|
|
|
+ //常规加载首页的情况
|
|
if (navigationContext.Parameters.Count <= 0)
|
|
if (navigationContext.Parameters.Count <= 0)
|
|
return;
|
|
return;
|
|
|
|
+
|
|
var filepath = navigationContext.Parameters[ParameterNames.FilePath].ToString();
|
|
var filepath = navigationContext.Parameters[ParameterNames.FilePath].ToString();
|
|
if (filepath!= null)
|
|
if (filepath!= null)
|
|
{
|
|
{
|
|
@@ -562,7 +565,7 @@ namespace PDF_Office.ViewModels
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- mainWindowViewModel = App.mainWindowViewModel;
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
public bool IsNavigationTarget(NavigationContext navigationContext)
|
|
public bool IsNavigationTarget(NavigationContext navigationContext)
|