This question is locked. New answers and comments are not allowed.
Hi,
I have a problem when creating a tile (Based on RadHubTile). If I don't put it in the visual tree, the Count property is not showing.
Example with this control :
Code :
If I do this :
The image is shown, but the count is not. If I show the control on the scree, then make the Tile, it is showing. But I don't want the user to see it.
IS there something I missed ?
Thanks
Regards
Olivier Matis
I have a problem when creating a tile (Based on RadHubTile). If I don't put it in the visual tree, the Count property is not showing.
Example with this control :
<UserControl x:Class="App.Controls.TileMedium" xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Primitives" mc:Ignorable="d" FontFamily="{StaticResource PhoneFontFamilyNormal}" FontSize="{StaticResource PhoneFontSizeNormal}" Foreground="{StaticResource PhoneForegroundBrush}" d:DesignHeight="336" d:DesignWidth="336"> <Grid x:Name="LayoutRoot" Background="{StaticResource BaseLightBrush}"> <telerikPrimitives:RadHubTile x:Name="HubTile" Width="336" Height="336" Count="7" /> </Grid></UserControl>Code :
public TileMedium() { InitializeComponent(); var umbrellaImage3 = new BitmapImage(); var umbrellaResource3 = Application.GetResourceStream(new Uri("Assets/Tiles/Image.png", UriKind.RelativeOrAbsolute)); umbrellaImage3.SetSource(umbrellaResource3.Stream); HubTile.ImageSource = umbrellaImage3; HubTile.Count = 12; }If I do this :
var tilesmedium = new TileMedium { Count = 7 };var flipTileData = new RadFlipTileData() { WideVisualElement = tilesmedium , SmallVisualElement = tilesmedium , VisualElement = tilesmedium , IsTransparencySupported = false, MeasureMode = MeasureMode.Tile };LiveTileHelper.CreateOrUpdateTile(flipTileData, new Uri("/", UriKind.Relative), true);The image is shown, but the count is not. If I show the control on the scree, then make the Tile, it is showing. But I don't want the user to see it.
IS there something I missed ?
Thanks
Regards
Olivier Matis