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

Mnemonic in Panorama Live Tile not workin

3 Answers 44 Views
Panorama
This is a migrated thread and some comments may be shown as answers.
Faizan
Top achievements
Rank 1
Faizan asked on 15 Feb 2013, 07:22 AM
I have set use mnemonic property of LiveTile to true and use ampersand(&) for making the letter mnemonic but its not working.

3 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 19 Feb 2013, 05:12 PM
Hi Faizan,

Thank you for writing.

Currently, the items of RadPanorama does not support this functionality properly and has issue with mnemonics rendering on the screen. If you use the ampersand(&) and enable the mnemonics, upon activating it the click handler of item be hit, but the item will be rendered without underling the mnemonic symbol:
using System;
using System.Windows.Forms;
using Telerik.WinControls.UI;
 
namespace Lab.RadControl
{
    public partial class PanoramaForm : Form
    {
        private RadPanorama panorama = new RadPanorama();
 
        public PanoramaForm()
        {
            InitializeComponent();
 
            panorama.Dock = DockStyle.Fill;
            panorama.Parent = this;
 
            RadLiveTileElement tileElement = new RadLiveTileElement();
            tileElement.Text = "&Applications";
 
            tileElement.UseMnemonic = true;
            panorama.Items.Add(tileElement);
 
            tileElement = new RadLiveTileElement();
            tileElement.Text = "&Games";
            tileElement.UseMnemonic = true;
            panorama.Items.Add(tileElement);
 
            tileElement = new RadLiveTileElement();
            tileElement.Text = "&Top Free";
            tileElement.UseMnemonic = true;
            panorama.Items.Add(tileElement);
 
            tileElement = new RadLiveTileElement();
            tileElement.Text = "Top &Paid";
            tileElement.UseMnemonic = true;
            panorama.Items.Add(tileElement);
            tileElement.Click += tileElement_Click;
         
        }
 
        void tileElement_Click(object sender, EventArgs e)
        {
            Console.WriteLine("Paid click...");
        }
    }
}

I logged the issue in our Public Issue Tracking System. The fix will be available in one of the next releases after upcoming Q1 2013 release, which will be available for download to the end of this week. 

Currently, as a workaround you can use html rendering of text together with RadShortcut component to implement this behavior:
RadTileElement tile = new RadTileElement() { Text = "<html>T<u>e</u>xt</html>" };
tile.Shortcuts.Add(new RadShortcut(Keys.Control, Keys.E));
panorama.Items.Add(tile);

Thank you for the report. Your Telerik points have been updated.

Regards,
Julian Benkov
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
0
FengXiang
Top achievements
Rank 1
answered on 31 Dec 2013, 03:14 AM
Please Help
0
Ivan Todorov
Telerik team
answered on 02 Jan 2014, 12:24 PM
Hi Feng,

Please find my reply in the other forum thread you have opened.

Regards,
Ivan Todorov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
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 >>
Tags
Panorama
Asked by
Faizan
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
FengXiang
Top achievements
Rank 1
Ivan Todorov
Telerik team
Share this question
or