Hello,
Is it possible to put a grid in this area? Is there a way to do this? Thanks!
Hi,Yes, it is possible:<igTV:TilePane> <igTV:TilePane.Header> <Grid> <ContentControl Content="Header"/> </Grid> </igTV:TilePane.Header></igTV:TilePane>Regards,Marin
Thanks for your reply. I have this xml code below, but I don't why the first column does not stretch to the maximum width. Can you help?
>
="Azure" >
="Auto" />
="100" />
/>
="Left" />
Hi,You need to create a style for a TilePane. There is a header ContentPresenter in the default control template and you can change the HorizontalAlignment. <Style TargetType="ig:TilePane" x:Key="TilePaneCustomStyle1">... <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="ig:TilePane"> <Grid>... <ContentPresenter x:Name="headerContentPresenter" Cursor="{TemplateBinding Cursor}" HorizontalAlignment="Left" ......</Style>But probably you will need to change the Grid that contains all the header elements.You can edit the TilePane style in Expression Blend. See also this post at http://community.infragistics.com/forums/p/31864/181355.aspx#181355
Regards,Marin
I don't know what am I missing but it does not work.
<igTileView:TilePane.Header> <ContentPresenter x:Name="test" HorizontalAlignment="Stretch"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions>
<Grid.RowDefinitions> <RowDefinition /> </Grid.RowDefinitions> <TextBlock Text="Parts" FontSize="14" FontWeight="Bold" Grid.Column="0" HorizontalAlignment="Left" /> <Button x:Name="btnTest" Content="Test" Grid.Column="1" HorizontalAlignment="Stretch" Click="btnTest_Click" /> </Grid> </ContentPresenter> </igTileView:TilePane.Header>
Hi,You'll need to restyle the TilePane.The header of TilePane control contains a ContentPresenter that displays the Header.It is something like this: <ContentPresenter x:Name="headerContentPresenter" ...Regards,Marin