示例#1
0
文件: DrawerView.cs 项目: oppqw/NeUWP
        private static void ModeChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            DrawerMode mode  = (DrawerMode)e.NewValue;
            DrawerView _self = d as DrawerView;

            _self.OnModeChanged(mode);
        }
示例#2
0
文件: DrawerView.cs 项目: oppqw/NeUWP
        private static void PanelHeightChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            if ((double)e.OldValue == double.NaN)
            {
                return;
            }
            DrawerView sender = d as DrawerView;

            sender.OnPanelHeightChanged((double)e.OldValue, (double)e.NewValue);
        }