Why Listeners are not themable ?

  1. #1

    Why Listeners are not themable ?

    I've seen

    [Meta]
            [ConfigOption("listeners", JsonMode.Object)]
            [Category("2. Observable")]
            [Themeable(false)]
            [NotifyParentProperty(true)]
            [PersistenceMode(PersistenceMode.InnerProperty)]
            [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
            [ViewStateMember]
            [Description("Client-side JavaScript Event Handlers")]
     public ButtonListeners Listeners
            {
                get
                {
                    if (this.listeners == null)
                    {
                        this.listeners = new ButtonListeners();
                    }
    
                    return this.listeners;
                }
            }
    Making listeners Themeable might help to reuse them via Skins. I think this would be handy even if listeners is irrelevant with looks.
    Last edited by geoffrey.mcgill; Jul 13, 2010 at 12:45 AM. Reason: please use [code] tags
  2. #2
    Hi,

    Ya, I'm not entirely sure why [Themeable(false)] would be required for the Listeners and DirectEvents.

    I just ran several tests without the Attribute and setting the properties work perfectly in a .skin file.

    I've remove the Themeable Attribute from all .Listeners and .DirectEvents. The revised code has been committed to SVN and will be publicly available with the upcoming v1.0 release.

    Thanks for pointing out the problem.

    Hope this helps.
    Geoffrey McGill
    Founder

Similar Threads

  1. Ext.Net.Node Listeners
    By farouk in forum 2.x Help
    Replies: 1
    Last Post: Aug 24, 2012, 2:07 PM
  2. Listeners with razer
    By zhdl in forum 2.x Help
    Replies: 2
    Last Post: Jul 18, 2012, 12:53 AM
  3. Mutiple listeners
    By vali1993 in forum 1.x Help
    Replies: 0
    Last Post: Mar 16, 2010, 12:17 PM
  4. ExtraParameters use from listeners
    By ISkomorokh in forum 1.x Help
    Replies: 0
    Last Post: Dec 10, 2009, 11:49 AM
  5. SelectionModel vs Listeners
    By Juls in forum 1.x Help
    Replies: 1
    Last Post: Apr 07, 2009, 5:02 PM

Posting Permissions