Very good, I know that lately I ask many questions but every time I go inside more in Visual Studio, more questions and questions arise. Can someone tell me how I could do an auto-adjustment of different buttons or controllers rectangle with the Visual Studio WPF screen? That is, I have connected the Kinect and the screen is auto-adjusted, if the increase is also increased Kinect output screen, then now I would like to do the same with the buttons (drivers) or if you can embed them on the screen. Does anyone know if it is possible? Thank you so much I leave the part of the code that I BELIEVE IS WHERE THIS IS SELF ADJUSTMENT although I'm not sure:
if (dataReceived)
{
using (DrawingContext dc = this.drawingGroup.Open())
{
// Draw a transparent background to set the render size
dc.DrawRectangle(Brushes.Black, null, new Rect(0.0, 0.0, this.displayWidth, this.displayHeight));
int penIndex = 0;
foreach (Body body in this.bodies)
{
Pen drawPen = this.bodyColors[penIndex++];
if (body.IsTracked)
{
this.DrawClippedEdges(body, dc);
IReadOnlyDictionary<JointType, Joint> joints = body.Joints;
// Console.WriteLine("HandRight" + JointType.HandRight);
// convert the joint points to depth (display) space
Dictionary<JointType, Point> jointPoints = new Dictionary<JointType, Point>();
Joint handLeft = joints[JointType.HandLeft];