CompositeContentShape.OnContentChanged Method

Transforms a string content into TextBlock with center alignment and multiple line support.

Namespace: Microsoft.Expression.Controls
Assembly: Microsoft.Expression.Drawing (in microsoft.expression.drawing.dll)

Syntax

'Declaration
Protected Overrides Sub OnContentChanged ( _
    oldContent As Object, _
    newContent As Object _
)
'Usage
Dim oldContent As Object
Dim newContent As Object

Me.OnContentChanged(oldContent, newContent)
protected override void OnContentChanged (
    Object oldContent,
    Object newContent
)
protected:
virtual void OnContentChanged (
    Object^ oldContent, 
    Object^ newContent
) override
protected void OnContentChanged (
    Object oldContent, 
    Object newContent
)
protected override function OnContentChanged (
    oldContent : Object, 
    newContent : Object
)

Remarks

Use template-binding to InternalContent instead of Content to enable this method.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

CompositeContentShape Class
CompositeContentShape Members
Microsoft.Expression.Controls Namespace