Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Kinect Reception

, 12 Jan 2012 Ms-PL
TV Screen in the Reception, When nothing happens (no one is in the reception) we can display videos on the screen but when someone enters the frame show him the Kinect Image, and if the user is doing something funny, capture his image and save it.
<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="KinectReception.Controls.VitruvianManControl"
	x:Name="UserControl" d:DesignHeight="480" Width="480">

	<Grid x:Name="LayoutRoot">
		<Ellipse x:Name="ellipse" Margin="8" Fill="#33FFFFFF"/>
		<Image x:Name="BackgroundImage" Margin="8,8,0,8"  HorizontalAlignment="Left" Width="464" Source="/KinectReception;component/Images/VitruvianMan.png" />
		<Grid x:Name="Joints" HorizontalAlignment="Left" Width="480" Height="480" VerticalAlignment="Top">
		<Grid x:Name="HandRight">
			<Rectangle Fill="#7FFBB1AD" Margin="50.667,89.542,114.666,199.333" Stroke="Black" Visibility="Hidden"/>
			<Ellipse  HorizontalAlignment="Left" Height="18.542" Margin="68.75,94.875,0,0" VerticalAlignment="Top" Width="18.542" Stroke="White" Fill="Yellow"/>
		</Grid>
		<Grid x:Name="WristRight">
			<Rectangle Fill="#7FFBB1AD" Margin="50.667,89.542,114.666,199.333" Stroke="Black" Visibility="Hidden"/>
			<Ellipse HorizontalAlignment="Left" Height="18.542" Margin="87.292,104.875,0,0" VerticalAlignment="Top" Width="18.542" Stroke="White" Fill="Yellow"/>
		</Grid>
		<Grid x:Name="ElbowRight">
			<Rectangle Fill="#7FFBB1AD" Margin="135.042,89.542,199.333,0" Stroke="Black" Height="133.125" VerticalAlignment="Top" Visibility="Hidden"/>
			<Ellipse HorizontalAlignment="Left" Height="18.542" Margin="135.042,125.708,0,0" VerticalAlignment="Top" Width="18.542" Stroke="White" Fill="Yellow"/>
		</Grid>
		<Grid x:Name="ShoulderRight">
			<Rectangle Fill="#7FFBB1AD" Margin="179.042,129.542,0,0" Stroke="Black" Height="50.458" VerticalAlignment="Top" HorizontalAlignment="Left" Width="43.625" Visibility="Hidden"/>
			<Ellipse HorizontalAlignment="Left" Height="18.542" Margin="191.042,146.125,0,0" VerticalAlignment="Top" Width="18.542" Stroke="White" Fill="Yellow"/>
		</Grid>
		<Grid x:Name="Head">
			<Rectangle Fill="#7FFBB1AD" Margin="192.375,89.542,191.333,0" Stroke="Black" Height="52.458" VerticalAlignment="Top" Visibility="Hidden"/>
			<Ellipse Height="18.542" Margin="230.251,109.125,0,0" VerticalAlignment="Top" Stroke="White" HorizontalAlignment="Left" Width="20" Fill="Yellow" />
		</Grid>
		<Grid x:Name="ShoulderCenter">
			<Ellipse Height="18.542" Margin="230.251,137.625,0,0" VerticalAlignment="Top" Stroke="White" HorizontalAlignment="Left" Width="20" Fill="Yellow" />
		</Grid>
		<Grid x:Name="ShoulderLeft">
			<Rectangle Fill="#7FFBB1AD" Margin="0,128.875,182.666,0" Stroke="Black" Height="50.458" VerticalAlignment="Top" HorizontalAlignment="Right" Width="43.625" Visibility="Hidden"/>
			<Ellipse Height="18.542" Margin="267,146.125,0,0" VerticalAlignment="Top" Stroke="White" HorizontalAlignment="Left" Width="18.542" Fill="Yellow"/>
		</Grid>
		<Grid x:Name="ElbowLeft">
			<Rectangle Fill="#7FFBB1AD" Margin="194.917,88.875,139.458,0" Stroke="Black" Height="133.125" VerticalAlignment="Top" Visibility="Hidden"/>
			<Ellipse Height="18.542" Margin="322,125.708,0,0" VerticalAlignment="Top" Stroke="White" HorizontalAlignment="Left" Width="18.542" Fill="Yellow"/>
		</Grid>
		<Grid x:Name="WristLeft">
			<Rectangle Fill="#7FFBB1AD" Margin="115.334,86.875,49.999,202" Stroke="Black" Visibility="Hidden"/>
			<Ellipse Height="18.542" Margin="371,104.625,0,0" VerticalAlignment="Top" Stroke="White" HorizontalAlignment="Left" Width="18.542" Fill="Yellow"/>
		</Grid>
		<Grid x:Name="HandLeft">
			<Rectangle Fill="#7FFBB1AD" Margin="114.667,88.209,50.666,200.666" Stroke="Black" Visibility="Hidden"/>
			<Ellipse Height="18.542" Margin="391.542,94.875,0,0" VerticalAlignment="Top" Stroke="White" HorizontalAlignment="Left" Width="18.542" Fill="Yellow"/>
		</Grid>
		<Grid x:Name="Spine">
			<Ellipse Height="18.542" Margin="230.585,188.375,0,0" VerticalAlignment="Top" Stroke="White" HorizontalAlignment="Left" Width="20" Fill="Yellow" />
		</Grid>
		<Grid x:Name="HipCenter">
			<Ellipse Height="18.542" Margin="228.917,210.917,0,0" VerticalAlignment="Top" Stroke="White" HorizontalAlignment="Left" Width="20" />
		</Grid>
		<Grid x:Name="HipLeft">
			<Ellipse Margin="252.5,230.375,0,231.083" Stroke="White" HorizontalAlignment="Left" Width="18.542" Fill="Yellow"/>
		</Grid>
		<Grid x:Name="HipRight">
			<Ellipse Margin="208.917,230.375,0,231.083" Stroke="White" HorizontalAlignment="Left" Width="18.542" Fill="Yellow"/>
		</Grid>
		<Grid x:Name="KneeLeft">
			<Rectangle Fill="#7FFBB1AD" Margin="203.834,0,141.875,101.333" Stroke="Black" Height="99.791" VerticalAlignment="Bottom" Visibility="Hidden"/>
			<Ellipse Height="18.542" Margin="284.5,342.5,0,0" VerticalAlignment="Top" Stroke="White" HorizontalAlignment="Left" Width="18.542" Fill="Yellow"/>
		</Grid>
		<Grid x:Name="AnkleLeft">
			<Rectangle Fill="#7FFBB1AD" Margin="192.25,230.875,48.791,8" Stroke="Black" Visibility="Hidden"/>
			<Ellipse Height="18.542" Margin="322,421.5,0,0" VerticalAlignment="Top" Stroke="White" HorizontalAlignment="Left" Width="18.542" Fill="Yellow"/>
		</Grid>
		<Grid x:Name="FootLeft">
			<Rectangle Fill="#7FFBB1AD" Margin="192.25,230.875,48.791,8" Stroke="Black" Visibility="Hidden"/>
			<Ellipse Height="18.542" Margin="347.542,421.5,0,0" VerticalAlignment="Top" Stroke="White" HorizontalAlignment="Left" Width="18.542" Fill="Yellow"/>
		</Grid>
		<Grid x:Name="FootRight">
			<Rectangle Fill="#7FFBB1AD" Margin="47.583,230.875,193.458,8" Stroke="Black" Visibility="Hidden"/>
			<Ellipse Height="18.542" Margin="121.542,421.5,0,0" VerticalAlignment="Top" Stroke="White" HorizontalAlignment="Left" Width="18.542" Fill="Yellow"/>
		</Grid>
		<Grid x:Name="AnkleRight">
			<Rectangle Fill="#7FFBB1AD" Margin="48.25,230.875,192.791,8" Stroke="Black" Visibility="Hidden"/>
			<Ellipse Height="18.542" Margin="128.584,408.5,0,0" VerticalAlignment="Top" Stroke="White" HorizontalAlignment="Left" Width="18.542" Fill="Yellow"/>
		</Grid>
		<Grid x:Name="KneeRight">
			<Rectangle Fill="#7FFBB1AD" Margin="137.167,0,208.542,105.333" Stroke="Black" Height="99.791" VerticalAlignment="Bottom" Visibility="Hidden"/>
			<Ellipse Height="18.542" Margin="167.459,335,0,0" VerticalAlignment="Top" Stroke="White" HorizontalAlignment="Left" Width="18.542" Fill="Yellow"/>
		</Grid>
        </Grid>
	</Grid>
</UserControl>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)

Share

About the Author

Shai Raiten
Architect Sela
Israel Israel
Shai Raiten is VS ALM MVP, currently working for Sela Group as a ALM senior consultant and trainer specializes in Microsoft technologies especially Team System and .NET technology. He is currently consulting in various enterprises in Israel, planning and analysis Load and performance problems using Team System, building Team System customizations and adjusts ALM processes for enterprises. Shai is known as one of the top Team System experts in Israel. He conducts lectures and workshops for developers\QA and enterprises who want to specialize in Team System.
 
My Blog: http://blogs.microsoft.co.il/blogs/shair/
Follow on   Twitter

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.141220.1 | Last Updated 12 Jan 2012
Article Copyright 2011 by Shai Raiten
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid