Hello,
I have been working with the radTileView. It's going to do what I need it to do in most cases. However, when there are only a few items the RadTileViewItems take the full space proportionally. It doesn't matter if I set the TileState="Minimized" or TileState="Restored" and the RadFluidContentControl ContentChangeMode="Manual" and State="Small". The controls do appear in the proper state, however the border of the control takes the remaining space causing the controls to be spaced evenly in the area. Even if I manually set the maxHeight and maxWidth of the radTileViewItem.
Is there a way to cause the tiles to be top left justified and leave blank space to the bottom and right when minimized or restored?
The other thing is that when I have a radTileView item maximized and the minimizedItemsPosition="Right" the same kind of spacing issue occurs. I would like them to appear like they do in the "Tile States" BMW section of this link - http://www.telerik.com/products/silverlight/tileview.aspx
I have also tried this with the sample code by adjusting the number of BMW tileViewItems and the size of their container.
I would like to use it more like a list box with very small items taking advantage of the eye candy moving them around and the maximize to edit the information in the control.
Thank you for your help.
Rick
<Window x:Class="Window1" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
Title="Window1" Height="515" Width="933" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"> |
<Grid> |
<telerik:RadGridView Margin="0,-12,22,163" Name="RGVW" AutoGenerateColumns="False" ItemsSource="{Binding}" AlternateRowBackground="Bisque"> |
<telerik:RadGridView.Columns> |
<telerik:GridViewDataColumn Name="CDNO" UniqueName="CDNO" Header="CDNO" /> |
<telerik:GridViewDataColumn Name="Truck" UniqueName="Truck No" Header="Truck No" /> |
<telerik:GridViewDataColumn Name="Status" UniqueName="Status" Header="Status" /> |
<telerik:GridViewImageColumn Name="Flag" UniqueName="Flag" Header="Truck Flag" /> |
</telerik:RadGridView.Columns> |
</telerik:RadGridView> |
</Grid> |
</Window> |
Private Sub Window1_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles Me.Loaded |
Dim ds As DataSet |
Dim dbConn As String = "Data Source=SQLSERVER;Initial Catalog=DB;_ |
Persist Security Info=True;User ID=!@#;pwd=!@#" |
ds = DBA.ExecuteDataset(dbConn, "SP_DockForWPF") |
RGVW.DataContext = ds |
End Sub |
private void GrandChildren_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) |
{ |
this.NotifyPropertyChanged("GrandChildren"); // breakpoint here |
} |
<Style TargetType="{x:Type telerik:GridViewCell}"> |
<Setter Property="Background"> |
<Setter.Value> |
<SolidColorBrush Color="{Binding Converter={StaticResource decimalToColor}}" /> |
</Setter.Value> |
</Setter> |
</Style> |
<telerik:GridViewDataColumn Width="45" DataType="{x:Type sys:Decimal}" Header="H1" DataMemberBinding="{Binding Path=H1, Mode=TwoWay}" DataFormatString="{}{0:n0}" IsGroupable="False" IsSortable="False" IsFilterable="False"> |
<telerik:GridViewColumn.CellStyle> |
<Style TargetType="{x:Type telerik:GridViewCell}"> |
<Setter Property="Background"> |
<Setter.Value> |
<SolidColorBrush Color="{Binding Converter={StaticResource cellBGConverter}}" /> |
</Setter.Value> |
</Setter> |
</Style> |
</telerik:GridViewColumn.CellStyle> |
</telerik:GridViewDataColumn> |