Intersoft ClientUI Documentation
UseAutoMargin Property (CallOut)



Gets or sets a value that determine whether the auto margin calculation based on corner radius is used.
Syntax
<CategoryAttribute("Appearance")>
Public Property UseAutoMargin As AutoMarginType
Dim instance As CallOut
Dim value As AutoMarginType
 
instance.UseAutoMargin = value
 
value = instance.UseAutoMargin
[CategoryAttribute("Appearance")]
public AutoMarginType UseAutoMargin {get; set;}
[CategoryAttribute("Appearance")]
public:
property AutoMarginType UseAutoMargin {
   AutoMarginType get();
   void set (    AutoMarginType value);
}
Remarks

Since CallOut supports CornerRadius, the control implements automatic margin which is applied to the content presenter placeholder. This was intended to avoid overlapping between the content and the callout shape. To customize this behavior, you can change the UseAutoMargin property to HorizontalOnly, or VerticalOnly, or None.

The following example shows the difference between each mode.

XAML
Copy Code
<StackPanel Orientation="Horizontal" d:LayoutOverrides="Height">
    <Intersoft:CallOut Height="150" Width="150" Margin="8">
        <RichTextBox>
            <Paragraph><Run Text="RichTextBox"/></Paragraph>
        </RichTextBox>                            
    </Intersoft:CallOut>
    <Intersoft: Height="150" Width="150" Margin="8" UseAutoMargin="VerticalOnly">
        <RichTextBox>
            <Paragraph><Run Text="RichTextBox"/></Paragraph>
        </RichTextBox>                            
    </Intersoft:CallOut>
    <Intersoft:CallOut Height="150" Width="150" Margin="8"
        UseAutoMargin="HorizontalOnly">
        <RichTextBox>
            <Paragraph><Run Text="RichTextBox"/></Paragraph>
        </RichTextBox>                            
    </Intersoft:CallOut>
    <Intersoft:CallOut Height="150" Width="150" Margin="8" UseAutoMargin="None">
        <RichTextBox>
            <Paragraph><Run Text="RichTextBox"/></Paragraph>
        </RichTextBox>                            
    </Intersoft:CallOut>
</StackPanel>

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CallOut Class
CallOut Members

Concepts

CallOut

Send Feedback