public BiDiamond4() { InitializeComponent(); BoundObject bo = new BoundObject { CurrentValue = 0 }; DataContext = bo; }
public TopStrip(IDictionary<string, string> parameters) { InitializeComponent(); _timer.Duration = new Duration(new TimeSpan(0, 0, 2)); _timer.Completed += new EventHandler(timer_Completed); Loaded += new RoutedEventHandler(IAmLoaded); bo = new BoundObject { CurrentValue = 0 }; DataContext = bo; }
public TopStrip(IDictionary <string, string> parameters) { InitializeComponent(); _timer.Duration = new Duration(new TimeSpan(0, 0, 2)); _timer.Completed += new EventHandler(timer_Completed); Loaded += new RoutedEventHandler(IAmLoaded); bo = new BoundObject { CurrentValue = 0 }; DataContext = bo; }
/// <summary> /// Show we are two way /// </summary> private void Button_Click(object sender, RoutedEventArgs e) { BoundObject bo = DataContext as BoundObject; bo.CurrentValue = 50; }