Exemplo n.º 1
0
        private static void OnDirectionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Y_NavigateBar instance = (Y_NavigateBar)d;

            instance.calcanimeparams();
            instance.resetmaskclip();
        }
Exemplo n.º 2
0
        private static void OnPanelSizeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Y_NavigateBar instance = (Y_NavigateBar)d;

            if (instance.ExpandSize <= instance.CollapsedSize)
            {
                throw new ArgumentException(" ExpandSize > CollapsedSize is required");
            }
            instance.calcanimeparams();
            instance.resetmaskclip();
        }
Exemplo n.º 3
0
        /// <summary>
        /// 导航栏的状态
        /// </summary>
        private static void OnStatusChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Y_NavigateBar instance = (Y_NavigateBar)d;

            instance.switchstatus((bool)e.NewValue);
        }