in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

Where is the LogoType.png image reference coming from in the Dev Express Demo page?

Last post 10/10/2008 10:11 AM by NJ Lech. 4 replies.
Page 1 of 1 (5 items)
Sort Posts:
Previous Next
  • 10/8/2008 4:01 PM

    Where is the LogoType.png image reference coming from in the Dev Express Demo page?

    In the DevExpress Demo page http://demos.devexpress.com/ASPxperienceDemos/Default.aspx, I am not able to figure out how this page is referencing the link to "Images/LogoType.png".  I searched through all the CSS files and .skin files, and couldnt find it anywhere.  However, the page is referencing a SkinID called "LogoType":

    <dxe:ASPxHyperLink EnableViewState="False" ID="Logotype" runat="server" NavigateUrl="~/Default.aspx" SkinID="Logotype" />

    Where is the SkinID "LogoType" located?  What is it referring to?

  • 10/9/2008 4:48 AM In reply to

    Re: Where is the LogoType.png image reference coming from in the Dev Express Demo page?

    Hi NJ,

    The "Logotype" skin you asked about is one of internal demo-specific skins. All such skins
    are located within an individual ~/App_Themes/{Theme Name}/Demo.skin file for each theme
    supported by the demos site. Additionally I'd like to mention that the "Logotype" skin is applicable
    to hyperlinks only, and it only describes the size of a hyperlink (logo banner).

    --
    Victor

    Victor
    R&D, ASP.NET Team, DevExpress Inc.

    P.S. If you wish to receive direct assistance from our Support Team, use Support Center.
  • 10/9/2008 9:31 AM In reply to

    Re: Where is the LogoType.png image reference coming from in the Dev Express Demo page?

    Victor A (Developer Express):

    Hi NJ,

    The "Logotype" skin you asked about is one of internal demo-specific skins. All such skins
    are located within an individual ~/App_Themes/{Theme Name}/Demo.skin file for each theme
    supported by the demos site. Additionally I'd like to mention that the "Logotype" skin is applicable
    to hyperlinks only, and it only describes the size of a hyperlink (logo banner).

    --
    Victor

     

    Thanks Victor.  I also found in the Demo.master.vb file this chunk of code:

      ' Logotype
      If DemoName <> "ASPxperience" Then
       Logotype.ImageUrl = "~/App_Themes/" & Page.Theme & "/Demo/Logotype" & ("_" & DemoName) & ".png"
      Else
       Logotype.ImageUrl = "~/App_Themes/" & Page.Theme & "/Demo/Logotype" & ("") & ".png"
      End If

    I believe this is what changes the Logotype.png image dynamically, and pulls it from the correct Theme folder when the user changes the Theme in the combobox.  How can I use this code to do something similar?  I already have the combobox working and it changes the theme, but I want my Default.aspx page to look at different versions of lhi_logo.png, not Logotype.png.   I have different png versions in the proper theme folders already.  What do you suggest?

    Also, where exactly are you declaring Logotype?   I don't see it in the Demo.master.vb file, and Visual Studio is telling me its not declared.   Are you declaring it in Utils.vb or some other global reference file?

  • 10/10/2008 4:33 AM In reply to

    Re: Where is the LogoType.png image reference coming from in the Dev Express Demo page?

    Hi NJ,

    If you want to implement a functionality that is similar to the described one, it's likely
    you'll have to change the logotype image URL within the (master-)page code.
    You can borrow the code from our demos master page with the only exception
    - change the logotype image file name format from the "Logotype(_{ThemeName}).png"
    to yours.

    Concerning the Logotype object: it's declared within the ASPX-markup:

    <dxe:ASPxHyperLink EnableViewState="False" ID="Logotype" runat="server" NavigateUrl="~/Default.aspx" SkinID="Logotype" />

    So, you can access it from the code-behind file directly by the ID:

    Logotype.ImageUrl = "MyURL";

    --
    Victor

    Victor
    R&D, ASP.NET Team, DevExpress Inc.

    P.S. If you wish to receive direct assistance from our Support Team, use Support Center.
  • 10/10/2008 10:11 AM In reply to

    Re: Where is the LogoType.png image reference coming from in the Dev Express Demo page?

    Victor A (Developer Express):

    Hi NJ,

    If you want to implement a functionality that is similar to the described one, it's likely
    you'll have to change the logotype image URL within the (master-)page code.
    You can borrow the code from our demos master page with the only exception
    - change the logotype image file name format from the "Logotype(_{ThemeName}).png"
    to yours.

    Concerning the Logotype object: it's declared within the ASPX-markup:

    <dxe:ASPxHyperLink EnableViewState="False" ID="Logotype" runat="server" NavigateUrl="~/Default.aspx" SkinID="Logotype" />

    So, you can access it from the code-behind file directly by the ID:

    Logotype.ImageUrl = "MyURL";

    --
    Victor

     

    That worked great Victor.  Thank you!

Page 1 of 1 (5 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED