Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • I have many needs that require the user to be able to click on a tile item to toggle the tile from large to regular size. In addition I also need the ability for the user to double click on the item to direct them to another window based on information contained on the tile they double clicked on. Currently there is only a double click event for the tile control which I am unable to get the info necessary from the tile item. Is it possible to add a double click event for tileitems ?

                                    Thanks

                                0

                                Hi Steven,

                                Thank you for your question. You can get the required TileItem and all its information in the TileControl.DoubleClick event handler by the mouse position via the TileControl.CalcHitInfo method.

                                [VB.NET]
                                Private Sub tileControl1_DoubleClick(sender As Object, e As EventArgs) Dim hi As TileControlHitInfo = tileControl1.CalcHitInfo(tileControl1.PointToClient(MousePosition)) If hi.InItem Then MessageBox.Show(hi.ItemInfo.Item.Text) End If End Sub
                                Attached is a small sample project that illustrates this approach.

                                Thanks,
                                John.

                                0

                                Thanks John for your quick response. The code worked from a strictly programmatic standpoint, so I appreciate the sample code.

                                I still have an issue though, as the tile itemclick event gets raised before the tile control double click event, so my interface gets confusing to the user, as I use the itemclick event to toggle islarge property. So the user sees the tile toggle from large to small or vice versa, and then they see the action relative to the double click event.

                                So, I am wondering if this issue should be changed to a suggestion or a bug report, as you have answered my original question, but I believe if we had an Item double click event, that maybe it would work smoother.

                                If you see another way for me to handle this without it becoming a suggestion, I would appreciate it.

                                Thanks again.

                                0

                                Hi Steven,

                                I have converted this question to a suggestion and passed it to our development team. They will consider the possibility to introduce this feature.

                                Thanks,
                                John.

                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners