UI.WPF.Modern

Modern (Fluent 2) styles and controls for your WPF applications

LGPL-2.1 License

Stars
438

Bot releases are hidden (Show)

UI.WPF.Modern - v0.9.30 Latest Release

Published by NotYoojun 3 months ago

⚠️ BREAKING CHANGES :: This version contains many breaking changes, be careful when upgrading!

Remarks

SimpleStackPanel upgrade

For example, this is how you use a SimpleStackPanel before:

xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
<ui:SimpleStackPanel/>

After updating to the latest package, add this namespace declaration in your XAML:

xmlns:ikw="http://schemas.inkore.net/lib/ui/wpf"

And then use the SimpleStackPanel in ikw:

<ikw:SimpleStackPanel/>
UI.WPF.Modern - v0.9.28

Published by NotYoojun 6 months ago

  • Added IconAndText control to quickly create a combine of icon and text, which is commonly used in Buttons.
  • Possibly fixed #58 (more testing needed)
  • Fixed some warnings (i rly hate them :-(
UI.WPF.Modern - v0.9.27

Published by NotYoojun 6 months ago

  • Added title bar button availability controls, which means you can control whether to enable, disable, or hide any button you want. (#48)
  • Remade the FontIcon component and added Fluent System Icons support.
    For example, the code in previous versions:
    <ui:FontIcon Glyph="{x:Static SegoeIcons.Save}"/>
    
    should be changed to:
    <ui:FontIcon Icon="{x:Static SegoeFluentIcons.Save}"/>
    
    You can also use Fluent System Icons like this (no need to specify FontFamily)
    <ui:FontIcon Icon="{x:Static ui:FluentSystemIcons.WindowSettings_20_Regular}"/>
    
  • Added a few samples.
  • Fixed some other bugs

Coming soon!

We're still working on our documentation site. And a complete document set will be coming soon.
You can preview, edit or contribute on this repo: https://github.com/iNKORE-NET/Documentation
(Please follow the guidelines when contributing)

UI.WPF.Modern - v0.9.26

Published by NotYoojun 8 months ago

  • Added bool Navigate(object content, object extraData, NavigationTransi……tionInfo infoOverride) method (by @Zaitonn)
  • Added IconElement.CreateIconSource() method
  • Added InputBox class (by @JeremyAnsel)
  • Changed license to LGPLv2.1
  • Removed some useless comments (by @Zaitonn)
  • Removed some duplicated helpers and converters
  • Fixed NavigationView top nav foreground
  • Fixed MessageBox's incorrect backdrop in dark mode and added sounds
  • Fixed MessageBoxImage.None throwing exceptions (#41)
  • Now you can copy the info from a modern MessageBox with Ctrl+C (#43)
UI.WPF.Modern - v0.9.25

Published by NotYoojun 10 months ago

  • Added backdrop effect for MessageBox. To use it, you can set MessageBox.DefaultBackdropType (static, and applies to all message boxes) or WindowHelper.SystemBackdropType
  • Added sound for MessageBox (only works when using MessageBoxImage parameter; you can disabled it by MessageBox.MakeSound = false)
  • Renamed SampleApp to Gallery
  • Fixed a crash when CanBeAccessedAcrossThreads is set to true
  • Fixed some wrong namespaces in Gallery
  • Fixed some other bugs
UI.WPF.Modern - v0.9.24

Published by NotYoojun 10 months ago

  • Added MessageBox control to present Fluent-style message boxes.
  • Added support for net6.0-windows7.0 support. (PS: Targeting Windows 7.0 will not enable you to follow system accent color and scheme)
  • Fixed a crash when a checked toggle button is set disabled IN DARK MODE
  • Fixed broken elevation border in some controls
  • Removed Microsoft.Windows.CsWin32 package reference
  • Re-organized namespace again
UI.WPF.Modern - v0.9.23

Published by NotYoojun 11 months ago

  • Added accent color keys in ThemeKeys: SystemAccentColorKey, SystemAccentColorDark1Key, etc.
  • Added CornerRadius for Thumb (use ui:ControlHelper.CornerRadius property)
  • Fixed a crash when a checked ToggleButton is set disabled
  • Fixed and improved elevation border brush
  • Re-organized namespaces and simplified XAML resources (#22 by @ghost1372)
  • Fixed some other bugs
UI.WPF.Modern - v0.9.22

Published by NotYoojun 11 months ago

  • Fixed the elevation border for Button, ComboBox, ToggleButton, RepeatButton, DropDownButton, DropDownToggleButton, TextBox, RichTextBox, PasswordBox and NumberBox (we added a new control ElevationBorder to fix the problem that when the height is too much the elevation border doesn't seem right)
  • Fixed the wrong padding in MenuFlyout when ThemeManager.RequestedTheme is not Default
  • Signed assemblies with strong-name (#20)
  • Fixed some other bugs
UI.WPF.Modern - v0.9.21

Published by NotYoojun 12 months ago

  • Added ClippingBorder class
  • Fixed control foreground doesn't change when its content is not string
  • Fixed that sometimes AcrylicPanel doesn't display
  • Fixed some other bugs
UI.WPF.Modern - v0.9.20

Published by NotYoojun about 1 year ago

  • Fixed that scrolling with mouse wheel doesn't work when a ScrollViewerEx with disabled scroll bar visibility is in another scrollable ScrollViewerEx.
  • Fixed the border of a Button gets ugly when its height went too much.
  • Fixed a crash when clicking maximize button with its window ResizeMode = CanMinimize.
  • Added 'FlyoutOpeningMode' property to AppBarButton, AppBarRepeatButton and DropDownButton to control how the flyout can be opened automatically
  • Uploaded a missing folder 'Win32'.
UI.WPF.Modern - v0.9.19

Published by NotYoojun about 1 year ago

  • Changed namespace 'Inkore.UI.WPF.Modern' to iNKORE.UI.WPF.Modern
  • Fixed some bugs
UI.WPF.Modern - v0.9.18

Published by NotYoojun about 1 year ago

  • Now the type of AppBar(Toggle)Button.Icon and AppBar(Toggle)Button.Label is object, allowing us to add more customization to these controls.
  • Now the font size of FontIcon and IconElement is 16d by default, the previous value is 20d.
  • Now the snap layout can be enabled with maximize button working correctly in touch, and added press feedback to maximize button, removed MaximizeButtonTouchOptimize property at the same time.
  • Added WindowHelper.CornerStyle property to customize the corners of windows in Windows 11, there are a few options to choose from: Default, Round, DoNotRound, RoundSmall.
  • Fixed the wrong corner radius of ContentDialog with no buttons, and custom owner window is allowed.
UI.WPF.Modern - v0.9.17

Published by NotYoojun about 1 year ago

  • Added CornerRadius Property for DropShadowPanel and AcrylicPanel

  • Added ShowChevronArrow Property for DropDownButton

  • Fixed a crash in TabItemHelper line 234

  • Fixed a crash in NavigationView.cs line 1652

  • Fixed a crash in ColorsHelper line 41

    -  InnerException {"Operation is not supported on this platform. (0x80131539)"} System.Exception {System.PlatformNotSupportedException}
    
     at Inkore.UI.WPF.Modern.ColorsHelper.ListenToSystemColorChanges()
     at Inkore.UI.WPF.Modern.ColorsHelper..cctor() in E:\Yujun Products\Inkore.UI.WPF.Modern\source\Inkore.UI.WPF.Modern\Helpers\ColorsHelper.cs:line 41
    
  • Fixed some other bugs

UI.WPF.Modern - v0.9.16

Published by NotYoojun about 1 year ago

  • Added ChevronStyle property for AppBarButton to customize the chevron icon
  • Added RaiseHyperlinkClicks for Hyperlink to prevent click events trigger twice in one click
  • Added font family keys to ThemeResources
  • Fixed a problem that mica window background goes wrong when changing theme
  • Fixed some other issues
UI.WPF.Modern - v0.9.15

Published by NotYoojun about 1 year ago

  • If you are experiencing issue like #13, now you can manually turn the MaximizedWindowFixer by using ui:WindowHelper.FixMaximizedWindow="False"
  • When using touch screen, the maximize button on the window won't behave properly sometimes. You can turn the optimization on by using ui:TitleBar.MaximizeButtonTouchOptimize="True"
  • You can customize the title bar height using ui:TitleBar.Height="40", and a problem that the height of title bar buttons remains default when providing a custom title bar height is fixed
  • The XML namespace has finally changed to http://schemas.inkore.net/lib/ui/wpf/modern, since our domain has switched to inkore.net
  • Fixed some other bugs
UI.WPF.Modern - v0.9.14

Published by NotYoojun about 1 year ago

  • Changed domain name animasterstudios.com to inkore.net
  • Fixed some bugs
UI.WPF.Modern - v0.9.13

Published by NotYoojun over 1 year ago

  • Property 'MenuItems' and 'FooterMenuItems' of NavigationView as turned to type 'ObservableCollection<>'
  • Property 'Icon' of NavigationViewItem as turned to type to 'object' so you can put anything you like as Icon
  • In the future, release page will no longer provide zip packages, if you want to use this library manually, pls download the nuget package and extract it.

Full Changelog: https://github.com/InkoreStudios/UI.WPF.Modern/compare/v0.9.12...v0.9.13

UI.WPF.Modern - v0.9.12

Published by NotYoojun over 1 year ago

  • Add more keys in ThemeKeys.cs from Light.xaml and ThemeResources.xaml

Full Changelog: https://github.com/InkoreStudios/UI.WPF.Modern/compare/v0.9.11...v0.9.12

UI.WPF.Modern - v0.9.11

Published by NotYoojun over 1 year ago

Full Changelog: https://github.com/InkoreStudios/UI.WPF.Modern/compare/v0.9.10...v0.9.11

UI.WPF.Modern - v0.9.10

Published by NotYoojun over 1 year ago

  • Added following theme keys
    • LayerFillColorDefaultBrush
    • SystemColorWindowColor
    • CardStrokeColorDefaultBrush
    • NavigationViewContentMargin
    • NavigationViewContentGridCornerRadius
    • NavigationViewContentGridBorderThickness
    • NavigationViewContentGridBorderBrush

Full Changelog: https://github.com/InkoreStudios/UI.WPF.Modern/compare/v0.9.9...v0.9.10

Related Projects