Intersoft ClientUI Documentation
UseAutoMargin Property
See Also  Send Feedback
Intersoft.Client.UI.Controls Namespace > CallOut Class : UseAutoMargin Property






Gets or sets a value that determine whether the auto margin calculation based on corner radius is used.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Appearance")>
Public Property UseAutoMargin As AutoMarginType
Visual Basic (Usage)Copy Code
Dim instance As CallOut
Dim value As AutoMarginType
 
instance.UseAutoMargin = value
 
value = instance.UseAutoMargin
C# 
[CategoryAttribute("Appearance")]
public AutoMarginType UseAutoMargin {get; set;}
Delphi 
public read-write property UseAutoMargin: AutoMarginType; 
JScript 
CategoryAttribute("Appearance")
public function get,set UseAutoMargin : AutoMarginType
Managed Extensions for C++ 
[CategoryAttribute("Appearance")]
public: __property AutoMarginType get_UseAutoMargin();
public: __property void set_UseAutoMargin( 
   AutoMarginType value
);
C++/CLI 
[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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.