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

Why is there no Click event in Tile?

7 Answers 165 Views
TileList
This is a migrated thread and some comments may be shown as answers.
Per Thygesen
Top achievements
Rank 1
Per Thygesen asked on 30 Oct 2013, 06:58 AM
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?

7 Answers, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 30 Oct 2013, 08:24 AM
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 >>
0
dnguyen
Top achievements
Rank 1
answered on 12 May 2014, 12:30 AM
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.
0
Yoan
Telerik team
answered on 13 May 2014, 12:22 PM
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.
 
0
Sebastien
Top achievements
Rank 1
answered on 16 Jan 2015, 05:08 PM
And what about now ? Is it posibble to use Tiles in TileList as simple buttons ?

Best
Seb
0
Boris
Telerik team
answered on 20 Jan 2015, 09:41 AM
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.

 
0
Sebastien
Top achievements
Rank 1
answered on 20 Jan 2015, 10:09 AM
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>






0
Boris
Telerik team
answered on 22 Jan 2015, 10:30 AM
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.

 
Tags
TileList
Asked by
Per Thygesen
Top achievements
Rank 1
Answers by
Maya
Telerik team
dnguyen
Top achievements
Rank 1
Yoan
Telerik team
Sebastien
Top achievements
Rank 1
Boris
Telerik team
Share this question
or