Why is there no Click event in Tile?

8 posts, 1 answers
  1. Per Thygesen
    Per Thygesen avatar
    18 posts
    Member since:
    Dec 2005

    Posted 30 Oct 2013 Link to this post

    There really should be be a Click and Command on Tile. Without it you have to go through the hassle of creating a button with a modern flat style ControlTemplate. Or is there another way?
  2. Answer
    Maya
    Admin
    Maya avatar
    4062 posts

    Posted 30 Oct 2013 Link to this post

    Hello Per,

    Currently, Tile does not have Command property, but we will include it as soon as possible so that you can work directly with it without the need of a button. Thanks for the feedback. 

    Regards,
    Maya
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. dnguyen
    dnguyen avatar
    9 posts
    Member since:
    Apr 2013

    Posted 11 May 2014 Link to this post

    Hi,

    I'm interested about a click command on a tile feature.
    Do this feature has been implemented in the latest release of WPF Telerik products?

    If not, how can i achieve it?
    Do i have to handle the "MouseDown" event or create a button as controltemplate and wrap the tile inside?


    Thank you,

    Kind Regards.
  5. Yoan
    Admin
    Yoan avatar
    1068 posts

    Posted 13 May 2014 Link to this post

    Hello,

    I am afraid this feature is still not implemented. The required functionality is logged in our Feedback portal as feature request and it will be implemented in one of the next versions of RadTileList. 

    As a workaround, I can suggest you to use the MouseDown event.


    Regards,
    Yoan
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  6. Sebastien
    Sebastien avatar
    7 posts
    Member since:
    Sep 2014

    Posted 16 Jan 2015 Link to this post

    And what about now ? Is it posibble to use Tiles in TileList as simple buttons ?

    Best
    Seb
  7. Boris
    Admin
    Boris avatar
    276 posts

    Posted 20 Jan 2015 Link to this post

    Hello Seb,

    I'm afraid that this feature is still not implemented. However the workaround that Yoan has suggested is still a viable one. 

    Keep in mind that the MouseDownEvent event of the Tile is handled internally and you will need to subscribe to it by setting the handledEventsToo to "true" like so:

    public partial class MainWindow : Window
        {
            public MainWindow()
            {
                InitializeComponent();
     
                this.AddHandler(Tile.MouseDownEvent, new MouseButtonEventHandler(OnMouseDownEvent),true);
            }
       
            private void OnMouseDownEvent(object sender, MouseEventArgs e)
            {
                // Your custom logic
            }
        }

    On a side note the status of the feature request will change to "Completed", when the feature is implemented.

    I hope this helps.

    Regards,
    Boris
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  8. Sebastien
    Sebastien avatar
    7 posts
    Member since:
    Sep 2014

    Posted 20 Jan 2015 in reply to Boris Link to this post

    Hi,

    ok, I finally installed https://www.nuget.org/packages/Expression.Blend.Sdk/
    Then, I can use XAML only syntax and command pattern.

             xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
    ...
        <tk:Tile>
            <i:Interaction.Triggers>
                <i:EventTrigger EventName="MouseLeftButtonDown">
                    <i:InvokeCommandAction Command="{Binding Path=MyCommand}"/>
                </i:EventTrigger>
            </i:Interaction.Triggers>
        </tk:Tile>
    </UserControl>






  9. Boris
    Admin
    Boris avatar
    276 posts

    Posted 22 Jan 2015 Link to this post

    Hi Seb,

    I am glad that you have found a resolution to your issue and shared it with our community.

    Regards,
    Boris
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for WPF is Visual Studio 2017 Ready