Command Property on RadHubTile

9 posts, 1 answers
  1. Daniel Grünberger
    Daniel Grünberger avatar
    46 posts
    Member since:
    May 2008

    Posted 16 Apr 2012 Link to this post

    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
  2. Answer
    Victor
    Admin
    Victor avatar
    1351 posts

    Posted 18 Apr 2012 Link to this post

    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 >>

  3. DevCraft banner
  4. Daniel Grünberger
    Daniel Grünberger avatar
    46 posts
    Member since:
    May 2008

    Posted 18 Apr 2012 Link to this post

    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
  5. Daniel Grünberger
    Daniel Grünberger avatar
    46 posts
    Member since:
    May 2008

    Posted 03 May 2012 Link to this post

    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 
  6. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 03 May 2012 Link to this post

    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 >>

  7. Daniel Grünberger
    Daniel Grünberger avatar
    46 posts
    Member since:
    May 2008

    Posted 03 May 2012 Link to this post

    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
  8. Adam
    Adam avatar
    2 posts
    Member since:
    Jul 2011

    Posted 14 May 2012 Link to this post

    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
  9. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 14 May 2012 Link to this post

    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 >>

  10. Adam
    Adam avatar
    2 posts
    Member since:
    Jul 2011

    Posted 14 May 2012 Link to this post

    Thank you Victor.

    I will give it a go right now.

    Adam
Back to Top
DevCraft banner