示例#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;
 }
 public BiDiamond4()
 {
     InitializeComponent();
     BoundObject 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;
        }