コード例 #1
0
		public Swoosher()
		{
			System.IO.Stream s = this.GetType().Assembly.GetManifestResourceStream( "Next2Friends.Swoosher.Swoosher.xaml" );
			root = (Canvas)this.InitializeFromXaml( new System.IO.StreamReader( s ).ReadToEnd() );

			timer = (Storyboard)root.Resources.FindName( "timer" );
			timer.Completed += OnTick;

			loading = (Loading)root.FindName( "loading" );
			photoCanvas = (Canvas)root.FindName( "photoCanvas" );

			backButton = (Arrow)root.FindName( "backButton" );
			forwardButton = (Arrow)root.FindName( "forwardButton" );
			fullscreenButton = (Arrow)root.FindName( "fullscreenButton" );
			windowedButton = (Arrow)root.FindName( "windowedButton" );
			physicsButton = (Arrow)root.FindName( "physicsButton" );

			Loaded += OnLoaded;
		}