本文整理汇总了C#中System.Windows.Media.GeneralTransformGroup类的典型用法代码示例。如果您正苦于以下问题:C# GeneralTransformGroup类的具体用法?C# GeneralTransformGroup怎么用?C# GeneralTransformGroup使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GeneralTransformGroup类属于System.Windows.Media命名空间,在下文中一共展示了GeneralTransformGroup类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetDesiredTransform
public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
{
var result = new GeneralTransformGroup();
result.Children.Add(base.GetDesiredTransform(transform));
result.Children.Add(new TranslateTransform(_offsetLeft, _offsetTop));
return result;
}
示例2: GetDesiredTransform
public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
{
GeneralTransformGroup result = new GeneralTransformGroup();
result.Children.Add(base.GetDesiredTransform(transform));
result.Children.Add(new TranslateTransform(_leftOffset, _topOffset));
return result;
}
示例3: GetDesiredTransform
public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
{
GeneralTransformGroup result = new GeneralTransformGroup();
result.Children.Add (transform);
result.Children.Add (new TranslateTransform (this.offset.X, this.offset.Y));
return result;
}
示例4: GetDesiredTransform
public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
{
var transformGroup = new GeneralTransformGroup();
transformGroup.Children.Add(base.GetDesiredTransform(transform));
transformGroup.Children.Add(new TranslateTransform(_currentPoint.X - _startPoint.X, _currentPoint.Y - _startPoint.Y));
return transformGroup;
}
示例5: GetDesiredTransform
public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
{
GeneralTransformGroup result = new GeneralTransformGroup();
result.Children.Add(base.GetDesiredTransform(transform));
result.Children.Add(new TranslateTransform(position.X, position.Y));
return result;
}
示例6: GetDesiredTransform
public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
{
GeneralTransformGroup newTransform = new GeneralTransformGroup();
newTransform.Children.Add(base.GetDesiredTransform(transform));
newTransform.Children.Add(new TranslateTransform(this._adornerOffset.X, this._adornerOffset.Y));
return newTransform;
}
示例7: GetDesiredTransform
public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
{
GeneralTransformGroup result = new GeneralTransformGroup();
result.Children.Add(base.GetDesiredTransform(transform));
result.Children.Add(new TranslateTransform(this.left, this.top));
return result;
}
示例8: GetDesiredTransform
public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
{
GeneralTransformGroup group = new GeneralTransformGroup();
group.Children.Add(base.GetDesiredTransform(transform));
group.Children.Add(translate);
return group;
}
示例9: GetDesiredTransform
public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
{
var result = new GeneralTransformGroup();
result.Children.Add(base.GetDesiredTransform(transform));
result.Children.Add(new TranslateTransform(this.MousePosition.X - 4, this.MousePosition.Y - 4));
return result;
}
示例10: GetDesiredTransform
public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
{
GeneralTransformGroup result = new GeneralTransformGroup();
result.Children.Add(base.GetDesiredTransform(transform));
result.Children.Add(new TranslateTransform(
position.X - treeViewEx.ScrollViewer.ContentHorizontalOffset, position.Y - treeViewEx.ScrollViewer.ContentVerticalOffset));
return result;
}
示例11: GetDesiredTransform
/// <summary>
/// Override.
/// </summary>
/// <param name="transform"></param>
/// <returns></returns>
public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
{
var result = new GeneralTransformGroup();
// ReSharper disable AssignNullToNotNullAttribute
result.Children.Add(base.GetDesiredTransform(transform));
// ReSharper restore AssignNullToNotNullAttribute
result.Children.Add(new TranslateTransform(offsetLeft, offsetTop));
return result;
}
示例12: GetDesiredTransform
public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
{
GeneralTransformGroup result = new GeneralTransformGroup();
result.Children.Add(new TranslateTransform(Left, Top));
if (Left > 0) this.Visibility = Visibility.Visible;
result.Children.Add(base.GetDesiredTransform(transform));
return result;
}
示例13: GetDesiredTransform
public override GeneralTransform GetDesiredTransform(GeneralTransform transform) {
var result = new GeneralTransformGroup();
var desired = base.GetDesiredTransform(transform);
if (desired != null) {
result.Children.Add(desired);
}
result.Children.Add(new TranslateTransform(_offsetLeft, _offsetTop));
return result;
}
示例14: GetDesiredTransform
public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
{
var result = new GeneralTransformGroup();
var tf = base.GetDesiredTransform(transform);
Debug.Assert(tf != null);
result.Children.Add(tf);
result.Children.Add(new TranslateTransform(_left, _top));
return result;
}
示例15: GetDesiredTransform
public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
{
var baseTransform = base.GetDesiredTransform(transform);
var translateTransform = new TranslateTransform(MousePosition.X - 4, MousePosition.Y - 4);
var result = new GeneralTransformGroup();
if (baseTransform != null)
result.Children.Add(baseTransform);
result.Children.Add(translateTransform);
return result;
}