Skip to main content
All docs
V26.1
  • SmartPasteBehavior Methods

    SmartPaste analyzes the content you copy and intelligently assigns the right values to the appropriate layout items or grid/treelist cells.
    Name Description
    ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) Applies an AnimationClock to the specified DependencyProperty. If the property is already animated, the specified HandoffBehavior is used. Inherited from Animatable.
    ApplyAnimationClock(DependencyProperty, AnimationClock) Applies an AnimationClock to the specified DependencyProperty. If the property is already animated, the SnapshotAndReplace handoff behavior is used. Inherited from Animatable.
    BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) Applies an animation to the specified DependencyProperty. The animation is started when the next frame is rendered. If the specified property is already animated, the specified HandoffBehavior is used. Inherited from Animatable.
    BeginAnimation(DependencyProperty, AnimationTimeline) Applies an animation to the specified DependencyProperty. The animation is started when the next frame is rendered. If the specified property is already animated, the SnapshotAndReplace handoff behavior is used. Inherited from Animatable.
    Clone() Creates a modifiable clone of this Animatable, making deep copies of this object’s values. When copying this object’s dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values. Inherited from Animatable.
    GetAnimationBaseValue(DependencyProperty) Returns the non-animated value of the specified DependencyProperty. Inherited from Animatable.
    GetExcludeItem(DependencyObject) static Gets the value of the SmartPasteBehavior.ExcludeItem attached property for the specified SmartPasteBehavior.
    GetItemDescription(DependencyObject) static Gets the value of the SmartPasteBehavior.ItemDescription attached property for the specified SmartPasteBehavior.
    SetExcludeItem(DependencyObject, Boolean) static Sets the value of the SmartPasteBehavior.ExcludeItem attached property to the specified SmartPasteBehavior. Use this method to exclude an item (for example, a grid column or layout item) from SmartPaste in code behind.
    SetItemDescription(DependencyObject, String) static Sets the value of the SmartPasteBehavior.ItemDescription attached property to the specified SmartPasteBehavior.
    ShouldSerializeStoredWeakReference(DependencyObject) static Specifies whether a dependency object should be serialized. Inherited from Animatable.
    SmartPasteAsync(Byte[], String, CancellationToken) Assigns the correct values from the specified string or binary content to the appropriate items.
    SmartPasteAsync(String, CancellationToken) Executes SmartPaste and assigns the right values from the specified string to the appropriate items.
    SmartPasteAsync(CancellationToken) Executes SmartPaste and assigns the right values (from the clipboard) to the appropriate items.
    See Also