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

Command Property on RadHubTile

8 Answers 115 Views
HubTile
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Daniel Knoll
Top achievements
Rank 1
Daniel Knoll asked on 16 Apr 2012, 07:50 AM
Hi,

I'm trying to use the RadHubTile Control in an MVVM environment. Therefore I want to bind a Command to the RadHubTile, which is executed when the user taps on the Control.

The documentation states, that the HubTileBase class has a Command property and RadHubTile inherits this property. But I cannot find it in the current version of the control (downloaded an hour ago).

Where can I find this property?

Greets

8 Answers, 1 is accepted

Sort by
0
Accepted
Victor
Telerik team
answered on 18 Apr 2012, 08:36 AM
Hello David,

Thank you for writing.
The commands are not available in the current build that is uploaded. We are currently preparing a few fixes for the next internal build and we will be releasing it today. The commanding functionality of the hub till will also be present in the internal build.

Out of curiosity, how did you find out about the commands topic? It is currently marked as hidden in the online help :). If the help is visible there must be a problem that we are not aware of so we'd appreciate your feedback.

Please write again if you have other questions.

Regards,
Victor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Daniel Knoll
Top achievements
Rank 1
answered on 18 Apr 2012, 09:20 AM
Hi,

thanks for your answer, that seems to be good news. I'm looking forward to download your new build.

For the online help: I looked up the RadHubTile documentation in the online help and I went up the base classes (-> StaticHubTile -> HubTileBase) and the HubTileBase has the Command Property:
http://www.telerik.com/help/windows-phone/allmembers_t_telerik_windows_controls_hubtilebase.html

Greets
0
Daniel Knoll
Top achievements
Rank 1
answered on 03 May 2012, 07:26 AM
Hi,

I tried the Command Property in the RadHubTile (internal build) and the Command seems to work.

But the CanExecute Method is not raised to check, if it is possible to Tap on the Tile. Is this intended behavior or a bug?

Greets 
0
Victor
Telerik team
answered on 03 May 2012, 08:41 AM
Hi David,

Thanks for the question.
This is indeed the intended behavior since we decided to let users to check for CanExecute() inside their own Execute() method. Normally we call CanExecute() only when the CanExecuteChanged event is fired to determine whether a control should go to its disabled state. In the case of RadHubTile, it simply does nothing if CanExecute() is false.

Is behavior inconvenient to you? If it is please elaborate on the scenario in which you are using RadHubTile so that I may assist you further and even change the hub tile behavior if we determine that it would be more user friendly.

I am looking forward to your reply.

All the best,
Victor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Daniel Knoll
Top achievements
Rank 1
answered on 03 May 2012, 11:52 AM
Hi,

thanks for your answer.

I was just confused because the CanExecute was not called. In our scenario we want to prevent the tap if an Property (for example "IsBusy") is true, so the user can't navigate when the loading was not finished. Of course we can check the CanExecute ourselves in the Execute method.

Greets
0
Adam
Top achievements
Rank 1
answered on 14 May 2012, 05:29 AM
Hello Victor,

When is the ICommand enabled version going to be available?

I am currently developing an application and have found that my copy currently does not support it then found this thread when looking into why.

Thanks,

Adam
0
Victor
Telerik team
answered on 14 May 2012, 08:31 AM
Hi Adam,

The Command property is available in the latest build of the controls. You can download it from your account.
If you need further assistance, please let us know.

All the best,
Victor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Adam
Top achievements
Rank 1
answered on 15 May 2012, 12:27 AM
Thank you Victor.

I will give it a go right now.

Adam
Tags
HubTile
Asked by
Daniel Knoll
Top achievements
Rank 1
Answers by
Victor
Telerik team
Daniel Knoll
Top achievements
Rank 1
Adam
Top achievements
Rank 1
Share this question
or