Hi,
I have a problem with tiles maximizing as a result from the following steps:
I have a problem with tiles maximizing as a result from the following steps:
- Start in restored state.
- User drags a tile from one position to another.
- User clicks on the white space within the tile that was dragged.
- Tile maximizes.
Is there a way to force the tiles to ONLY maximize when the tile header is clicked?
Thanks
Tracy
Here is my xaml for reference:
<
telerik:RadTileView
x:Name
=
"ChartTiles"
Background
=
"Transparent"
TileStateChangeTrigger
=
"SingleClick"
telerik:StyleManager.Theme
=
"Office_Blue"
ColumnWidth
=
"Auto"
RowHeight
=
"Auto"
MinimizedColumnWidth
=
"300"
MinimizedRowHeight
=
"300"
PreservePositionWhenMaximized
=
"true"
IsItemsSizeInPercentages
=
"True"
ItemsSource
=
"{Binding Charts}"
telerik:TileViewPanel.IsColumnsShrinkEnabled
=
"True"
telerik:TileViewPanel.IsRowsShrinkEnabled
=
"True"
telerik:TileViewPanel.IsSizeBoundToPosition
=
"True"
>
<
telerik:RadTileView.ItemTemplate
>
<
DataTemplate
>
<
TextBlock
Text
=
"{Binding Name}"
Style
=
"{StaticResource tileItemStyle}"
/>
</
DataTemplate
>
</
telerik:RadTileView.ItemTemplate
>
<
telerik:RadTileView.ItemContainerStyle
>
<
Style
TargetType
=
"telerik:RadTileViewItem"
>
<
Setter
Property
=
"RestoredHeight"
Value
=
"{Binding TileRestoredHeight, Mode=TwoWay}"
/>
<
Setter
Property
=
"RestoredWidth"
Value
=
"{Binding TileRestoredWidth, Mode=TwoWay}"
/>
<
Setter
Property
=
"MinimizedHeight"
Value
=
"{Binding TileMinimizedHeight, Mode=TwoWay}"
/>
<
Setter
Property
=
"Position"
Value
=
"{Binding TilePosition, Mode=TwoWay}"
/>
<
Setter
Property
=
"TileState"
Value
=
"{Binding TileState, Mode=TwoWay}"
/>
<
Setter
Property
=
"Background"
Value
=
"Transparent"
/>
</
Style
>
</
telerik:RadTileView.ItemContainerStyle
>
<
telerik:RadTileView.ContentTemplate
>
<
DataTemplate
>
<
Grid
x:Name
=
"ChartTileGrid"
Background
=
"Transparent"
Height
=
"{Binding Path=ActualHeight, RelativeSource={RelativeSource TemplatedParent}}"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
/>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
/>
<
ColumnDefinition
/>
</
Grid.ColumnDefinitions
>
<
StackPanel
Grid.Row
=
"0"
Grid.Column
=
"1"
HorizontalAlignment
=
"Right"
VerticalAlignment
=
"Top"
Orientation
=
"Horizontal"
Height
=
"30"
Visibility
=
"{Binding PieBarChartSwitchVisibility}"
>
<
RadioButton
Content
=
"Pie Chart"
IsChecked
=
"{Binding Path=IsPieChartActive}"
Margin
=
"0,5,0,5"
/>
<
RadioButton
Content
=
"Bar Chart"
IsChecked
=
"{Binding Path=IsBarChartActive}"
Margin
=
"5"
/>
</
StackPanel
>
<
ecaCharting:PieChartControl
Grid.Row
=
"1"
Grid.ColumnSpan
=
"2"
Height
=
"{Binding ElementName=ChartTileGrid, Path=ActualHeight}"
Width
=
"{Binding ElementName=ChartTileGrid, Path=ActualWidth}"
Visibility
=
"{Binding Path=PieChartVisibility, TargetNullValue=Collapsed, FallbackValue=Collapsed}"
/>
<
ecaCharting:BarChartControl
Grid.Row
=
"1"
Grid.ColumnSpan
=
"2"
Visibility
=
"{Binding Path=BarChartVisibility, TargetNullValue=Collapsed, FallbackValue=Collapsed}"
/>
</
Grid
>
</
DataTemplate
>
</
telerik:RadTileView.ContentTemplate
>
</
telerik:RadTileView
>