This question is locked. New answers and comments are not allowed.
Hello,
I'm trying to use the TileView to offer the user the possibility of browsing through a list of work items (viewed as TileItems) and then zoom in on the selected task -> maximizing a certain TileItem.
For this I want to dynamically insert content in the TileItem one it gets maximized.
The current attempt was to set the contentTemplate/LargeContent to a canvas and then insert controls in that canvas.
E.g.
How can I achieve this?
Thanks in advance,
Dragos
I'm trying to use the TileView to offer the user the possibility of browsing through a list of work items (viewed as TileItems) and then zoom in on the selected task -> maximizing a certain TileItem.
For this I want to dynamically insert content in the TileItem one it gets maximized.
The current attempt was to set the contentTemplate/LargeContent to a canvas and then insert controls in that canvas.
E.g.
This all sounds great in theory, unfortunately it doesn't work in practice. :(<DataTemplatex:Key="contentTemplate"><telerik:RadFluidContentControlContentChangeMode="Manual"TransitionDuration="0:0:.5"State="{Binding State, Converter={StaticResource tileConverter}}"><telerik:RadFluidContentControl.SmallContent><ImageSource="{Binding Name}"Stretch="None"/></telerik:RadFluidContentControl.SmallContent><telerik:RadFluidContentControl.Content><ImageSource="{Binding Name}"Stretch="None"/></telerik:RadFluidContentControl.Content><telerik:RadFluidContentControl.LargeContent><Canvasx:Name="MyCanvas"></Canvas></telerik:RadFluidContentControl.LargeContent></telerik:RadFluidContentControl></DataTemplate>
And then in the code behind I would catch the maximize event and insert controls is the canvas.PrivateSubtileView1_TileStateChanged(senderAsObject, eAsRadRoutedEventArgs)DimitemAsRadTileViewItem = TryCast(e.OriginalSource, RadTileViewItem)Ifitem IsNotNothingThenIfitem.TileState = TileViewItemState.MaximizedThenDimfluidControlAsRadFluidContentControl = item.ChildrenOfType(Of RadFluidContentControl)().First()DimlCanvasAsCanvas = TryCast(fluidControl.Content, Canvas)IflCanvas IsNotNothingThenDimlTextBoxAsNewTextBox()lTextBox.Width = 200lTextBox.Height = 30lTextBox.Text ="This is a test"lTextBox.BorderBrush =NewSolidColorBrush(Color.FromArgb(100, 200, 104, 231))lTextBox.BorderThickness =NewThickness(3.0R)lTextBox.SetValue(Canvas.TopProperty, 250.0R)lTextBox.SetValue(Canvas.LeftProperty, 750.0R)lCanvas.Children.Add(lTextBox)EndIfEndIfEndIfEndSub
How can I achieve this?
Thanks in advance,
Dragos