本文整理汇总了C#中System.Windows.Shapes.Ellipse.AddEllipseToStoryBoard方法的典型用法代码示例。如果您正苦于以下问题:C# Ellipse.AddEllipseToStoryBoard方法的具体用法?C# Ellipse.AddEllipseToStoryBoard怎么用?C# Ellipse.AddEllipseToStoryBoard使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Shapes.Ellipse
的用法示例。
在下文中一共展示了Ellipse.AddEllipseToStoryBoard方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DrawTwoDPoints
public void DrawTwoDPoints(IDictionary<int, string> graphInfo)
{
foreach (int k in graphInfo.Keys)
{
Ellipse e = new Ellipse()
{
Width = 20,
Height = 20,
Stroke = new SolidColorBrush(Colors.Black),
StrokeThickness = 1,
Name = k.ToString(),
};
e.MouseEnter += new MouseEventHandler(EllipseHover);
e.MouseLeave += new MouseEventHandler(EllipseMouseLeave);
e.MouseLeftButtonDown += new MouseButtonEventHandler(EllipseClick);
TwoDRepresentation.Children.Add(e);
TwoDRepresenters.Add(k, e);
e.AddEllipseToStoryBoard();
Fills.Add(k, new TwoColors());
Canvas c = new Canvas() { Visibility = Visibility.Collapsed, };
c.Children.Add(new TextBlock() { Text = graphInfo[k] });
TwoDInfo.Add(k, c);
TwoDRepresentation.Children.Add(c);
}
}