Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
755
Rounded BorderCorner
posted

Hi

is it possible to give the xamDataTree / xamDataGrid rounded corder of the border ?

Parents
  • 14517
    Offline posted

    Hello,

    You can find the styles for the controls under the Directory Program Files\Infragistics\NetAdvantage 2011.1\WPF\DefaultStyles. You can then modify the styles to round the corners by adding CornerRadius to the Borders:

    <Style TargetType="igDT:XamDataTree">

                <Setter Property="Background" Value="White"/>

                <Setter Property="BorderBrush" Value="{StaticResource SilverlightDarkBrush}"/>

                <Setter Property="BorderThickness" Value="1"/>

                <Setter Property="Foreground" Value="Black"/>

                <Setter Property="Template">

                    <Setter.Value>

                        <ControlTemplate TargetType="igDT:XamDataTree">

                            <Border x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="15,15,15,15">

                                <Grid>

                                    <Grid.RowDefinitions>

                                        <RowDefinition Height="*"/>

                                        <RowDefinition Height="Auto"/>

                                    </Grid.RowDefinitions>

                                    <Grid.ColumnDefinitions>

                                        <ColumnDefinition Width="*"/>

                                        <ColumnDefinition Width="Auto"/>

                                    </Grid.ColumnDefinitions>

                                    <igPrimDT:NodesPanel x:Name="NodesPanel" />

                                    <ScrollBar x:Name="VerticalScrollBar" Width="20" Grid.Row="0" Grid.Column="1"/>

                                    <ScrollBar x:Name="HorizontalScrollBar"  Height="20" Grid.Row="2"/>

                                </Grid>

                            </Border>

                        </ControlTemplate>

                    </Setter.Value>

                </Setter>

            </Style>

     

     

    <Style TargetType="{x:Type igDP:XamDataGrid}">

                <Setter Property="Background" Value="{DynamicResource {x:Static igDP:DataPresenterBrushKeys.BaseBackgroundKey}}"/>

                <Setter Property="Template">

                    <Setter.Value>

                        <ControlTemplate TargetType="{x:Type igDP:XamDataGrid}">

                            <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="15,15,15,15">

                                <Grid x:Name="PART_ContentSiteGrid" />

                            </Border>

                        </ControlTemplate>

                    </Setter.Value>

                </Setter>

            </Style>

     

    Valerie

     

Reply Children