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
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.
Victor
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
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
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
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.
Victor
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
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
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
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.
Victor
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
I will give it a go right now.
Adam