Permalink
Browse files

Added Start Minimized

Added Start When Launched
Removed some unneeded dependencies
  • Loading branch information...
Elestriel
Elestriel committed Jan 10, 2017
1 parent 684cc98 commit 468ff094faa4716a74729db15c33e18f46ae6cb1
@@ -19,6 +19,12 @@
<setting name="Colorize" serializeAs="String">
<value>True</value>
</setting>
<setting name="StartMinimized" serializeAs="String">
<value>False</value>
</setting>
<setting name="StartWhenLaunched" serializeAs="String">
<value>False</value>
</setting>
</TaskbarTool.Properties.Settings>
</userSettings>
</configuration>
@@ -5,6 +5,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:TaskbarTool"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
xmlns:properties="clr-namespace:TaskbarTool.Properties"
mc:Ignorable="d"
Title="Taskbar Tools"
Height="160" Width="370"
@@ -61,9 +62,19 @@
Checked="ColorizeBlurCheckBox_Changed"
Unchecked="ColorizeBlurCheckBox_Changed"/>
</Grid>
<Button x:Name="StartStopButton" Content="Start" Grid.Row="1"
HorizontalAlignment="Right" VerticalAlignment="Bottom"
<Grid x:Name="OptionsGrid" Grid.Row="1">
</Grid>
<Grid x:Name="ControlsGrid" Grid.Row="2">
<CheckBox x:Name="StartMinimizedCheckBox" Content="Start Minimized"
HorizontalAlignment="Left" VerticalAlignment="Top"
Margin="10,5,0,0" IsChecked="{Binding Source={x:Static properties:Settings.Default}, Path=StartMinimized}"/>
<CheckBox x:Name="StartWhenLaunchedCheckBox" Content="Start When Launched"
HorizontalAlignment="Left" VerticalAlignment="Top"
Margin="126,5,0,0" IsChecked="{Binding Source={x:Static properties:Settings.Default}, Path=StartWhenLaunched}"/>
<Button x:Name="StartStopButton" Content="Start"
HorizontalAlignment="Right" VerticalAlignment="Bottom"
Margin="0,0,10,10" Width="75"
Click="StartStopButton_Click"/>
</Grid>
</Grid>
</Window>
</Window>
@@ -156,6 +156,10 @@ private void Window_ContentRendered(object sender, EventArgs e)
{
PopulateComboBoxes();
LoadSettings();
if (Properties.Settings.Default.StartMinimized) { this.WindowState = WindowState.Minimized; }
if (Properties.Settings.Default.StartWhenLaunched) { StartStopButton_Click(null, null); }
}
#endregion Initializations
@@ -180,6 +184,9 @@ private void ApplyToAllTaskbars()
hWndList.Add(FindWindow("Shell_TrayWnd", null));
IntPtr otherBars = IntPtr.Zero;
//IntPtr cortana = FindWindowEx(hWndList[0], IntPtr.Zero, "TrayDummySearchControl", null);
//hWndList.Add(cortana);
while (true)
{
otherBars = FindWindowEx(IntPtr.Zero, otherBars, "Shell_SecondaryTrayWnd", "");
@@ -51,5 +51,5 @@
// 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.3")]
[assembly: AssemblyFileVersion("1.0.3")]
[assembly: AssemblyVersion("1.0.4")]
[assembly: AssemblyFileVersion("1.0.4")]

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -11,5 +11,11 @@
<Setting Name="Colorize" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="StartMinimized" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="StartWhenLaunched" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
</Settings>
</SettingsFile>
@@ -58,26 +58,6 @@
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="Xceed.Wpf.AvalonDock, Version=3.0.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4, processorArchitecture=MSIL">
<HintPath>..\packages\Extended.Wpf.Toolkit.3.0\lib\net40\Xceed.Wpf.AvalonDock.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Xceed.Wpf.AvalonDock.Themes.Aero, Version=3.0.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4, processorArchitecture=MSIL">
<HintPath>..\packages\Extended.Wpf.Toolkit.3.0\lib\net40\Xceed.Wpf.AvalonDock.Themes.Aero.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Xceed.Wpf.AvalonDock.Themes.Metro, Version=3.0.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4, processorArchitecture=MSIL">
<HintPath>..\packages\Extended.Wpf.Toolkit.3.0\lib\net40\Xceed.Wpf.AvalonDock.Themes.Metro.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Xceed.Wpf.AvalonDock.Themes.VS2010, Version=3.0.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4, processorArchitecture=MSIL">
<HintPath>..\packages\Extended.Wpf.Toolkit.3.0\lib\net40\Xceed.Wpf.AvalonDock.Themes.VS2010.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Xceed.Wpf.DataGrid, Version=3.0.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4, processorArchitecture=MSIL">
<HintPath>..\packages\Extended.Wpf.Toolkit.3.0\lib\net40\Xceed.Wpf.DataGrid.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Xceed.Wpf.Toolkit, Version=3.0.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4, processorArchitecture=MSIL">
<HintPath>..\packages\Extended.Wpf.Toolkit.3.0\lib\net40\Xceed.Wpf.Toolkit.dll</HintPath>
<Private>True</Private>

0 comments on commit 468ff09

Please sign in to comment.