This is a migrated thread and some comments may be shown as answers.

[Solved] How to slide dynamic data with RadSlideHubTile

1 Answer 146 Views
HubTile for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Fırat
Top achievements
Rank 1
Fırat asked on 19 Mar 2013, 02:31 PM
Hello,

I try to show dynamic data (binding textblock content) on the RadSlideHubTile. I create an ObservableCollection<StoreRevenue> in order to binding to RadSlideHubTile, but i could not slide dynamic data with textblock content. How can I show dynamic data with RadSlideHubTile. 

Dynamic Data and Binding Controller code:

public MainPage()
{
     this.InitializeComponent();
     var revenues = new ObservableCollection<StoreRevenue>();
     revenues.Add(new StoreRevenue() { Amount = 250, StoreName = "Macy's" });
     revenues.Add(new StoreRevenue() { Amount = 50, StoreName = "Gimbels's" });
     revenues.Add(new StoreRevenue() { Amount = 10, StoreName = "A&S" });
     revenues.Add(new StoreRevenue() { Amount = 40, StoreName = "E. J. Korvette" });
     revenues.Add(new StoreRevenue() { Amount = 60, StoreName = "Crazy Eddie's" });
     revenues.Add(new StoreRevenue() { Amount = 220, StoreName = "Others" });
     this.StoreRevenues.DataContext=revenues;
}

  
StoreRevenue Class code:

public class StoreRevenue
{
    public string StoreName { get; set; }
    public double Amount { get; set; }
}


My RadSlideHubTile Xaml is below. 

<telerikPrimitives:RadSlideHubTile Width="310" Height="150" x:Name="StoreRevenues" Padding="0" UpdateInterval="0:0:1">
                    <telerikPrimitives:RadSlideHubTile.TopContent>
                        <TextBlock Text="{Binding StoreName}" HorizontalAlignment="Left" VerticalAlignment="Bottom" FontSize="22"           Margin="16,12,12,34"/>
                    </telerikPrimitives:RadSlideHubTile.TopContent>
                    <telerikPrimitives:RadSlideHubTile.Title>
                        <Grid Background="{StaticResource TelerikSelectedBrush}" HorizontalAlignment="Stretch">
                            <TextBlock Text="StoreRevenues" Margin="16,16,16,6"/>
                        </Grid>
                    </telerikPrimitives:RadSlideHubTile.Title>
         </telerikPrimitives:RadSlideHubTile>

 
Can RadSlideHubTite work with binding such as RadPictureRotatorHubTile ( PicturesSource="{Binding}" )?
 
<telerikPrimitives:RadPictureRotatorHubTile x:Name="MyHubTile"  PicturesSource="{Binding}" UpdateInterval="0:0:1">
</telerikPrimitives:RadPictureRotatorHubTile>

 
Thank you for your attention.

1 Answer, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 22 Mar 2013, 11:19 AM
Hi Firat,

Thank you for using our RadControls for Windows 8.

The RadSlideHubTile control is designed to show the content of two elements with a sliding animation. You can change these elements dynamically, but the control does not know how to handle a collection of objects. For the current scenario you need an equivalent of  RadCycleHubTile for Windows Phone. At this point we do not have such control in our suite but it is already logged as a feature request.

I hope this information helps. Let me know if I can assist you in some other way.

 

Greetings,
Ivaylo Gergov
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
HubTile for XAML
Asked by
Fırat
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Share this question
or