Skip to content

Update to Avalonia v12 - #42

Merged
punker76 merged 8 commits into
MahApps:mainfrom
timunie:Update-Avalonia
Aug 26, 2026
Merged

punker76 merged 8 commits into
MahApps:mainfrom
timunie:Update-Avalonia

Conversation

@timunie

@timunie timunie commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@AppVeyorBot

Copy link
Copy Markdown

@AppVeyorBot

Copy link
Copy Markdown

@AppVeyorBot

Copy link
Copy Markdown

@AppVeyorBot

Copy link
Copy Markdown

@insomniachi

Copy link
Copy Markdown

is there a way to just get the upgrade to version done? I've been blocked for almost 2 months

@leixao

leixao commented Jun 22, 2026

Copy link
Copy Markdown

is there a way to just get the upgrade to version done? I've been blocked for almost 2 months

I also look forward to its early release.🙏

@insomniachi

Copy link
Copy Markdown

is there a way to just get the upgrade to version done? I've been blocked for almost 2 months

I also look forward to its early release.🙏

As a work around i'm using that path data from the icon browser and using it directly as path icons

@tsgsOFFICIAL

tsgsOFFICIAL commented Aug 6, 2026 •

Copy link
Copy Markdown

is there a way to just get the upgrade to version done? I've been blocked for almost 2 months

I also look forward to its early release.🙏

As a work around i'm using that path data from the icon browser and using it directly as path icons

You don't have to wait on an official release to unblock yourself. You can reference the package straight from source in the meantime, this means once a release is (hopefulle soon) out, you just have to swap sources.
It's a few extra lines but it works today:

1. Pull the repo in as a submodule:

git submodule add -b Update-Avalonia https://github.com/timunie/IconPacks.Avalonia.git externals/IconPacks.Avalonia

2. Reference the specific pack(s) you use directly by .csproj, instead of the NuGet package:

<ItemGroup>
    <ProjectReference Include="externals\IconPacks.Avalonia\src\IconPacks.Avalonia.PhosphorIcons\IconPacks.Avalonia.PhosphorIcons.csproj" />
    <ProjectReference Include="externals\IconPacks.Avalonia\src\IconPacks.Avalonia.SimpleIcons\IconPacks.Avalonia.SimpleIcons.csproj" />
</ItemGroup>

3. Load each pack's style in App.axaml:

<Application.Styles>
    <FluentTheme />
    <StyleInclude Source="avares://IconPacks.Avalonia.PhosphorIcons/PhosphorIcons.axaml" />
    <StyleInclude Source="avares://IconPacks.Avalonia.SimpleIcons/SimpleIcons.axaml" />
</Application.Styles>

4. Use it in AXAML: same iconPacks namespace regardless of which packs you add:

<!-- Root element -->
xmlns:iconPacks="https://github.com/MahApps/IconPacks.Avalonia"
<!-- Body -->
<iconPacks:PackIconPhosphorIcons Kind="House" Width="18" Height="18" />

Hopefully this explains it good enough, otherwise you're more than welcome to ping me on Discord

@ZzZombo

ZzZombo commented Aug 9, 2026 •

Copy link
Copy Markdown

To those who look forward to trying this ^ out, it still doesn't seem to work. Although I didn't fully follow the instructions given in that because I used to use the full package, I also didn't bother with referencing just the actually used packages and referenced the full one as well.

EDIT: I just realized all of them still reference the v11.x of Avalonia. So either I screwed this up somehow or?..

@punker76

punker76 commented Aug 9, 2026

Copy link
Copy Markdown
Member

I will be update the lib after my vacation. So end of August is my deadline 🤪

@tsgsOFFICIAL

Copy link
Copy Markdown

To those who look forward to trying this ^ out, it still doesn't seem to work. Although I didn't fully follow the instructions given in that because I used to use the full package, I also didn't bother with referencing just the actually used packages and referenced the full one as well.

EDIT: I just realized all of them still reference the v11.x of Avalonia. So either I screwed this up somehow or?..

Hey ZzZombo, if you're reffering to my previous comment you most likely forgot to target the correct branch.

If you need help, do feel free to ping me, or wait for the soon to come official repo.to.be updated (Yay!🥳)

Ps. I am in no way affiliated with this repo, I'm just an eager supporter :⁠-⁠P

@ZzZombo

ZzZombo commented Aug 10, 2026 •

Copy link
Copy Markdown

@tsgsOFFICIAL: thanks for the heads-up, this did it! It works! FWIW, the branch is Update-Avalonia.

Edited the wrong person mentioned.

@punker76 punker76 added this to the 3.0.0 milestone Aug 26, 2026
@punker76
punker76 merged commit 44ee23a into MahApps:main Aug 26, 2026
4 checks passed
@timunie
timunie deleted the Update-Avalonia branch August 26, 2026 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants