C# Class PlayGround.Engine.Emitters.LineEmitter

======================================== .NET Framework 3.0 Custom Control ======================================== Follow steps 1a or 1b and then 2 to use this custom control in a XAML file. Step 1a) Using this custom control in a XAML file that exists in the current project. Add this XmlNamespace attribute to the root element of the markup file where it is to be used: xmlns:MyNamespace="clr-namespace:SandBox.Engine.Controls" Step 1b) Using this custom control in a XAML file that exists in a different project. Add this XmlNamespace attribute to the root element of the markup file where it is to be used: xmlns:MyNamespace="clr-namespace:SandBox.Engine.Controls;assembly=SandBox.Engine.Controls" You will also need to add a project reference from the project where the XAML file lives to this project and Rebuild to avoid compilation errors: Right click on the target project in the Solution Explorer and "Add Reference"->"Projects"->[Browse to and select this project] Step 2) Go ahead and use your control in the XAML file. Note that Intellisense in the XML editor does not currently work on custom controls and its child elements.
Inheritance: Emitter
ファイルを表示 Open project: JLaferri/ChallongeMatchDisplay

Public Properties

Property Type Description
X1Property System.Windows.DependencyProperty
X2Property System.Windows.DependencyProperty
Y1Property System.Windows.DependencyProperty
Y2Property System.Windows.DependencyProperty

Public Methods

Method Description
AddParticle ( PlayGround.Engine.Controls.ParticleSystem system, PlayGround.Engine.Controls.Particle particle ) : void

Add a particle to the system

UpdateParticle ( PlayGround.Engine.Controls.Particle particle ) : void

Update the particle

Private Methods

Method Description
LineEmitter ( ) : System.Windows

LinearEquation ( double x ) : double

Find a y-coord on a line given an x-coord on the line

Method Details

AddParticle() public method

Add a particle to the system
public AddParticle ( PlayGround.Engine.Controls.ParticleSystem system, PlayGround.Engine.Controls.Particle particle ) : void
system PlayGround.Engine.Controls.ParticleSystem
particle PlayGround.Engine.Controls.Particle
return void

UpdateParticle() public method

Update the particle
public UpdateParticle ( PlayGround.Engine.Controls.Particle particle ) : void
particle PlayGround.Engine.Controls.Particle
return void

Property Details

X1Property public_oe static_oe property

Dependency Property which maintains the X1 position of the MeatballEmitter
public static DependencyProperty,System.Windows X1Property
return System.Windows.DependencyProperty

X2Property public_oe static_oe property

Dependency Property which maintains the X2 position of the MeatballEmitter
public static DependencyProperty,System.Windows X2Property
return System.Windows.DependencyProperty

Y1Property public_oe static_oe property

Dependency Property which maintains the Y1 position of the MeatballEmitter
public static DependencyProperty,System.Windows Y1Property
return System.Windows.DependencyProperty

Y2Property public_oe static_oe property

Dependency Property which maintains the Y2 position of the MeatballEmitter
public static DependencyProperty,System.Windows Y2Property
return System.Windows.DependencyProperty