Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/adamdon/moviequotequiz

Windows Presentation Foundation ๐Ÿ—ƒ Quiz using C# and a Metro ๐Ÿ”ฒ style design language
https://github.com/adamdon/moviequotequiz

binary-reader c-sharp fody mahapps-metro windows-presentation-foundation xaml

Last synced: 6 days ago
JSON representation

Windows Presentation Foundation ๐Ÿ—ƒ Quiz using C# and a Metro ๐Ÿ”ฒ style design language

Awesome Lists containing this project

README

        

# MovieQuoteQuiz
### Multiple Choice Quiz using WPF

- [Download .exe](https://github.com/adamdon/MovieQuoteQuiz/releases/download/1.0/MovieQuoteQuiz.exe)

![Screenshot of UI](https://adamdon.github.io/img/MovieQuoteQuiz_screenshot01.gif)

This side project was done on my own time to learn the WPF/XAML framework in C# and to get more familiar with the .Net technologies in general.

The program provides a simple multiple choice quiz that lets the end user save their performance with the use of a BinaryWriter/Reader in the Interface Class, Generic object Types where used to allow reuse of this class in future projects. The MahApps.Metro tool-kit was utilized to give the design a Metro-style feel. A package called Costura.Fody was installed to embed the .dll files into the .exe as a resources, so the application can be deployed as a single file

I got to use the Modelโ€“viewโ€“viewmodel for the first time here, I can really see the benefits of this more modulator architectural pattern and I will consider porting this project to other platforms to take advantage of this

```csharp
public static void WriteToSaveFile(List lstListToBeWritten)
{
try
{
binWriteSave.Write(SerializeListToBytes(lstListToBeWritten));
}
catch (IOException e)
{
View.UpdateStatusBarError("Could not Write to File - " + e.Message.ToString());
}
binWriteSave.Close();
}
```
- [View Full Source (github)](https://github.com/adamdon/MovieQuoteQuiz/tree/master/MovieQuoteQuiz)