예제 #1
0
        private static void UnitZPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MValueField3DInput instance = d as MValueField3DInput;

            if (instance == null)
            {
                return;
            }

            instance.UpdateUnitZTab();
        }
예제 #2
0
        private static void UnitYPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MValueField3DInput instance = d as MValueField3DInput;

            if (instance == null)
            {
                return;
            }
            foreach (MValueField2DInput entry in instance.tables)
            {
                entry.UnitY = instance.UnitY;
            }
        }
예제 #3
0
        private static void NrCellsZPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MValueField3DInput instance = d as MValueField3DInput;

            if (instance == null)
            {
                return;
            }
            if (instance.NrCellsZ < 1)
            {
                return;
            }

            instance.AdaptTabsToNrCellZChange();
            // synchronize axis values with first table
            instance.tables[0].SetAxisValues();
        }