-
Notifications
You must be signed in to change notification settings - Fork 1
/
SelectionDisplay.xaml.cs
40 lines (35 loc) · 1.34 KB
/
SelectionDisplay.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
namespace Microsoft.Samples.Kinect.ControlsBasics
{
using System.Globalization;
using System.Windows.Controls;
/// <summary>
/// Interaction logic
/// </summary>
public partial class SelectionDisplay : UserControl
{
/// <summary>
/// Initializes a new instance of the <see cref="SelectionDisplay"/> class.
/// </summary>
/// <param name="itemId">ID of the item that was selected</param>
public SelectionDisplay()
{
this.InitializeComponent();
//this.messageTextBlock.Text = string.Format(CultureInfo.CurrentCulture, Properties.SelectedMessage, itemId);
//this.messageTextBlock.Text = string.Format(CultureInfo.CurrentCulture, "Empty content", itemId);
}
public void printMessage(string itemId, string message)
{
this.messageTextBlock.Text = string.Format(CultureInfo.CurrentCulture, message, itemId);
}
/// <summary>
/// Called when the OnLoaded storyboard completes.
/// </summary>
/// <param name="sender">Event sender</param>
/// <param name="e">Event arguments</param>
private void OnLoadedStoryboardCompleted(object sender, System.EventArgs e)
{
var parent = (Panel)this.Parent;
parent.Children.Remove(this);
}
}
}