Ejemplo n.º 1
0
        private static void OnSignalStrokeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MacdIndicator indicator = d as MacdIndicator;

            indicator.signalRenderer.strokeShape.Stroke = e.NewValue as Brush;

            if (indicator.isPaletteApplied)
            {
                indicator.UpdatePalette(true);
            }
        }
Ejemplo n.º 2
0
        protected override void Unbind()
        {
            base.Unbind();

            MacdIndicator owner = this.Owner as MacdIndicator;

            if (owner != null)
            {
                owner.signalModel.DataPointsInternal.Clear();
            }
        }
Ejemplo n.º 3
0
        private static void OnSignalPeriodChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MacdIndicator presenter = d as MacdIndicator;

            (presenter.dataSource as MacdIndicatorDataSource).SignalPeriod = (int)e.NewValue;
        }