Skip to content

Instantly share code, notes, and snippets.

@jdstanhope
Created October 19, 2010 21:20
Show Gist options
  • Save jdstanhope/635149 to your computer and use it in GitHub Desktop.
Save jdstanhope/635149 to your computer and use it in GitHub Desktop.
Code behind for MainPage.xaml in FarseerTransform
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