Merhaba arkadaşlar bugun sizlere kinect ile wpf uygulaması yapmak istiyorum Kodlar ekte vardır
iyi çalışmalar dilerim ben Kinect sdk da yer alan control basic uygulamasını düzenleyerek yapmak istedim

SampleDataSource kısmına aşagudaki gibi düzenleyebiliriz

public SampleDataSource()
        {
            string itemContent = string.Format(
                                    CultureInfo.CurrentCulture,
                                    “Item Content: {0}nn{0}nn{0}nn{0}nn{0}nn{0}nn{0}”,
                                    “Curabitur class aliquam vestibulum nam curae maecenas sed integer cras phasellus suspendisse quisque donec dis praesent accumsan bibendum pellentesque condimentum adipiscing etiam consequat vivamus dictumst aliquam duis convallis scelerisque est parturient ullamcorper aliquet fusce suspendisse nunc hac eleifend amet blandit facilisi condimentum commodo scelerisque faucibus aenean ullamcorper ante mauris dignissim consectetuer nullam lorem vestibulum habitant conubia elementum pellentesque morbi facilisis arcu sollicitudin diam cubilia aptent vestibulum auctor eget dapibus pellentesque inceptos leo egestas interdum nulla consectetuer suspendisse adipiscing pellentesque proin lobortis sollicitudin augue elit mus congue fermentum parturient fringilla euismod feugiat”);

            var group1 = new SampleDataCollection(
                    “Group-1”,
                    “Yonetim”,
                    “”,
                    SampleDataSource.mediumGrayImage,
                    “Group Description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus tempor scelerisque lorem in vehicula. Aliquam tincidunt, lacus ut sagittis tristique, turpis massa volutpat augue, eu rutrum ligula ante a ante”);
         

new SampleDataItem(
               “Group-1-Item-1”,
               “Haberler”,
               string.Empty,
               SampleDataSource.darkGrayImage,
               “Several types of buttons with custom styles”,
               itemContent,
               group1,
               typeof(Haberler)));

            this.AllGroups.Add(group1);
        }

Haberlerin xaml kodu aşağıdaki gibidir

<UserControl x:Name=”user_page” x:Class=”Microsoft.Samples.Kinect.ControlsBasics.Pages.Haberler”
             xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation”
             xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml”
             xmlns:mc=”http://schemas.openxmlformats.org/markup-compatibility/2006″
             xmlns:d=”http://schemas.microsoft.com/expression/blend/2008″
            mc:Ignorable=”d”
        xmlns:k=”http://schemas.microsoft.com/kinect/2014″
      d:DesignHeight=”300″ d:DesignWidth=”300″ Loaded=”user_page_Loaded”>
    <Grid x:Name=”datagrid”>
        <Grid.RowDefinitions>
            <RowDefinition Height=”Auto”/>
            <RowDefinition Height=”*”/>
        </Grid.RowDefinitions>

        <!– Page title –>
        <TextBlock x:Name=”pageTitle” Grid.Column=”1″
                   Margin=”10 0 10 0″ ><Run Language=”tr-tr” Text=”Akadem Takvim”/></TextBlock>

        <ScrollViewer x:Name=”scw” Grid.Row=”1″
                      HorizontalScrollBarVisibility=”Auto” VerticalScrollBarVisibility=”Auto”
                      k:KinectRegion.IsHorizontalRailEnabled=”true” k:KinectRegion.IsVerticalRailEnabled=”true”
                      k:KinectRegion.ZoomMode=”Enabled”>
            <StackPanel x:Name=”stackPanel” HorizontalAlignment=”Left”  VerticalAlignment=”Top”
                    Height=”auto”
                    Width=”auto” Background=”{DynamicResource {x:Static SystemColors.ActiveCaptionBrushKey}}”>
                <Label Content=”DENEME” x:Name=”lbl_test” Height=”51″ Margin=”180,0,191,0″ RenderTransformOrigin=”0.604,5.392″/>
            </StackPanel>
        </ScrollViewer>
    </Grid>
</UserControl>

        private void user_page_Loaded(object sender, RoutedEventArgs e)
        {
            string patern = “//ul[contains(@class,’unstyled’)]//li”;
            string url = “http://fbe.gazi.edu.tr/”;
            HtmlAgilityPack.HtmlWeb htmlweb = new HtmlAgilityPack.HtmlWeb();
            string htmlContext = GetContent(url);
            HtmlAgilityPack.HtmlDocument document = new HtmlAgilityPack.HtmlDocument();
            document.LoadHtml(htmlContext);
            List<Veri> haklarimiz = new List<Veri>();
            HtmlNodeCollection element = document.DocumentNode.SelectNodes(patern);
            foreach (HtmlNode item in element)
            {
                Veri hakkimiz = new Veri();
                var href = item.SelectSingleNode(“a”).GetAttributeValue(“href”, null);
                var title = item.SelectSingleNode(“a”).InnerText;
                if (href != null)
                {
                    if (title != null)
                    {
                        hakkimiz.link = href;
                        hakkimiz.yazi = title;
                    }
                    else
                        hakkimiz.link = href;
                }
                else if (title != null)
                {
                    if (href == null)
                        hakkimiz.yazi = title;
                }
                haklarimiz.Add(hakkimiz);
            }
            lbl_test.Content = haklarimiz[0].yazi;
            for (int i = 0; i < haklarimiz.Count; ++i)
            {
                Button button = new Button()
                {
                    Content = string.Format(haklarimiz[i].yazi, i),
                    Tag = i,
                    Height = 150,
                    Width = 900
                };
                button.Click += new RoutedEventHandler(button_Click);
                stackPanel.Children.Add(button);
            }
        }
   private string GetContent(string AdressUrl)
        {
            Uri url = new Uri(AdressUrl);
            WebClient client = new WebClient();
            client.Encoding = System.Text.Encoding.UTF8;
            string html = client.DownloadString(url);
            return html;
        }
        public static string url;
        private void button_Click(object sender, RoutedEventArgs e)
        {
            url = “http://fbe.gazi.edu.tr”+haklarimiz[Convert.ToInt32(e.Source.ToString().Split(‘-‘)[0].Replace(“System.Windows.Controls.Button: “,””))- 1].link;
            haber_detay uc = new haber_detay();
            datagrid.Children.RemoveRange(0, datagrid.Children.Count);
            datagrid.Children.Add(uc);
        }
    }

En son olarak da mainwindowun xaml kodlarını vereceğim

<Window x:Class=”Microsoft.Samples.Kinect.ControlsBasics.MainWindow”
        xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation”
        xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml”
        xmlns:k=”http://schemas.microsoft.com/kinect/2014″
        xmlns:d=”http://schemas.microsoft.com/expression/blend/2008″
        xmlns:mc=”http://schemas.openxmlformats.org/markup-compatibility/2006″
        xmlns:local=”clr-namespace:Microsoft.Samples.Kinect.ControlsBasics”
        Name=”ControlsBasicsWindow”
        Title=”2015 Bitirme Projesi”
        mc:Ignorable=”d”
        d:DesignWidth=”1200″
        d:DesignHeight=”700″
        MinWidth=”500″
        MinHeight=”700″
        FontFamily=”Segoe UI”
        WindowState=”Maximized”
        >

    <k:KinectRegion x:Name=”kinectRegion”>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height=”Auto” />
                <RowDefinition Height=”*” />
            </Grid.RowDefinitions>

            <Grid Grid.Row=”0″ Margin=”10 0 10 20″>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width=”Auto” />
                    <ColumnDefinition Width=”*” />
                </Grid.ColumnDefinitions>

                <Button x:Name=”backButton” Visibility=”Hidden” Grid.Column=”0″ Style=”{StaticResource BackButtonStyle}” Click=”GoBack” />

                <Image Grid.Column=”1″ HorizontalAlignment=”Left” VerticalAlignment=”Center” Source=”Imagesgazi.jpg” Stretch=”None” Margin=”405.5,4,0,0″/>
                <k:KinectUserViewer Grid.Column=”1″ Height=”100″ HorizontalAlignment=”Center” VerticalAlignment=”Top” />
                <TextBlock Grid.Column=”1″ HorizontalAlignment=”Right” Margin=”0 0 -1 0″ VerticalAlignment=”Bottom” Foreground=”{StaticResource MediumGreyBrush}” FontSize=”18″><Run Language=”tr-tr” Text=”Fen Bilimleri Enstitusu”/></TextBlock>
            </Grid>

            <ContentControl x:Name=”navigationRegion” Margin=”0,139,0,16.5″ Grid.RowSpan=”2″>
                <Grid x:Name=”kinectRegionGrid” Margin=”10,20,10,20″>
                    <ScrollViewer Grid.Row=”0″ Name=”scrollViewer”
                                  HorizontalScrollBarVisibility=”Auto”
                                  VerticalScrollBarVisibility=”Disabled”
                                  k:KinectRegion.IsScrollInertiaEnabled=”true” >
                        <ItemsControl Grid.Row=”0″ Name=”itemsControl” ItemTemplate=”{StaticResource Kinect250x250ItemTemplate}” Button.Click=”ButtonClick”>
                            <ItemsControl.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <WrapPanel VerticalAlignment=”Center” Orientation=”Vertical” Margin=”75,0,75,0″ />
                                </ItemsPanelTemplate>
                            </ItemsControl.ItemsPanel>
                        </ItemsControl>
                    </ScrollViewer>
                </Grid>
            </ContentControl>
        </Grid>
    </k:KinectRegion>
</Window>

ve kodlaeı
//——————————————————————————
// <copyright file=”MainWindow.xaml.cs” company=”Microsoft”>
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//——————————————————————————
namespace Microsoft.Samples.Kinect.ControlsBasics
{
    using System;
    using System.Windows;
    using System.Windows.Controls;
    using Microsoft.Kinect;
    using Microsoft.Kinect.Wpf.Controls;
    using Microsoft.Samples.Kinect.ControlsBasics.DataModel;
    /// <summary>
    /// Interaction logic for MainWindow
    /// </summary>
    public partial class MainWindow
    {
        /// <summary>
        /// Initializes a new instance of the <see cref=”MainWindow”/> class. 
        /// </summary>
        public MainWindow()
        {
            this.InitializeComponent();
            KinectRegion.SetKinectRegion(this, kinectRegion);
            App app = ((App)Application.Current);
            app.KinectRegion = kinectRegion;
            // Use the default sensor
            this.kinectRegion.KinectSensor = KinectSensor.GetDefault();
            //// Add in display content
            var sampleDataSource = SampleDataSource.GetGroup(“Group-1”);
            this.itemsControl.ItemsSource = sampleDataSource;
        }
        /// <summary>
        /// Handle a button click from the wrap panel.
        /// </summary>
        /// <param name=”sender”>Event sender</param>
        /// <param name=”e”>Event arguments</param>
        private void ButtonClick(object sender, RoutedEventArgs e)
        {            
            var button = (Button)e.OriginalSource;
            SampleDataItem sampleDataItem = button.DataContext as SampleDataItem;
            if (sampleDataItem != null && sampleDataItem.NavigationPage != null)
            {
                backButton.Visibility = System.Windows.Visibility.Visible;
                navigationRegion.Content = Activator.CreateInstance(sampleDataItem.NavigationPage);
            }
            else
            {
                var selectionDisplay = new SelectionDisplay(button.Content as string);
                this.kinectRegionGrid.Children.Add(selectionDisplay);
                // Selection dialog covers the entire interact-able area, so the current press interaction
                // should be completed. Otherwise hover capture will allow the button to be clicked again within
                // the same interaction (even whilst no longer visible).
                selectionDisplay.Focus();
                // Since the selection dialog covers the entire interact-able area, we should also complete
                // the current interaction of all other pointers.  This prevents other users interacting with elements
                // that are no longer visible.
                this.kinectRegion.InputPointerManager.CompleteGestures();
                e.Handled = true;
            }
        }
        /// <summary>
        /// Handle the back button click.
        /// </summary>
        /// <param name=”sender”>Event sender</param>
        /// <param name=”e”>Event arguments</param>
        private void GoBack(object sender, RoutedEventArgs e)
        {
            backButton.Visibility = System.Windows.Visibility.Hidden;
            navigationRegion.Content = this.kinectRegionGrid;
        }
    }
}
Ramazan CESUR