예제 #1
0
        public BiDiamond4()
        {
            InitializeComponent();
            BoundObject bo = new BoundObject {
                CurrentValue = 0
            };

            DataContext = bo;
        }
예제 #2
0
 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;
 }
예제 #3
0
 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;
 }
예제 #4
0
 public BiDiamond4()
 {
     InitializeComponent();
     BoundObject bo = new BoundObject { CurrentValue = 0 };
     DataContext = bo;
 }
예제 #5
0
        /// <summary>
        /// Show we are two way
        /// </summary>
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            BoundObject bo = DataContext as BoundObject;

            bo.CurrentValue = 50;
        }