C# Класс 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.
Наследование: Emitter
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
X1Property System.Windows.DependencyProperty
X2Property System.Windows.DependencyProperty
Y1Property System.Windows.DependencyProperty
Y2Property System.Windows.DependencyProperty

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
LineEmitter ( ) : System.Windows

LinearEquation ( double x ) : double

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

Описание методов

AddParticle() публичный Метод

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
Результат void

UpdateParticle() публичный Метод

Update the particle
public UpdateParticle ( PlayGround.Engine.Controls.Particle particle ) : void
particle PlayGround.Engine.Controls.Particle
Результат void

Описание свойств

X1Property публичное статическое свойство

Dependency Property which maintains the X1 position of the MeatballEmitter
public static DependencyProperty,System.Windows X1Property
Результат System.Windows.DependencyProperty

X2Property публичное статическое свойство

Dependency Property which maintains the X2 position of the MeatballEmitter
public static DependencyProperty,System.Windows X2Property
Результат System.Windows.DependencyProperty

Y1Property публичное статическое свойство

Dependency Property which maintains the Y1 position of the MeatballEmitter
public static DependencyProperty,System.Windows Y1Property
Результат System.Windows.DependencyProperty

Y2Property публичное статическое свойство

Dependency Property which maintains the Y2 position of the MeatballEmitter
public static DependencyProperty,System.Windows Y2Property
Результат System.Windows.DependencyProperty