Ejemplo n.º 1
0
 internal override void Attach(RadVirtualizingDataControl owner)
 {
     base.Attach(owner);
     this.typedOwner      = owner as RadDataBoundListBox;
     this.isItemCheckable = this.typedOwner.IsItemCheckable(this);
     this.SynchItemCheckBoxState();
 }
        private static void OnDisplayMemberPathChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            RadVirtualizingDataControl typedSender = sender as RadVirtualizingDataControl;

            typedSender.displayMemberPathCache = (string)args.NewValue;

            typedSender.ValidateDisplayMemberPath();

            typedSender.OnDisplayMemberPathChanged();
        }
Ejemplo n.º 3
0
        internal virtual void InitializeOwner(RadVirtualizingDataControl owner)
        {
            if (this.owner != null)
            {
                throw new InvalidOperationException("Owner can be set only once.");
            }

            this.owner = owner;

            this.ResetRealizedItemsBuffers();

            if (this.owner.IsProperlyTemplated)
            {
                this.SynchOwnerScrollViewerForOrientation();
            }
        }
        private static void OnItemRemovedAnimationIntervalChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            RadVirtualizingDataControl typedSender = sender as RadVirtualizingDataControl;

            typedSender.itemRemovedAnimationIntervalCache = (TimeSpan)args.NewValue;
        }
        private static void OnItemAnimationModeChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            RadVirtualizingDataControl typedSender = sender as RadVirtualizingDataControl;

            typedSender.itemAnimationModeCache = (ItemAnimationMode)args.NewValue;
        }
        private static void OnItemRemovedAnimationChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            RadVirtualizingDataControl typedSender = sender as RadVirtualizingDataControl;

            typedSender.OnItemRemovedAnimationChanged(args);
        }
        private static void OnVirtualizationStrategyDefinitionChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            RadVirtualizingDataControl typedSender = sender as RadVirtualizingDataControl;

            typedSender.OnVirtualizationStrategyDefinitionChanged(args);
        }
 internal virtual void Detach()
 {
     this.OnDetaching();
     this.owner = null;
     this.OnDetached();
 }
 internal virtual void Attach(RadVirtualizingDataControl owner)
 {
     this.owner = owner;
     this.OnAttached();
 }
Ejemplo n.º 10
0
 internal virtual void ResetOwner()
 {
     this.owner = null;
 }