画一条垂直于WPF中现有线的线 [英] Draw a line perpendicular to the existing line in WPF

查看:547
本文介绍了画一条垂直于WPF中现有线的线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

      我对ma项目的要求不高.我需要画一条与现有线垂直的线.

        I have a small little requirement in ma project. I need to draw a line which is perpendicular to the existing line.

假设我有一条AB坐标为A(0,0)和B(100,0)的直线,我需要画一条直线CD,该CD垂直于AB,位于AB的中间. C((A + B)/2)的坐标.但是WPF中是否有任何属性可以画线 与预先存在的线成特定角度

Lets say i have a line AB with the co ordinates A(0,0) and B(100,0) i need to draw a line CD which is perpendicluar to AB at the middle of AB. I can calculate co ordinates of C((A+B)/2). But is there any property in WPF which allows to draw a line at a specifed angle to the preexisting line

推荐答案

Hello,

 

谢谢您的发帖!  我建议在中为您的问题创建一个新线程 Windows Presentation Foundation(WPF) 位于此处: http://social.msdn.microsoft.com/Forums/en -US/wpf/threads

Thank you for your post!  I would suggest creating a new thread for your question in the Windows Presentation Foundation (WPF)  located here:  http://social.msdn.microsoft.com/Forums/en-US/wpf/threads


祝你有美好的一天!

谢谢!


Have a great day!

Thanks!


这篇关于画一条垂直于WPF中现有线的线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆