Giter Site home page Giter Site logo

Comments (4)

elachlan avatar elachlan commented on August 26, 2024

@dreddy-work do the unit/integration tests cover this? I started looking and its relatively simple to change to use globbing.

For System.Windows.Forms.Design, I think this works.

  <!-- Embedded Resources are globbed based on their location. -->
  <ItemGroup>
    <EmbeddedResource Include="Resources\System\ComponentModel\Design\*.ico">
      <Generator>PublicResXFileCodeGenerator</Generator>
      <LogicalName>$System.ComponentModel.Design.([System.String]::Copy('%(FileName)')).ico</LogicalName>
    </EmbeddedResource>
    <EmbeddedResource Include="Resources\System\WinForms\Design\Behavior\*.ico">
      <Generator>PublicResXFileCodeGenerator</Generator>
      <LogicalName>$System.Windows.Forms.Design.Behavior([System.String]::Copy('%(FileName)')).ico</LogicalName>
    </EmbeddedResource>
    <EmbeddedResource Include="Resources\System\WinForms\Design\*.ico">
      <Generator>PublicResXFileCodeGenerator</Generator>
      <LogicalName>$System.ComponentModel.Design([System.String]::Copy('%(FileName)')).ico</LogicalName>
    </EmbeddedResource>
    <EmbeddedResource Include="Resources\System\WinForms\Design\MoverGlyph.bmp">
      <LogicalName>System.Windows.Forms.Design.Behavior.MoverGlyph</LogicalName>
    </EmbeddedResource>
  </ItemGroup>

from winforms.

dreddy-work avatar dreddy-work commented on August 26, 2024

@elachlan, i doubt we have full test coverage here. Appreciate adding some unit tests. Soem example usage are in this file : https://github.com/dotnet/winforms/blob/main/src/System.Windows.Forms/src/System/Windows/Forms/DataGridViewHeaderCell.cs

from winforms.

dreddy-work avatar dreddy-work commented on August 26, 2024

Unfortunately the sources that access these bitmaps are behind closed source but the way they accessing these resources is similar to what i pasted above.

from winforms.

elachlan avatar elachlan commented on August 26, 2024

@Tanya-Solyanik is the team okay with renaming resource files to allow for easier globbing? Some of the LogicalName values do not match the file names. Mostly the files located in Resources\System\Windows\Forms\ToolStrip\

So Resources\System\Windows\Forms\ToolStrip\imagetoolstripmenuitem.ico => Resources\System\Windows\Forms\ToolStrip\image.ico

from winforms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.