Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
File -> new blank project
- Loading branch information
0 parents
commit f71af2e
Showing
21 changed files
with
2,074 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
bin | ||
obj | ||
Packages | ||
*.suo | ||
*.user | ||
*.dat | ||
_Resharper* | ||
msbuild.log | ||
*.cache | ||
artifacts/ |
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,46 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 11 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Win8Demo-Tiles", "Win8Demo-Tiles\Win8Demo-Tiles.csproj", "{BD75C634-E7E0-4960-BF41-69F6821A0FB9}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|ARM = Debug|ARM | ||
Debug|Any CPU = Debug|Any CPU | ||
Debug|x64 = Debug|x64 | ||
Debug|x86 = Debug|x86 | ||
Release|ARM = Release|ARM | ||
Release|Any CPU = Release|Any CPU | ||
Release|x64 = Release|x64 | ||
Release|x86 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Debug|ARM.ActiveCfg = Debug|ARM | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Debug|ARM.Build.0 = Debug|ARM | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Debug|ARM.Deploy.0 = Debug|ARM | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Debug|Any CPU.Deploy.0 = Debug|Any CPU | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Debug|x64.ActiveCfg = Debug|x64 | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Debug|x64.Build.0 = Debug|x64 | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Debug|x64.Deploy.0 = Debug|x64 | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Debug|x86.ActiveCfg = Debug|x86 | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Debug|x86.Build.0 = Debug|x86 | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Debug|x86.Deploy.0 = Debug|x86 | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Release|ARM.ActiveCfg = Release|ARM | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Release|ARM.Build.0 = Release|ARM | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Release|ARM.Deploy.0 = Release|ARM | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Release|Any CPU.Deploy.0 = Release|Any CPU | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Release|x64.ActiveCfg = Release|x64 | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Release|x64.Build.0 = Release|x64 | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Release|x64.Deploy.0 = Release|x64 | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Release|x86.ActiveCfg = Release|x86 | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Release|x86.Build.0 = Release|x86 | ||
{BD75C634-E7E0-4960-BF41-69F6821A0FB9}.Release|x86.Deploy.0 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
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 @@ | ||
<Application | ||
x:Class="Win8Demo_Tiles.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:Win8Demo_Tiles"> | ||
|
||
<Application.Resources> | ||
<ResourceDictionary> | ||
<ResourceDictionary.MergedDictionaries> | ||
|
||
<!-- | ||
Styles that define common aspects of the platform look and feel | ||
Required by Visual Studio project and item templates | ||
--> | ||
<ResourceDictionary Source="Common/StandardStyles.xaml"/> | ||
</ResourceDictionary.MergedDictionaries> | ||
|
||
</ResourceDictionary> | ||
</Application.Resources> | ||
</Application> |
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,70 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using Windows.ApplicationModel; | ||
using Windows.ApplicationModel.Activation; | ||
using Windows.Foundation; | ||
using Windows.Foundation.Collections; | ||
using Windows.UI.Xaml; | ||
using Windows.UI.Xaml.Controls; | ||
using Windows.UI.Xaml.Controls.Primitives; | ||
using Windows.UI.Xaml.Data; | ||
using Windows.UI.Xaml.Input; | ||
using Windows.UI.Xaml.Media; | ||
using Windows.UI.Xaml.Navigation; | ||
|
||
// The Blank Application template is documented at http://go.microsoft.com/fwlink/?LinkId=234227 | ||
|
||
namespace Win8Demo_Tiles | ||
{ | ||
/// <summary> | ||
/// Provides application-specific behavior to supplement the default Application class. | ||
/// </summary> | ||
sealed partial class App : Application | ||
{ | ||
/// <summary> | ||
/// Initializes the singleton application object. This is the first line of authored code | ||
/// executed, and as such is the logical equivalent of main() or WinMain(). | ||
/// </summary> | ||
public App() | ||
{ | ||
this.InitializeComponent(); | ||
this.Suspending += OnSuspending; | ||
} | ||
|
||
/// <summary> | ||
/// Invoked when the application is launched normally by the end user. Other entry points | ||
/// will be used when the application is launched to open a specific file, to display | ||
/// search results, and so forth. | ||
/// </summary> | ||
/// <param name="args">Details about the launch request and process.</param> | ||
protected override void OnLaunched(LaunchActivatedEventArgs args) | ||
{ | ||
if (args.PreviousExecutionState == ApplicationExecutionState.Terminated) | ||
{ | ||
//TODO: Load state from previously suspended application | ||
} | ||
|
||
// Create a Frame to act navigation context and navigate to the first page | ||
var rootFrame = new Frame(); | ||
rootFrame.Navigate(typeof(BlankPage)); | ||
|
||
// Place the frame in the current Window and ensure that it is active | ||
Window.Current.Content = rootFrame; | ||
Window.Current.Activate(); | ||
} | ||
|
||
/// <summary> | ||
/// Invoked when application execution is being suspended. Application state is saved | ||
/// without knowing whether the application will be terminated or resumed with the contents | ||
/// of memory still intact. | ||
/// </summary> | ||
/// <param name="sender">The source of the suspend request.</param> | ||
/// <param name="e">Details about the suspend request.</param> | ||
void OnSuspending(object sender, SuspendingEventArgs e) | ||
{ | ||
//TODO: Save application state and stop any background activity | ||
} | ||
} | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,13 @@ | ||
<Page | ||
x:Class="Win8Demo_Tiles.BlankPage" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:Win8Demo_Tiles" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d"> | ||
|
||
<Grid Background="{StaticResource ApplicationPageBackgroundBrush}"> | ||
|
||
</Grid> | ||
</Page> |
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,38 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using Windows.Foundation; | ||
using Windows.Foundation.Collections; | ||
using Windows.UI.Xaml; | ||
using Windows.UI.Xaml.Controls; | ||
using Windows.UI.Xaml.Controls.Primitives; | ||
using Windows.UI.Xaml.Data; | ||
using Windows.UI.Xaml.Input; | ||
using Windows.UI.Xaml.Media; | ||
using Windows.UI.Xaml.Navigation; | ||
|
||
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238 | ||
|
||
namespace Win8Demo_Tiles | ||
{ | ||
/// <summary> | ||
/// An empty page that can be used on its own or navigated to within a Frame. | ||
/// </summary> | ||
public sealed partial class BlankPage : Page | ||
{ | ||
public BlankPage() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
|
||
/// <summary> | ||
/// Invoked when this page is about to be displayed in a Frame. | ||
/// </summary> | ||
/// <param name="e">Event data that describes how this page was reached. The Parameter | ||
/// property is typically used to configure the page.</param> | ||
protected override void OnNavigatedTo(NavigationEventArgs e) | ||
{ | ||
} | ||
} | ||
} |
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,55 @@ | ||
using System; | ||
using System.ComponentModel; | ||
using System.Runtime.CompilerServices; | ||
using Windows.UI.Xaml.Data; | ||
|
||
namespace Win8Demo_Tiles.Common | ||
{ | ||
/// <summary> | ||
/// Implementation of <see cref="INotifyPropertyChanged"/> to simplify models. | ||
/// </summary> | ||
[Windows.Foundation.Metadata.WebHostHidden] | ||
public abstract class BindableBase : INotifyPropertyChanged | ||
{ | ||
/// <summary> | ||
/// Multicast event for property change notifications. | ||
/// </summary> | ||
public event PropertyChangedEventHandler PropertyChanged; | ||
|
||
/// <summary> | ||
/// Checks if a property already matches a desired value. Sets the property and | ||
/// notifies listeners only when necessary. | ||
/// </summary> | ||
/// <typeparam name="T">Type of the property.</typeparam> | ||
/// <param name="storage">Reference to a property with both getter and setter.</param> | ||
/// <param name="value">Desired value for the property.</param> | ||
/// <param name="propertyName">Name of the property used to notify listeners. This | ||
/// value is optional and can be provided automatically when invoked from compilers that | ||
/// support CallerMemberName.</param> | ||
/// <returns>True if the value was changed, false if the existing value matched the | ||
/// desired value.</returns> | ||
protected bool SetProperty<T>(ref T storage, T value, [CallerMemberName] String propertyName = null) | ||
{ | ||
if (object.Equals(storage, value)) return false; | ||
|
||
storage = value; | ||
this.OnPropertyChanged(propertyName); | ||
return true; | ||
} | ||
|
||
/// <summary> | ||
/// Notifies listeners that a property value has changed. | ||
/// </summary> | ||
/// <param name="propertyName">Name of the property used to notify listeners. This | ||
/// value is optional and can be provided automatically when invoked from compilers | ||
/// that support <see cref="CallerMemberNameAttribute"/>.</param> | ||
protected void OnPropertyChanged([CallerMemberName] string propertyName = null) | ||
{ | ||
var eventHandler = this.PropertyChanged; | ||
if (eventHandler != null) | ||
{ | ||
eventHandler(this, new PropertyChangedEventArgs(propertyName)); | ||
} | ||
} | ||
} | ||
} |
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,21 @@ | ||
using System; | ||
using Windows.UI.Xaml.Data; | ||
|
||
namespace Win8Demo_Tiles.Common | ||
{ | ||
/// <summary> | ||
/// Value converter that translates true to false and vice versa. | ||
/// </summary> | ||
public sealed class BooleanNegationConverter : IValueConverter | ||
{ | ||
public object Convert(object value, Type targetType, object parameter, string language) | ||
{ | ||
return !(value is bool && (bool)value); | ||
} | ||
|
||
public object ConvertBack(object value, Type targetType, object parameter, string language) | ||
{ | ||
return !(value is bool && (bool)value); | ||
} | ||
} | ||
} |
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,32 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Linq; | ||
using System.Runtime.CompilerServices; | ||
using Windows.Foundation; | ||
using Windows.Foundation.Collections; | ||
using Windows.Graphics.Display; | ||
using Windows.UI.ViewManagement; | ||
using Windows.UI.Xaml; | ||
using Windows.UI.Xaml.Controls; | ||
using Windows.UI.Xaml.Data; | ||
|
||
namespace Win8Demo_Tiles.Common | ||
{ | ||
/// <summary> | ||
/// Value converter that translates true to <see cref="Visibility.Visible"/> and false to | ||
/// <see cref="Visibility.Collapsed"/>. | ||
/// </summary> | ||
public sealed class BooleanToVisibilityConverter : IValueConverter | ||
{ | ||
public object Convert(object value, Type targetType, object parameter, string language) | ||
{ | ||
return (value is bool && (bool)value) ? Visibility.Visible : Visibility.Collapsed; | ||
} | ||
|
||
public object ConvertBack(object value, Type targetType, object parameter, string language) | ||
{ | ||
return value is Visibility && (Visibility)value == Visibility.Visible; | ||
} | ||
} | ||
} |
Oops, something went wrong.