本文整理汇总了C#中System.Windows.Shapes.Rectangle.Show方法的典型用法代码示例。如果您正苦于以下问题:C# Rectangle.Show方法的具体用法?C# Rectangle.Show怎么用?C# Rectangle.Show使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Shapes.Rectangle
的用法示例。
在下文中一共展示了Rectangle.Show方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateTransformer
//.........这里部分代码省略.........
R.MoveTo(
p.Black.x + Math.Cos(a.R.a + n.a) * a.R.z * n.z,
p.Black.y + Math.Sin(a.R.a + n.a) * a.R.z * n.z
);
G.MoveTo(
p.Black.x + Math.Cos(a.G.a + n.a) * a.G.z * n.z,
p.Black.y + Math.Sin(a.G.a + n.a) * a.G.z * n.z
);
M.MoveTo(
p.Black.x + Math.Cos(a.M.a + n.a) * a.M.z * n.z,
p.Black.y + Math.Sin(a.M.a + n.a) * a.M.z * n.z
);
Y.MoveTo(
p.Black.x + Math.Cos(a.Y.a + n.a) * a.Y.z * n.z,
p.Black.y + Math.Sin(a.Y.a + n.a) * a.Y.z * n.z
);
Update();
RotationInfo = p.White;
};
AsMovableByMouse(Black, null);
AsMovableByMouse(White, UpdateRotation);
var TranslationInfo = new { x = 0.0, y = 0.0 };
TranslationInfo = null;
Action ShowVisuals =
delegate
{
g0.Show();
GB.Show();
RB.Show();
Orange.Opacity = 1;
var e = new[] { M, R, G, Y, White, Black };
foreach (var k in e)
{
k.Show();
k.BringToFront();
}
};
Action UpdateTranslation =
delegate
{
ShowVisuals();
var p = new
{
Orange = new { x = Canvas.GetLeft(Orange), y = Canvas.GetTop(Orange) },
White = new { x = Canvas.GetLeft(White), y = Canvas.GetTop(White) },
Black = new { x = Canvas.GetLeft(Black), y = Canvas.GetTop(Black) },
R = new { x = Canvas.GetLeft(R), y = Canvas.GetTop(R) },
G = new { x = Canvas.GetLeft(G), y = Canvas.GetTop(G) },