Language

MediaElement.StretchDirection Property

Definition

Gets or sets a value that determines the restrictions on scaling that are applied to the image.

public:
 property System::Windows::Controls::StretchDirection StretchDirection { System::Windows::Controls::StretchDirection get(); void set(System::Windows::Controls::StretchDirection value); };
public System.Windows.Controls.StretchDirection StretchDirection { get; set; }
member this.StretchDirection : System.Windows.Controls.StretchDirection with get, set
Public Property StretchDirection As StretchDirection

Property Value

The value that specifies the direction the element is stretched. The default is Both.

Examples



  
  
    
      
    


    
    
    
    
    
    
  





  
  
    
      
    


    
    
    
    
    
    
  



Remarks

Dependency Property Information

Item Value
Identifier field StretchDirectionProperty
Metadata properties set to true AffectsMeasure

Applies to

See also