Hi
is it possible to give the xamDataTree / xamDataGrid rounded corder of the border ?
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}}"/>
<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" />
Valerie
Were you able to style the controls?
Your solution does not work. I need all the Text Editors (TextBox etc) as round corner control. How to do that. This is a lethargic solution. There should be some properties for each control to have cornerradious.
Fayaz