コード例 #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;
        }