private static void PlacementOnChang(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            NumberPicker Con = (NumberPicker)sender;

            FlyoutPlacementMode fpm = (FlyoutPlacementMode)e.NewValue;

            switch (fpm)
            {
            case FlyoutPlacementMode.Top:
                Con.flyout.Placement            = FlyoutPlacementMode.Top;
                Con.flyout.FlyoutPresenterStyle = (Style)Con.Resources["FlyoutPresenterTop"];
                break;

            case FlyoutPlacementMode.Bottom:
                Con.flyout.Placement            = FlyoutPlacementMode.Bottom;
                Con.flyout.FlyoutPresenterStyle = (Style)Con.Resources["FlyoutPresenterBottom"];
                break;

            case FlyoutPlacementMode.Left:
                Con.flyout.Placement            = FlyoutPlacementMode.Left;
                Con.flyout.FlyoutPresenterStyle = (Style)Con.Resources["FlyoutPresenterLeft"];
                break;

            case FlyoutPlacementMode.Right:
                Con.flyout.Placement            = FlyoutPlacementMode.Right;
                Con.flyout.FlyoutPresenterStyle = (Style)Con.Resources["FlyoutPresenterRight"];
                break;

            //  case FlyoutPlacementMode.Full:
            //   break;
            default:
                break;
            }
        }
        private static void ValueOnChang(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            NumberPicker Con = (NumberPicker)sender;

            int value = (int)e.NewValue;

            Con.Number = value;

            //Value跟随
            Con.Change();

            Con.button.Content = value.ToString() + Con.text;
        }
        private static void TextOnChang(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            NumberPicker Con = (NumberPicker)sender;

            Con.text = (string)e.NewValue;
        }
        private static void MinOnChang(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            NumberPicker Con = (NumberPicker)sender;

            Con.MinValue = (int)e.NewValue;
        }