Skip to content

Commit

Permalink
fix fullscreen button
Browse files Browse the repository at this point in the history
  • Loading branch information
mgth committed Jan 7, 2018
1 parent c79a4f2 commit 4a559ba
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LittleBigMouse/Control.Core/MainView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
Height="10"
/>
</ToggleButton>
<Button Command="{Binding MaximizeCommand}">
<Button Command="{Binding MaximizeCommand}" Click="ButtonBase_OnClick">
<icons:IconView
VerticalAlignment="Top"
HorizontalAlignment="Right"
Expand Down
4 changes: 4 additions & 0 deletions LittleBigMouse/Control.Core/MainView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ public void OnMouseDown(object sender, MouseButtonEventArgs e)

// SaveLocation();
//}
private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
{
WindowState = WindowState == WindowState.Maximized ? WindowState.Normal : WindowState.Maximized;
}
}

public static class FrameworkElementExt
Expand Down
4 changes: 2 additions & 2 deletions LittleBigMouse/Control.Loader/app.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
Supprimez cet élément si votre application a besoin de la virtualisation pour des
raisons de compatibilité descendante.
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
-->
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
-->
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
Expand Down

0 comments on commit 4a559ba

Please sign in to comment.