You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
840 B
29 lines
840 B
using System.Windows;
|
|
|
|
namespace HMIControl
|
|
{
|
|
[Startable]
|
|
public class PreCleaner : HMIControlBase
|
|
{
|
|
static PreCleaner()
|
|
{
|
|
DefaultStyleKeyProperty.OverrideMetadata(typeof(PreCleaner), new FrameworkPropertyMetadata(typeof(PreCleaner)));
|
|
}
|
|
|
|
public override LinkPosition[] GetLinkPositions()
|
|
{
|
|
return new LinkPosition[2]
|
|
{
|
|
new LinkPosition(new Point(0.2,0),ConnectOrientation.Top),
|
|
new LinkPosition(new Point(0.55,1),ConnectOrientation.Bottom),
|
|
};
|
|
}
|
|
|
|
public override void OnApplyTemplate()
|
|
{
|
|
base.OnApplyTemplate();
|
|
Motor motor = Template.FindName("motor", this) as Motor;
|
|
children = new ITagLink[] { motor };
|
|
}
|
|
}
|
|
}
|
|
|