-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from VFansss/develop
Develop
- Loading branch information
Showing
15 changed files
with
394 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace comquiz.ViewModels | ||
{ | ||
class ControlsViewModel : ViewModelBase | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<UserControl xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
x:Class="comquiz.Views.ControlsView"> | ||
|
||
<UserControl.Styles> | ||
|
||
<Style Selector="TextBlock.personal"> | ||
<Setter Property="FontSize" Value="{DynamicResource FontSizeNormalPlus}"/> | ||
</Style> | ||
|
||
</UserControl.Styles> | ||
|
||
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"> | ||
|
||
<DockPanel Margin="50" VerticalAlignment="Center" HorizontalAlignment="Center"> | ||
|
||
<DockPanel.Styles> | ||
|
||
<Style Selector="Button"> | ||
<Setter Property="Margin" Value="0 10"/> | ||
<Setter Property="DockPanel.Dock" Value="Top"/> | ||
</Style> | ||
|
||
<Style Selector="DockPanel > TextBlock"> | ||
<Setter Property="Margin" Value="0 10"/> | ||
<Setter Property="Foreground" Value="{DynamicResource HighlightBrush}"/> | ||
<Setter Property="HorizontalAlignment" Value="Center"/> | ||
<Setter Property="TextWrapping" Value="Wrap"/> | ||
<Setter Property="DockPanel.Dock" Value="Top"/> | ||
<Setter Property="TextAlignment" Value="Center"/> | ||
</Style> | ||
|
||
</DockPanel.Styles> | ||
|
||
<Button Command="{Binding $parent[Window].DataContext.DisplayMainMenu}"> | ||
Return to Main Menu | ||
</Button> | ||
|
||
<TextBlock FontSize="{DynamicResource FontSizeIntrusive}" Text="Mouse & KB Shortcuts"/> | ||
|
||
<TextBlock FontSize="{DynamicResource FontSizeLarger}" Text="While you are on the quiz screen, you can use these shortcuts:"/> | ||
|
||
<TextBlock FontSize="{DynamicResource FontSizeLarge}" Text="(Mouse)"/> | ||
|
||
<TextBlock> | ||
Mouse central button (Wheel button) - SHOW RIGHT ANSWERS | ||
</TextBlock> | ||
|
||
<TextBlock FontSize="{DynamicResource FontSizeLarge}" Text="(Keyboard)"/> | ||
|
||
<TextBlock> | ||
1-9 Number buttons, 1-9 Numpad Buttons - SELECT ANSWERS | ||
</TextBlock> | ||
|
||
<TextBlock> | ||
Right arrow, Enter, Enter (Numpad) - NEXT QUESTION | ||
</TextBlock> | ||
|
||
<TextBlock> | ||
Spacebar, 0 on Numpad - SHOW RIGHT ANSWERS | ||
</TextBlock> | ||
|
||
<TextBlock> | ||
Esc - END THE QUIZ | ||
</TextBlock> | ||
|
||
|
||
</DockPanel> | ||
|
||
</ScrollViewer> | ||
|
||
</UserControl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Avalonia.Controls; | ||
using Avalonia.Markup.Xaml; | ||
|
||
namespace comquiz.Views | ||
{ | ||
public class ControlsView : UserControl | ||
{ | ||
public ControlsView() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
|
||
private void InitializeComponent() | ||
{ | ||
AvaloniaXamlLoader.Load(this); | ||
|
||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.