Пример #1
0
        private static void OnHideChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RadUniformGrid ug = d as RadUniformGrid;

            if (ug != null)
            {
                ug.InvalidateMeasure();
                ug.InvalidateArrange();
            }
        }
Пример #2
0
        private static void OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            bool valid = ValidateValue(e.NewValue);

            if (!valid)
            {
                throw new ArgumentOutOfRangeException(e.Property.ToString());
            }
            RadUniformGrid ug = d as RadUniformGrid;

            if (ug != null)
            {
                ug.InvalidateMeasure();
                ug.InvalidateArrange();
            }
        }