Forums

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.
Sort Posts: Previous Next
  • NJ Lech

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

    10/8/2008 4:01 PM
    • Not Ranked
    • Joined on 9/29/2008
    • Posts 23

    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?

  • Anonymous

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

    10/9/2008 4:48 AM

    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

  • NJ Lech

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

    10/9/2008 9:31 AM
    • Not Ranked
    • Joined on 9/29/2008
    • Posts 23

    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?

  • Anonymous

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

    10/10/2008 4:33 AM

    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

  • NJ Lech

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

    10/10/2008 10:11 AM
    • Not Ranked
    • Joined on 9/29/2008
    • Posts 23

    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!

More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.