Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

Commit

Permalink
Initial code commit
Browse files Browse the repository at this point in the history
Proof of concept
  • Loading branch information
mgrman committed Dec 1, 2015
1 parent 3cb884e commit 85d06fd
Show file tree
Hide file tree
Showing 32 changed files with 2,209 additions and 0 deletions.
199 changes: 199 additions & 0 deletions .gitignore
@@ -0,0 +1,199 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
build/
bld/
[Bb]in/
[Oo]bj/

# Visual Studo 2015 cache/options directory
.vs/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

# NUNIT
*.VisualState.xml
TestResult.xml

# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c

*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc

# Chutzpah Test files
_Chutzpah*

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# TFS 2012 Local Workspace
$tf/

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# JustCode is a .NET coding addin-in
.JustCode

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
_NCrunch_*
.*crunch*.local.xml

# MightyMoose
*.mm.*
AutoTest.Net/

# Web workbench (sass)
.sass-cache/

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj

# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config

# Windows Azure Build Output
csx/
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
*.[Cc]ache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
node_modules/
bower_components/

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
*.mdf
*.ldf

# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings

# Microsoft Fakes
FakesAssemblies/

# Node.js Tools for Visual Studio
.ntvs_analysis.dat

# Visual Studio 6 build log
*.plg

# Visual Studio 6 workspace options file
*.opt


_deprecated
4 changes: 4 additions & 0 deletions README.md
@@ -1,2 +1,6 @@
# SteamPaver
Create Windows 10 tiles for Steam Games

WIP

*Requires Threshold 2 update*
28 changes: 28 additions & 0 deletions src/SteamPaver.sln
@@ -0,0 +1,28 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.23107.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SteamPaver_TileCreator", "SteamPaver_TileCreator\SteamPaver_TileCreator.csproj", "{570F1EBE-E83F-483E-8E52-996B935A70EE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SteamPaver_Main", "SteamPaver_Main\SteamPaver_Main.csproj", "{F0F9AC4A-3E3E-49E0-A393-4778361EAC01}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{570F1EBE-E83F-483E-8E52-996B935A70EE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{570F1EBE-E83F-483E-8E52-996B935A70EE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{570F1EBE-E83F-483E-8E52-996B935A70EE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{570F1EBE-E83F-483E-8E52-996B935A70EE}.Release|Any CPU.Build.0 = Release|Any CPU
{F0F9AC4A-3E3E-49E0-A393-4778361EAC01}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F0F9AC4A-3E3E-49E0-A393-4778361EAC01}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F0F9AC4A-3E3E-49E0-A393-4778361EAC01}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F0F9AC4A-3E3E-49E0-A393-4778361EAC01}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
6 changes: 6 additions & 0 deletions src/SteamPaver_Main/App.config
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6"/>
</startup>
</configuration>
13 changes: 13 additions & 0 deletions src/SteamPaver_Main/App.xaml
@@ -0,0 +1,13 @@
<Application x:Class="SteamPaver_Main.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:SteamPaver_Main"
StartupUri="MainWindow.xaml">
<Application.Resources>
<local:InstalledToColorConverter x:Key="InstalledToColorConverter"/>
<local:ImageToAspectRatioConverter x:Key="ImageToAspectRatioConverter"/>
<local:NullToVisibilityConverter x:Key="NullToVisibility"/>


</Application.Resources>
</Application>
17 changes: 17 additions & 0 deletions src/SteamPaver_Main/App.xaml.cs
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace SteamPaver_Main
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}
29 changes: 29 additions & 0 deletions src/SteamPaver_Main/Converters/ImageToAspectRatioConverter.cs
@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using System.Windows.Media.Imaging;

namespace SteamPaver_Main
{
class ImageToAspectRatioConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if(value is BitmapSource)
{
var bs = value as BitmapSource;
return bs.Width / bs.Height;
}
return 1.0;
}

public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}
30 changes: 30 additions & 0 deletions src/SteamPaver_Main/Converters/InstalledToColorConverter.cs
@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace SteamPaver_Main
{
class InstalledToColorConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if(value as bool? == true)
{
return System.Windows.Media.Brushes.Green;
}
else
{
return System.Windows.Media.Brushes.LightGray;
}
}

public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}
27 changes: 27 additions & 0 deletions src/SteamPaver_Main/Converters/NullToVisibility.cs
@@ -0,0 +1,27 @@

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Data;
using System.Windows.Media.Imaging;

namespace SteamPaver_Main
{
class NullToVisibilityConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{

return value==null?Visibility.Hidden:Visibility.Visible;
}

public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}
4 changes: 4 additions & 0 deletions src/SteamPaver_Main/FodyWeavers.xml
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Weavers>
<PropertyChanged />
</Weavers>

0 comments on commit 85d06fd

Please sign in to comment.