Skip to main content
All docs
V26.1
  • TranslateBehavior Members

    Converts the text from one language to another while maintaining the original meaning and context.

    Constructors

    Name Description
    TranslateBehavior() Initializes a new instance of the TranslateBehavior class.

    Fields

    Name Description
    LanguagesProperty static Identifies the Languages dependency property.
    PromptAugmentationProperty static Identifies the PromptAugmentation dependency property. Inherited from TextModificationBehavior.
    TemperatureProperty static Identifies the Temperature dependency property. Inherited from TextModificationBehavior.
    TranslateCommandProperty static Identifies the TranslateCommand dependency property.

    Properties

    Name Description
    HasAnimatedProperties Gets a value that indicates whether one or more AnimationClock objects is associated with any of this object’s dependency properties. Inherited from Animatable.
    Languages Gets or sets a collection of target languages for text translation. This is a dependency property.
    PromptAugmentation Gets or sets additional instructions that modify the prompt before processing. Inherited from TextModificationBehavior.
    Temperature Gets or sets the balance between creativity and consistency in AI responses. Inherited from TextModificationBehavior.
    TranslateCommand A command that translates text into a specific language using AI-powered translation services.

    Methods

    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.
    ShouldSerializeStoredWeakReference(DependencyObject) static Specifies whether a dependency object should be serialized. Inherited from Animatable.
    TranslateAsync(LanguageInfo) Translates text into a specific language using AI-powered translation services.
    See Also