Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge development, update 2.0.2 #288

Merged
merged 62 commits into from
Jul 18, 2022
Merged
Changes from 1 commit
Commits
Show all changes
62 commits
Select commit Hold shift click to select a range
cc8d2a1
Bump WPF UI version in extension templates [skip ci]
pomianowski Jun 18, 2022
edc426d
implemented SnackbarService
IvanDmitriev1 Jun 18, 2022
d6b2c17
Added and implemented DialogService
IvanDmitriev1 Jun 18, 2022
dee4813
Added ServicesCollectionExtension
IvanDmitriev1 Jun 18, 2022
136d220
Squashed commit of the following:
IvanDmitriev1 Jun 18, 2022
e0a9ed1
Revert "Squashed commit of the following:"
IvanDmitriev1 Jun 18, 2022
dbfb57f
Fix legacy ArcylicEffect
U-C-S Jun 18, 2022
398fc71
Update UnsafeNativeMethods.cs
pomianowski Jun 18, 2022
04b153d
Merge pull request #232 from U-C-S/fix-acrylic-in-v2
pomianowski Jun 18, 2022
4484d51
Verify transparency for Acrylic effect in `UiWindow` [#232][skip ci]
pomianowski Jun 18, 2022
e944d93
Added documentation for IDialogService and ISnackbarService
IvanDmitriev1 Jun 19, 2022
6751afe
Removed ServicesCollectionExtension
IvanDmitriev1 Jun 19, 2022
d261b30
Merge pull request #231 from IvanDmitriev1/dependency-injection
pomianowski Jun 19, 2022
6f893ab
Abstract the Snackbar control and refactor the Snackbar service [#231]
pomianowski Jun 19, 2022
b8bef5e
Refactor the Dialog control and service [#231][#229]
pomianowski Jun 19, 2022
f69eb6e
Update extension templates
pomianowski Jun 19, 2022
a1349d3
Update the NavigationService
pomianowski Jun 19, 2022
1305bc4
Update demo app
pomianowski Jun 19, 2022
5d306f1
Assign navigation event handler to new collection in navigation to al…
pomianowski Jun 19, 2022
b1ea1c6
Fix error in navigation footer enumeratiom [skip ci]
pomianowski Jun 19, 2022
4941754
Alter refreshing the navigation items [skip ci]
pomianowski Jun 21, 2022
cc54943
Add `GitHub` lock workflow [skip ci]
pomianowski Jun 21, 2022
40a8351
Dont force a default font [#242]
pomianowski Jun 21, 2022
83a1979
Add Services docs [skip ci]
pomianowski Jun 22, 2022
cad2676
Update Icons docs [skip ci]
pomianowski Jun 22, 2022
98bd499
Update doc headers [skip ci]
pomianowski Jun 22, 2022
15da245
Update docs [skip ci]
pomianowski Jun 26, 2022
7b022b6
Update docs [skip ci]
pomianowski Jun 26, 2022
a68b1b7
Update @fluentui/react-icons requirement in /branding
dependabot[bot] Jul 1, 2022
f2b7d00
Bump Microsoft.VSSDK.BuildTools
dependabot[bot] Jul 1, 2022
a0a92ca
Refactor ThemeResource markup extensions
pomianowski Jul 2, 2022
a164757
Refactor ThemeResource markup extension enumeration
pomianowski Jul 2, 2022
ca13496
Use `ControlsDictionary` and `ThemesDictionary` instead of `Resources…
pomianowski Jul 2, 2022
95bf186
Prepare `NavigationView` control
pomianowski Jul 2, 2022
3ea43a4
Merge pull request #262 from lepoco/dependabot/npm_and_yarn/branding/…
pomianowski Jul 2, 2022
8759bbe
Add text wrapping, footer, buttons control and focus to `Dialog` [#251]
pomianowski Jul 2, 2022
f976a5e
Merge pull request #263 from lepoco/dependabot/nuget/src/Wpf.Ui.Exten…
pomianowski Jul 2, 2022
af080b4
Merge branch 'development' of github.com:lepoco/wpfui into development
pomianowski Jul 2, 2022
ef6368a
Update Fluent System Icons to 1.1.175
pomianowski Jul 2, 2022
a792c0c
Demo App.xaml.cs more like Win Ui projects [skip ci]
pomianowski Jul 4, 2022
838cd35
Extend navigation aware pages with `INavigableView<T>` interface
pomianowski Jul 5, 2022
43565f3
Fix reveal functionality of PasswordBox
mastry Jul 9, 2022
f79d507
Refactor `NotifyIcon` and fix #264
pomianowski Jul 14, 2022
5173727
Quick fix for `NotifyIcon`
pomianowski Jul 14, 2022
3e31773
Bump @fluentui/react-icons from 2.0.175 to 2.0.176 in /branding
dependabot[bot] Jul 15, 2022
e32db48
Bump Microsoft.VSSDK.BuildTools
dependabot[bot] Jul 15, 2022
60e6f86
Include props in Visual Studio project
pomianowski Jul 18, 2022
c301751
Include metadata manifest in NuGet package for controls visibility
pomianowski Jul 18, 2022
4b83ca1
Add extended `TreeViewItem` with symbol icon support [#277]
pomianowski Jul 18, 2022
b45e038
Once again try to fix `NotifyIcon`
pomianowski Jul 18, 2022
65f206e
Add custom Visual Studio 2022 icons for controls preview
pomianowski Jul 18, 2022
f46f07c
Add placeholder for Navigation Orientation [#285]
pomianowski Jul 18, 2022
6fd6b77
Merge pull request #274 from mastry/fix-passwordbox-reveal
pomianowski Jul 18, 2022
51ba0fb
Merge branch 'development' of github.com:lepoco/wpfui into development
pomianowski Jul 18, 2022
2e00ca7
Merge pull request #284 from lepoco/dependabot/nuget/src/Wpf.Ui.Exten…
pomianowski Jul 18, 2022
65f5d88
Fix error in Orientation type for Navigation
pomianowski Jul 18, 2022
db9cd85
Remove `ViewModelBase` because the MVVM / DI frameworks provide the a…
pomianowski Jul 18, 2022
06b9f7a
Merge pull request #283 from lepoco/dependabot/npm_and_yarn/branding/…
pomianowski Jul 18, 2022
09d992e
Update Fluent System Icons to 1.1.176
pomianowski Jul 18, 2022
b6ebd71
Merge branch 'development' of github.com:lepoco/wpfui into development
pomianowski Jul 18, 2022
45b4092
Bump version to 2.0.2
pomianowski Jul 18, 2022
b099cde
Update readme [skip ci]
pomianowski Jul 18, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix legacy ArcylicEffect
  • Loading branch information
U-C-S committed Jun 18, 2022
commit dbfb57fc1be6b7ef8cca45be93a8588910f20def
62 changes: 17 additions & 45 deletions src/Wpf.Ui/Interop/UnsafeNativeMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -361,57 361,29 @@ public static bool ApplyWindowLegacyAcrylicEffect(Window window)
/// <returns><see langword="true"/> if invocation of native Windows function succeeds.</returns>
public static bool ApplyWindowLegacyAcrylicEffect(IntPtr handle)
{
// TODO
return false;
//if (Common.Windows.Is(WindowsRelease.Windows11Insider1))
//{
// if (!UnsafeNativeMethods.RemoveWindowTitlebar(handle))
// return false;

// int backdropPvAttribute = (int)NativeMethods.Interop.Dwmapi.DWMSBT.DWMSBT_TRANSIENTWINDOW;

// NativeMethods.Interop.Dwmapi.DwmSetWindowAttribute(
// handle,
// NativeMethods.Interop.Dwmapi.DWMWINDOWATTRIBUTE.DWMWA_SYSTEMBACKDROP_TYPE,
// ref backdropPvAttribute,
// Marshal.SizeOf(typeof(int)));

// if (!AppearanceData.Handlers.Contains(handle))
// AppearanceData.Handlers.Add(handle);

// return true;
//}

//if (Common.Windows.Is(WindowsRelease.Windows10V20H1))
//{
// //TODO: We need to set window transparency to True

// var accentPolicy = new NativeMethods.Interop.User32.ACCENT_POLICY
// {
// AccentState = NativeMethods.Interop.User32.ACCENT_STATE.ACCENT_ENABLE_ACRYLICBLURBEHIND,
// GradientColor = (0 << 24) | (0x995000 & 0xFFFFFF)
// };

// int accentStructSize = Marshal.SizeOf(accentPolicy);
var accentPolicy = new Interop.User32.ACCENT_POLICY
{
nAccentState = User32.ACCENT_STATE.ACCENT_ENABLE_ACRYLICBLURBEHIND,
nColor = (0 << 24) | (0x995000 & 0xFFFFFF)
};

// IntPtr accentPtr = Marshal.AllocHGlobal(accentStructSize);
// Marshal.StructureToPtr(accentPolicy, accentPtr, false);
int accentStructSize = Marshal.SizeOf(accentPolicy);

// var data = new NativeMethods.Interop.User32.WINCOMPATTRDATA
// {
// Attribute = NativeMethods.Interop.User32.WINCOMPATTR.WCA_ACCENT_POLICY,
// SizeOfData = accentStructSize,
// Data = accentPtr
// };
IntPtr accentPtr = Marshal.AllocHGlobal(accentStructSize);
Marshal.StructureToPtr(accentPolicy, accentPtr, false);

// NativeMethods.Interop.User32.SetWindowCompositionAttribute(handle, ref data);
var data = new User32.WINCOMPATTRDATA
{
Attribute = User32.WCA.WCA_ACCENT_POLICY,
SizeOfData = accentStructSize,
Data = accentPtr
};

// Marshal.FreeHGlobal(accentPtr);
User32.SetWindowCompositionAttribute(handle, ref data);

// return true;
//}
Marshal.FreeHGlobal(accentPtr);

//return false;
return true;
}

#endregion
Expand Down