Mnemonic in Panorama Live Tile not workin

4 posts, 0 answers
  1. Faizan
    Faizan avatar
    2 posts
    Member since:
    Jul 2012

    Posted 15 Feb 2013 Link to this post

    I have set use mnemonic property of LiveTile to true and use ampersand(&) for making the letter mnemonic but its not working.
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 19 Feb 2013 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. FengXiang
    FengXiang avatar
    2 posts
    Member since:
    Dec 2013

    Posted 30 Dec 2013 Link to this post

    Please Help
  5. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 02 Jan 2014 Link to this post

    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 >>
Back to Top