我想在我的畫布控件和每個控件中動態添加一些圖像或控件,以便獲取其手勢事件。我如何得到那將是最好的方法。 void AddText()
{
TextBlock name = new TextBlock();
name.Text = "This is text " + Count;
Random rnd1 = new Random();
我正在使用Kinect開發使用C#和WPF的圖像查看應用程序。當用戶將兩個他的手在他的頭上,我顯示Messagebox詢問用戶,如果他/她真的想退出: //Quit if both hands above head
if (skeleton.Joints[JointType.HandLeft].Position.Y > skeleton.Joints[JointType.Head].Po