Comments (4)
@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.
@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.
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.
@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)
- The ToolStripMenuItem cannot be deleted successfully using Delete key in the DemoConsole application HOT 2
- Unstable unit test: BindingContextTests.BindingContext_Item_GetIListSourceDataSourceWithDataMemberReturningIListNull_ThrowsArgumentNullException
- Unstable unit test: TreeNode_TreeNodeIKeyboardToolTipTests.TreeNodeIKeyboardToolTip_InvokeIsHoveredWithMouse_ReturnsExpected HOT 1
- Suppresses CodeQL for BinaryFormatter deserialization for several files
- The "AutoCompleteSource" property of the TextBox control is missing HOT 6
- Incorrect scaling of MDI child forms HOT 5
- In some specific nesting situations, controls aren't properly scaled. HOT 7
- Non-SDK NETFX4.8 project referencing .netstandard2.0 - PlatformNotSupportedException HOT 3
- Investigate Rendering Performance differences based on hardware/VMs/RDP
- Can't be able to use the custom CollectionEditors in NetCore projects.
- Repeat occurrence of #11473, failure to publish single file HOT 1
- MSAA: overriding CreateAccessibilityInstance() with custom AccessibleObject implementation does not work and causes InvalidOperationException HOT 3
- Check correct usage of the VisualStylesRenderer
- KeyboardToolTip created for a DataGridView with ShowCellTooltips enabled can crash in HideAllToolTips HOT 3
- Documenting .NET 9 APIs
- Enable nullable reference types for System.Windows.Forms.Tests HOT 1
- DragDropEffects display incorrectly HOT 3
- Port System.Drawing docs for .NET 9 APIs HOT 6
- Point, PointF, Size and SizeF: Unary minus operator HOT 3
- The DemoConsole application in the Winforms repo stops running when opening the control's smarttag HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from winforms.