Why isn't the DefaultItemRenderer class inherited from Skin?

\sdks\4.0.0\frameworks\projects\spark\src\spark\skins\spark\DefaultItemRenderer.mxml
<?xml version="1.0" encoding="utf-8"?>
<!--- The default skin class for a Spark DefaultItemRenderer class. 
      @langversion 3.0
      @playerversion Flash 10
      @playerversion AIR 1.5
      @productversion Flex 4
-->
The DefaultItemRenderer.mxml is skin class for ItemRenderer.cs,but isn't inherited from  skin?

And to clarify one more thing, we also thought about making item renderers skinnable components (i.e.-ItemRenderer extends SkinnableComponent).  This way, everytime you were changing the look and feel of a component in Spark, you'd be following the exact same pattern.  But after we thought about it some more, that SkinnableComponent-Skinning model didn't really feel right here.
With a SkinnableComponent we have a clear separation of the component properties and behavior on one side and the look and feel of the component on the Skin side.  Also, there's a clear contract we use to talk back and forth to one another.  The reason for the separation between the Skin and the SkinnableComponent is so that we can have one Button SkinnableComponent and multiple Skins for that Button which all tweak the visual appearance of it.
It doesn't make sense for every component to be skinnable.  If you know what you're component is going to be and look like and don't need the extra flexibility skinning provides, then you can get rid of the extra overhead that skinning requires (like having 2 classes).
With an ItemRenderer, we don't really need that separation and extra complexity.  It's really rare for someone to want to create an ItemRenderer component for a particular piece of data and want to have a separate Skin file for that ItemRenderer's look and feel.   For item renderers, the user really wants to create a custom item renderer with any extra behavior and the look and feel of the component all baked in to the same class.  Because of this, when you're creating a custom item renderer, you extend ItemRenderer, like:
<s:ItemRenderer focusEnabled="false"
    xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
    autoDrawBackground="true">
    <s:Label id="labelDisplay" verticalCenter="0" left="3" right="3" top="6" bottom="4"/>
</s:ItemRenderer>
In general, if you want to build a custom component that isn't skinnable, you'd probably just extend Group (similar to our custom item renderer) and bake the child components and look and feel of the custom component right in.  If you want more flexibility and to build a new skinnable component, then you'd extend SkinnableComponent and create a default Skin for its appearance.
Hope that helps,
Ryan

Similar Messages

  • I have deleted all emails from my ICloud email account but my manage storage still shows that the mail is using 9.7GB.  Why isn't the number decreasing if all emails have been deleted?

    I have deleted all emails from my ICloud email account but my manage storage still shows that the mail is using 9.7GB.  Why isn't the number decreasing if all emails have been deleted?

    It might be caused by storage "buffering".  If so, the space will adjust automatically when another iCloud feature uses the space previously allocated to your deleted email.  See http://support.apple.com/kb/HT4873.

  • Why isn't the apogee working

    Downloaded new version of garage band and now my apogee isn't working

    webmail-user wrote:
    I get annoying spam in the Spam Detector from a sender that I will refer to as XYZ for this question. Using Settings/Email Settings/Filters, I added a new filter "If From Contains XYZ delete" and saved the new filter. Today I got another spam in the Spam Detector from the same XYZ sender. Why isn't the filter causing this email to be automatically deleted? Thanks for any suggestions.
    I think that the Spam Detector runs before your custom filters, and custom filters only work on the inbox folder. If Spam Detector moved it from the inbox before the filters were run, then the filter wouldn't delete it.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

  • Why isn't the filter working?

    I get annoying spam in the Spam Detector from a sender that I will refer to as XYZ for this question. Using Settings/Email Settings/Filters, I added a new filter "If From Contains XYZ delete" and saved the new filter. Today I got another spam in the Spam Detector from the same XYZ sender. Why isn't the filter causing this email to be automatically deleted? Thanks for any suggestions.

    webmail-user wrote:
    I get annoying spam in the Spam Detector from a sender that I will refer to as XYZ for this question. Using Settings/Email Settings/Filters, I added a new filter "If From Contains XYZ delete" and saved the new filter. Today I got another spam in the Spam Detector from the same XYZ sender. Why isn't the filter causing this email to be automatically deleted? Thanks for any suggestions.
    I think that the Spam Detector runs before your custom filters, and custom filters only work on the inbox folder. If Spam Detector moved it from the inbox before the filters were run, then the filter wouldn't delete it.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

  • Why isn't the edit button not showing in my ESX24 sampler?

    why isn't the edit button not showing in my ESX24 sampler?

    Is that during installation when you see the two icons.. the one on the left looking like a Garageband guitar icon, the one on the right like the Logic Pro platimum record icon?
    Yes.. that one.. with the choice to click on which option you want/are coming from...
    p.s. I'll probably aquire a Mac Mini this fall then upgrade.... I mean repurchase!
    I think I managed to grab one of the last of the 2011 refurb'ed MMS's.... at that super low price Apple were selling them for... before they bumped it up and now, they seem to have none left at all at any price
    However, just in case, I have found this site really useful at keeping track of Apple's refurb stock... and pricing
    http://www.refurb.me/us/

  • Migrating from eVC++4.0 to VS2008: Menu Bar not coming for class inherited from CProterty sheet

    We are migrating code developed in eVC++4.0 to Visual Studio 2008. We are facing a Problem as descripted below. We are using Pocket PC 2003 emulator.
    We are creating a class inherited from CPropertySheet. As below:
    In Header File:
    class COptionsSheet :
    public CPropertySheet
          DECLARE_DYNAMIC(COptionsSheet)
    #if(WINVER == 0x400)// This works for MenuBAr inherited from CDialog classes.
          CCommandBar m_cb;
    #else
          CCeCommandBar m_cb;
    #endif
    public:
    virtual BOOL OnInitDialog();
    We are drawing menu bar on the property window as below:
    In .CPP file:
    IMPLEMENT_DYNAMIC(COrderSheet, CPropertySheet)
    BEGIN_MESSAGE_MAP(COrderSheet, CPropertySheet)
    ON_COMMAND(ID_CUSTOMER_COLLECTPAYMENT, OnCustomerCollectpayment)
    ON_WM_INITMENUPOPUP()
    ON_NOTIFY(GN_CONTEXTMENU, 0, OnContextMenu)
    END_MESSAGE_MAP()
    BOOL COrderSheet::OnInitDialog()
    BOOL bResult = CPropertySheet::OnInitDialog();
    m_cb.Create(this);//This we have changed for VS 2008 as menu was not appearing for class inherited from CDialog class as well. In eVC++
    4.0 code we have used. Please see m_cb in header file discription
    m_cb.InsertMenuBar(IDR_ORDER1);// This calis unable to draw mwnu bar
    CMenu *pMenu = CWnd::GetMenu();
    //pMenu becomes NULL in very next line as we are passing it as parameter below.
    gPromotion.LoadSalesPromotions(pMenu,
    "Sales", SRC_TRACE_START);
    We tried this as well but it’s also not working:
    CMenu *pMenu = new CMenu;
          BOOL cehckStatus = pMenu->LoadMenu(IDR_ORDER1);
    SetMenu(pMenu);
          CRect r;  GetWindowRect(&r);
          r.bottom += GetSystemMetrics(SM_CYMENU);
          MoveWindow(r);
    Do we have to change or add something more for the menu bar in case of Property Sheet. Is there any change between eVC++ and Visual studio 2008 that we need to incorporate here.

    This forum is for POSReady. Please try one of the Windows CE forums:
    http://social.msdn.microsoft.com/Forums/en-US/category/windowsembeddedcompact
    -Sean
    www.annabooks.com / www.seanliming.com / Book Author - Pro Guide to WE8S, Pro Guide to WES 7, Pro Guide to POS for .NET

  • Why isn't the Youtube app on my iPod?

    Why isn't the Youtube app on my iPod?

    I also think that it was a mistake for them to take away the Built in YouTube Application but you could always try to download it from the App Store because their is now an YouTube app i have tried it and it works fine but it is just not the same as the Built in one
    Hope this solves your issue
    Hope they bring back the Built in YouTube App on the next IOS Update.
    Best of Luck

  • Why isn't the song i downloaded not on my Ipod?

    why isn't the song i downloaded not on my Ipod?

    Does any media sync to the iPod?
    Was the iPod previous synced to another iTunes library/computer?
    Have you successfully synced from this iTunes library/computer before?
    Do the songs play in iTunes?          
    Do you have the right boxes checked to sync?
    iTunes: Syncing media content to iOS devices and iPod       
    Try syncing using the manual method                
    Do you have any Restrictions (Settings>General>Restrictions) set that would prevent syncing those songs? (iTunes purchases only)

  • Whenever I go to preview a song in itunes, the song with play out for about 10 seconds and then stop. Why isn't the song previews working? How can I fix this? I tried updating my itunes and it didn't work.

    Whenever I go to preview a song in itunes, the song with play out for about 10 seconds and then stop. Why isn't the song previews working? How can I fix this? I tried updating my itunes and it didn't work. I use windows 7. Thanks!

    Try:                           
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar                                     

  • Why isn't the radio tuning service working on itunes?

    Why isn't the radio tuning service working on itunes? I get an error message on all of our Macs.

    Maybe one of the 300+ posts about this in the last few days has the answer.  Browse the forum.
    If you wish to, you can report to Apple.
    http://www.apple.com/feedback/itunesapp.html

  • Why isn't the plugin checker working anymore?

    I check for updates to my plugins very often. The Plugin Check page has been saying that all my plugins are up to date. However, twice now I've clicked the button to check anyway, and found that a plugin was not up to date after all. Why isn't the Plugin Check page detecting when my plugins need updating?

    I don't know what you guys have been doing at Mozilla but you've ruined a decent product!

  • Why isn't the iMessage working on my phone? Up until 1:45pm today it was fine, but now it isn't working.

    Why isn't the iMessage on my iPhone 4s working? Up until about 1:45PM today it was working just fine but now it sends it as a text message. I have tried everything in the setting but it still is not working. Any tips would be great! Thanks!

    It should be back up now, they had a system outage. Reset your iPhone.

  • Why isn't the Apple store working?

    Why isn't the Apple store working? I wanted to buy a iPad but I can't because the store isn't working. When will the store start working?

    Apple is in the midst of announcing new products and they normally take the Apple Store offline while a keynote is in progress. The Apple Store will be back up when the keynote is over. Try back in about a half an hour or so.
    Regards.

  • "Retrieve the COM class factory from component with CLSID {623F456-...etc}

    When i try to run on Window server 2008 R2 it gives following error
    "Retrieve the COM class factory from component with CLSID {623F456-...etc} failed due to the followi
    i developed application in xp  it run fine

    Hi
    When you make an ard select the target CPU x86 rather then any CPU in advanced compile options(Properties-> Compile-> Advance Compile Options)
    hope it helps
    Regards
    Rupinder

  • Why isn't the App Store and iTunes a choice for an app on my mini?

    Why isn't the App Store and iTunes a choice for an app on my mini?

    Either they've been moved to another home screen or dropped in a folder, in which case doing a search or resetting the Home Screen layout (Settings/General/Reset) should bring them up, or they've been turned off in General/Restrictions.
    Regards.

Maybe you are looking for