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
<Grid> | |
<Grid x:Name="Grid" Background="#FF00FB22"> | |
<Grid.Projection> | |
<PlaneProjection RotationX="-180"/> | |
</Grid.Projection> | |
</Grid> | |
<Grid x:Name="Grid1" Background="Red"> | |
<Grid.Projection> | |
<PlaneProjection/> | |
</Grid.Projection> |
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
Storyboard x:Name="FlipIn"> | |
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="grid"> | |
<DiscreteObjectKeyFrame KeyTime="0"> | |
<DiscreteObjectKeyFrame.Value> | |
<Visibility>Collapsed</Visibility> | |
</DiscreteObjectKeyFrame.Value> | |
</DiscreteObjectKeyFrame> | |
<DiscreteObjectKeyFrame KeyTime="0:0:0.5"> | |
<DiscreteObjectKeyFrame.Value> | |
<Visibility>Visible</Visibility> |
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
<UserControl | |
x:Class="W8TileControl.TileControl" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
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" | |
d:DesignHeight="300" | |
d:DesignWidth="300"> | |
<UserControl.Resources> |
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
using System; | |
using Windows.UI.Xaml; | |
using Windows.UI.Xaml.Controls; | |
using Windows.UI.Xaml.Media; | |
namespace W8TileControl | |
{ | |
public sealed partial class TileControl : UserControl | |
{ | |
public static readonly DependencyProperty FrontImageProperty = DependencyProperty.Register( |
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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Text; | |
using Android.App; | |
using Android.Content; | |
using Android.OS; | |
using Android.Runtime; | |
using Android.Util; |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<resources> | |
<declare-styleable name="ImageControl"> | |
<attr name="SVGSource" format="string"/> | |
</declare-styleable> | |
</resources> |
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
Needed for custom attribute: xmlns:app="http://schemas.android.com/apk/res-auto" | |
<Foundbite.GameAndroid.CustomViews.ImageControl | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
app:SVGSource="SVG/Image.svg" | |
android:layout_centerHorizontal="true" | |
android:layout_centerVertical="true" | |
android:layout_marginBottom="36dp" | |
android:layout_marginTop="36dp" /> |
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
public static string GetPath() | |
{ | |
if (Debugger.IsAttached) return Android.OS.Environment.ExternalStorageDirectory.Path; | |
else return Application.Context.FilesDir.Path; | |
} |
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
public class Settings | |
{ | |
//Store game highscore. | |
public static readonly Setting<int> HighScore = new Setting<int>("HighScore", 0); | |
} |
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
Settings.HighScore.Value = 1000; |
OlderNewer