Comments (10)
@timunie Generating the path data directly is not possible, because of the different source of the icons. That’s why I didn’t publish my converter.
@MarkIvanDev I will try and look if the resx can help here.
from mahapps.metro.iconpacks.
@MarkIvanDev Idk exactly why this happens. I can see that the XamlTypeInfo for Debug is different to Release but Idk why...
from mahapps.metro.iconpacks.
@MarkIvanDev If I disable "Compile with .NET Native tool chain" the app runs fine. That's the reason why I'm hate UWP!
from mahapps.metro.iconpacks.
Yes. It only runs when not compiling with .NET Native toolchain. I have also checked what is different with the icons with bugs from the ones that work correctly, and nothing stands out that might cause the problem. Although, I have read somewhere that there is a limit to the length of a string in a library. Maybe it is having problems with the massive icon data for those icon packs?
from mahapps.metro.iconpacks.
Although, I have read somewhere that there is a limit to the length of a string in a library. Maybe it is having problems with the massive icon data for those icon packs?
But it's working on WPF. You can see it in action with the IconPacks browser.
from mahapps.metro.iconpacks.
But it's working on WPF. You can see it in action with the IconPacks browser.
Yes. Maybe the string limitation is only enforced in .NET Native? Or .NET Native has a problem with a large number of static strings? I have tried creating a new package for UWP with the problematic icon packs using the same path data, but it still triggers the error stated above. But when I put the data inside a sqlite database and read from that, the error does not show and it compiles and runs successfully when using .NET Native.
from mahapps.metro.iconpacks.
Interesting finding. Do you think source generators may be helpful in that case?
from mahapps.metro.iconpacks.
Interesting finding. Do you think source generators may be helpful in that case?
If the source generators will only generate the same classes with the same static strings as data, I don't think it will make a difference. But I think if the path data will be put in resource files (.resx), I think we can work around the static string length limitation
from mahapps.metro.iconpacks.
No, the idea was to generate the PathGeometry directly.
from mahapps.metro.iconpacks.
@MarkIvanDev I will try and look if the resx can help here.
If there is anything I can help with, I'd love to.
from mahapps.metro.iconpacks.
Related Issues (20)
- bug: bound icons in an ItemsControl are shown incorrectly. Error appeared on 4.4.0 (it did work correctly on 4.3.0) HOT 2
- "MahApps.Metro.IconPacks.Core" Nuget-Package
- Drop .NET Framework 4.5.2 and 4.6 which will reach End of Support on April 26, 2022
- Question: how to convert an icon to System.Drawing.Icon? HOT 1
- Include the Microsoft Windows11 explorer icons
- iconPacks:PackIconSimpleIcons HOT 1
- Could not load file or assembly 'MahApps.Metro.IconPacks.FontAwesome, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0c0d510f9915137a' or one of its dependencies. The system cannot find the file specified. HOT 2
- VS2022 WPF Designer Crashes Most Times with Icons HOT 3
- Material Design Icons v7.0.96
- Publish icon file generators for use in PRs HOT 2
- Drop the UWP support because it's a mess with the new Sdk project files
- Unable to resolve type Material HOT 4
- VS2022 can't find IconPacks resource HOT 9
- Flipped icon paths? HOT 1
- Update RemixIcon to V3.5 HOT 2
- IconPack spin not working HOT 1
- Is there any plan to update the Nuget version recently?
- IconPacks for MAUI
- Merge all dlls into one HOT 4
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 mahapps.metro.iconpacks.