Exemplo n.º 1
0
        private static void ShowPosWithEffectChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            TrackDevice tack = d as TrackDevice;

            if (tack == null)
            {
                return;
            }
        }
Exemplo n.º 2
0
        private static void DeviceZeroPositionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            TrackDevice tack = d as TrackDevice;

            if (tack == null)
            {
                return;
            }
        }
Exemplo n.º 3
0
        private static void CurColumnChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            TrackDevice tack = d as TrackDevice;

            if (tack == null)
            {
                return;
            }

            tack.SetDevicePosByColumn(tack.CurColumn);

            tack.OldColumn = tack.CurColumn;
        }
Exemplo n.º 4
0
        private static void TotalColumnChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            TrackDevice tack = d as TrackDevice;

            if (tack == null)
            {
                return;
            }

            //设置长度
            if (tack.TotalColumn <= 0)
            {
                tack.TotalColumn = 1;
            }

            if (tack.ActualWidth > 10)
            {
                tack.bDevice.Width = tack.ActualWidth / tack.TotalColumn;
            }

            tack.SetDevicePosByColumn(tack.CurColumn);
        }