IO-1154 IO-996 resolve bindings to main window.
This commit is contained in:
@@ -305,7 +305,7 @@
|
||||
<Version>1.1.0</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="MaterialDesignThemes">
|
||||
<Version>4.0.0</Version>
|
||||
<Version>4.1.0</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.CSharp">
|
||||
<Version>4.7.0</Version>
|
||||
|
||||
@@ -51,7 +51,7 @@ using System.Windows;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.12.0")]
|
||||
[assembly: AssemblyVersion("1.0.18.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
//Setting Squirrel Aware Version.
|
||||
[assembly: AssemblyMetadata("SquirrelAwareVersion", "1")]
|
||||
@@ -35,7 +35,8 @@ namespace BodyshopPartner.ViewModels
|
||||
p => true,
|
||||
p =>
|
||||
{
|
||||
((Window)p).Show();
|
||||
App.Current.MainWindow.Show();
|
||||
// ((Window)p).Show();
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace BodyshopPartner.ViewModels
|
||||
private async Task updateCheck()
|
||||
{
|
||||
|
||||
//#if (!DEBUG)
|
||||
#if (!DEBUG)
|
||||
logger.Debug("Checking if updates are available.");
|
||||
await Utils.UpdateHandler.UpdateAppEasy((val) => UpdateProgress = val);
|
||||
|
||||
@@ -111,7 +111,7 @@ namespace BodyshopPartner.ViewModels
|
||||
|
||||
// }
|
||||
//}
|
||||
//#endif
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
<tb:TaskbarIcon DockPanel.Dock="Top"
|
||||
IconSource="../favicon.ico"
|
||||
DoubleClickCommand="{Binding OpenMainWindowCommand}"
|
||||
DoubleClickCommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"
|
||||
DoubleClickCommandParameter="{Binding ElementName=MainWindow}"
|
||||
PopupActivation="LeftClick"
|
||||
MenuActivation="RightClick">
|
||||
<!--<tb:TaskbarIcon.TrayPopup>
|
||||
@@ -101,7 +101,7 @@
|
||||
<ContextMenu>
|
||||
<MenuItem Header="{x:Static p:Resources.Label_Show}"
|
||||
Command="{Binding OpenMainWindowCommand}"
|
||||
CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" />
|
||||
CommandParameter="{Binding ElementName=MainWindow}" />
|
||||
<MenuItem Header="{x:Static p:Resources.Label_Restart}"
|
||||
Command="{Binding StartFolderMonitorsCommand}" />
|
||||
<MenuItem Header="{x:Static p:Resources.Label_StopAllMonitors}"
|
||||
@@ -211,7 +211,7 @@
|
||||
Margin="4"
|
||||
Content="{x:Static p:Resources.Label_Remove}" />
|
||||
<Button Command="{Binding DataContext.RestartMonitoringPathCommand,
|
||||
RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}"
|
||||
ElementName=MainWindow }"
|
||||
CommandParameter="{Binding .}"
|
||||
Style="{StaticResource MaterialDesignOutlinedButton}"
|
||||
Margin="4"
|
||||
|
||||
Reference in New Issue
Block a user