Created
October 19, 2010 21:20
-
-
Save jdstanhope/635149 to your computer and use it in GitHub Desktop.
Code behind for MainPage.xaml in FarseerTransform
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.Collections.ObjectModel; | |
using System.Windows; | |
using System.Windows.Media; | |
using System.Windows.Threading; | |
using FarseerPhysics.Common; | |
using FarseerPhysics.Dynamics; | |
using FarseerPhysics.Factories; | |
using Microsoft.Phone.Controls; | |
namespace FarseerTransforms | |
{ | |
public partial class MainPage : PhoneApplicationPage | |
{ | |
private World _world; | |
private CompositeTransform _worldToCanvas; | |
private DispatcherTimer _worldTimer; | |
private ObservableCollection<BodyViewModel> _bodies = new ObservableCollection<BodyViewModel>(); | |
// Constructor | |
public MainPage() | |
{ | |
InitializeComponent(); | |
Loaded += new RoutedEventHandler(MainPageLoaded); | |
Unloaded += new RoutedEventHandler(MainPageUnloaded); | |
DataContext = this; | |
} | |
public ObservableCollection<BodyViewModel> Bodies | |
{ | |
get { return _bodies; } | |
} | |
void MainPageLoaded(object sender, RoutedEventArgs e) | |
{ | |
} | |
void MainPageUnloaded(object sender, RoutedEventArgs e) | |
{ | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment