Skip to content

Update Vanara.WinUI.Extensions build environment#594

Draft
tajbender wants to merge 9 commits intodahall:masterfrom
tajbender:5.315
Draft

Update Vanara.WinUI.Extensions build environment#594
tajbender wants to merge 9 commits intodahall:masterfrom
tajbender:5.315

Conversation

@tajbender
Copy link
Copy Markdown
Contributor

@tajbender tajbender commented Mar 12, 2026

Update Vanara.WinUI.Extensions to at least

  • WinUI 3 v1.5 (stable)
  • Vanara v4.5 (stable)
  • .net .6

@tajbender tajbender marked this pull request as draft March 12, 2026 07:28
Copy link
Copy Markdown
Contributor Author

@tajbender tajbender left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update build enviroment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

used default values, i don't need em

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

used default values, i don't need em

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

used default values, i don't need em

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

used default values, i don't need em

Copy link
Copy Markdown
Contributor Author

@tajbender tajbender left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.idea config files should be removed.

@tajbender tajbender changed the title merge version v1.5.315 Update Vanara.WinUI.Extensions build environment Mar 12, 2026
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs updates and refactoring.
@dahall overhaul threading issues please

public class SoftwareBitmapSource : Microsoft.UI.Xaml.Media.Imaging.SoftwareBitmapSource
{
    public IconSize IconSize { get; }
    public SoftwareBitmapSource(IconSize iconSize) => IconSize = iconSize;
}
public static async Task<SoftwareBitmapSource> GetWinUi3BitmapSourceFromIcon(Icon bitmapIcon, IconSize iconSize)
{
    ArgumentNullException.ThrowIfNull(bitmapIcon);
    // TODO: use iconSize...: var hIcon = Shell32.SHGetFileInfo(..., (int)iconSize);
    return await GetWinUi3BitmapSourceFromGdiBitmap(bitmapIcon.ToBitmap());
}
if (gdiBitmap.PixelFormat != PixelFormat.Format32bppArgb)
    gdiBitmap = gdiBitmap.Clone(new Rectangle(0,0,w,h), PixelFormat.Format32bppArgb);

var ms = new MemoryStream();
icon.Save(ms);
ms.Position = 0;

var bmp = new BitmapImage();
bmp.SetSource(ms.AsRandomAccessStream());
return bmp;

@tajbender tajbender marked this pull request as ready for review March 17, 2026 13:27
Merge head to base repository
@tajbender tajbender marked this pull request as draft March 20, 2026 01:48
@tajbender
Copy link
Copy Markdown
Contributor Author

tajbender commented Apr 11, 2026

Update: I'll jump to Vanara v5+.

Current state:

Rebuilding environment, Cleaning up, putting WinUi Shell32 Controls into WinClassicSamplesBrowser for integration testing:

  https://github.com/tajbender/WinClassicSamplesCS/tree/App-Framework

  https://github.com/tajbender/WinClassicSamplesCS/tree/App-Framework/WinUiClassicSamplesBrowser

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.

1 participant