This file contains hidden or 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
| <Page | |
| x:Class="GTWin8.TestPage" | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| xmlns:local="using:GTWin8" | |
| 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}" RenderTransformOrigin="0.43299999833107,0.416000008583069"> |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| namespace GenericFactoryPatternExample | |
| { | |
| public class MainClass | |
| { | |
| // Example of using a service locator to get the correct factory for | |
| // a given object type. | |
| public static void Main() |
This file contains hidden or 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
| <ResourceDictionary | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| xmlns:local="using:GTWin8.Assets"> | |
| <Style x:Key="CleanListViewItemStyle" TargetType="ListViewItem"> | |
| <Setter Property="FontFamily" Value="{StaticResource ContentControlThemeFontFamily}" /> | |
| <Setter Property="FontSize" Value="{StaticResource ControlContentThemeFontSize}" /> | |
| <Setter Property="Background" Value="Transparent"/> | |
| <Setter Property="TabNavigation" Value="Local"/> |
This file contains hidden or 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
| public class ExclusiveTaskQueue | |
| { | |
| public ConcurrentExclusiveSchedulerPair _schedulerPair; | |
| public static TaskFactory _exclusiveTaskFactory; | |
| public ExclusiveTaskQueue() | |
| { | |
| _schedulerPair = new ConcurrentExclusiveSchedulerPair(); | |
| _exclusiveTaskFactory = new TaskFactory(_schedulerPair.ExclusiveScheduler); |
This file contains hidden or 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
| <Page | |
| x:Class="GTWin8.Ui.Drafts.ForegroundAnimPage" | |
| IsTabStop="false" | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| xmlns:local="using:GTWin8.Ui.Drafts" | |
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
| mc:Ignorable="d"> |
This file contains hidden or 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
| public class PageBase : LayoutAwarePage | |
| { | |
| protected override void OnNavigatedTo(Windows.UI.Xaml.Navigation.NavigationEventArgs e) | |
| { | |
| base.OnNavigatedTo(e); | |
| object obj = null; | |
| Debug.Assert(e.Parameter == null || e.Parameter is String, "Expected string as parameter"); | |
| if (e.Parameter != null) obj = SerializationHelper.DataContractDeserialize<object>((string) e.Parameter); | |
| OnNavigatedToSmart(e, obj); | |
| } |
This file contains hidden or 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
| <ResourceDictionary | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| > | |
| <!-- Default theme resources --> | |
| <!-- | |
| ****************************************************************** | |
| DEFAULT COMMON CONTROL PROPERTIES | |
| ****************************************************************** |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using GalaSoft.MvvmLight.Messaging; | |
| using GTWin8.Messages; | |
| using GTWin8.Ui; | |
| using Windows.UI.Xaml; |
This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8"?> | |
| <!-- REMEMBER TO UPDATE BOTH LANDSCAPE AND PORTRAIT FILES --> | |
| <LinearLayout | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:grid="http://schemas.android.com/apk/res-auto" | |
| android:layout_width="fill_parent" | |
| android:layout_height="fill_parent"> | |
| <!-- Setting up GridLayout support library in IntelliJ: http://stackoverflow.com/questions/12468606/intellij-and-android-support-v7-widget-gridlayout --> | |
| <android.support.v7.widget.GridLayout | |
| android:layout_width="match_parent" |
This file contains hidden or 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
| public static class ExceptionExtensions | |
| { | |
| public static string GetAsString(this Exception ex) | |
| { | |
| StringBuilder sb = new StringBuilder(); | |
| AppendDefaultExceptionString(ex, sb); | |
| return sb.ToString(); | |
| } | |
| private static void AppendDefaultExceptionString(this Exception ex, StringBuilder sb) |