/Main/src/Xbap/DynamicDataDisplay.Xbap.Samples/Internals/Views/ViewBase.cs
C# | 43 lines | 35 code | 5 blank | 3 comment | 0 complexity | 99e4231d03d420dd1b973a004915ba0e MD5 | raw file
Possible License(s): CC-BY-SA-3.0
1using System; 2using System.Collections.Generic; 3using System.Linq; 4using System.Text; 5using System.Windows; 6using System.Windows.Controls; 7using System.Windows.Data; 8using System.Windows.Documents; 9using System.Windows.Input; 10using System.Windows.Media; 11using System.Windows.Media.Imaging; 12using System.Windows.Navigation; 13using System.Windows.Shapes; 14 15namespace Microsoft.Research.DynamicDataDisplay.Samples.Internals.Views 16{ 17 /// <summary> 18 /// Interaction logic for ViewBase.xaml 19 /// </summary> 20 public class ViewBase : UserControl 21 { 22 public ViewBase() 23 { 24 } 25 26 public object SelectedValue 27 { 28 get { return (object)GetValue(SelectedValueProperty); } 29 set { SetValue(SelectedValueProperty, value); } 30 } 31 32 public static readonly DependencyProperty SelectedValueProperty = DependencyProperty.Register( 33 "SelectedValue", 34 typeof(object), 35 typeof(ViewBase), 36 new FrameworkPropertyMetadata(null, OnSelectedValueChanged)); 37 38 private static void OnSelectedValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) 39 { 40 41 } 42 } 43}