Hi,
I wonder why this code fails to produce tiles that occupy the full width of the TileView:
I can see, using Snoop, that the TileView takes the full width where it's shown, but when I create TileViewItems in it, they occupy a fraction of the TileView. When I create a second TileViewItem, it's displayed in the second row, though, even if there's enough space left in the first row. It's like the column width is not what I expect, but the column count is respected.
Any help will be greatly appreciated.
Regards,
Alex
I wonder why this code fails to produce tiles that occupy the full width of the TileView:
<telerik:RadTileView DockPanel.Dock="Top" ItemsSource="{Binding Phases}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" SelectionMode="Single" ColumnWidth="*" ColumnsCount="1" IsAutoScrollingEnabled="True" IsSynchronizedWithCurrentItem="True" IsSelectionEnabled="True" MaximizeMode="Zero" RowHeight="Auto" telerik:TileViewPanel.IsRowsShrinkEnabled="True" telerik:StyleManager.Theme="Expression_Dark"> <telerik:RadTileView.ContentTemplate> <DataTemplate> <Grid Margin="6"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> <ColumnDefinition Width="Auto" /> </Grid.ColumnDefinitions> <ContentControl Grid.Column="0" HorizontalAlignment="Stretch" Content="{Binding}" > <ContentControl.Style> <Style TargetType="{x:Type ContentControl}"> <Setter Property="ContentTemplate" Value="{StaticResource PhaseTemplate}" /> <Style.Triggers> <DataTrigger Binding="{Binding IsChecked, ElementName=EditButton}" Value="True"> <Setter Property="ContentTemplate" Value="{StaticResource PhaseEditTemplate}" /> </DataTrigger> </Style.Triggers> </Style> </ContentControl.Style> </ContentControl> <ToggleButton x:Name="EditButton" Margin="6,0,6,0" Grid.Column="1" Style="{StaticResource EditToggleButton}" HorizontalAlignment="Right" VerticalAlignment="Top" /> </Grid> </DataTemplate> </telerik:RadTileView.ContentTemplate></telerik:RadTileView>I can see, using Snoop, that the TileView takes the full width where it's shown, but when I create TileViewItems in it, they occupy a fraction of the TileView. When I create a second TileViewItem, it's displayed in the second row, though, even if there's enough space left in the first row. It's like the column width is not what I expect, but the column count is respected.
Any help will be greatly appreciated.
Regards,
Alex