{"id":15059871,"url":"https://github.com/simnico99/micawpf","last_synced_at":"2025-05-15T07:05:00.493Z","repository":{"id":40365271,"uuid":"422552303","full_name":"Simnico99/MicaWPF","owner":"Simnico99","description":"This is a library to make Mica available in WPF.","archived":false,"fork":false,"pushed_at":"2025-05-10T21:13:33.000Z","size":3364,"stargazers_count":229,"open_issues_count":0,"forks_count":11,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-05-15T07:04:53.844Z","etag":null,"topics":["acrylic","control","csharp","dotnet","fluent","mica","net6","net7","net8","net9","ui","winui","wpf","wpfui","xaml"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Simnico99.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":"FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["Simnico99"]}},"created_at":"2021-10-29T11:38:27.000Z","updated_at":"2025-05-14T05:30:40.000Z","dependencies_parsed_at":"2023-12-22T15:11:36.985Z","dependency_job_id":"487f071e-bb9d-456b-9df4-e3d584717726","html_url":"https://github.com/Simnico99/MicaWPF","commit_stats":{"total_commits":645,"total_committers":6,"mean_commits":107.5,"dds":0.01705426356589146,"last_synced_commit":"bd22bd23a27bf8953704344a76293cf1dcbd1148"},"previous_names":[],"tags_count":192,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simnico99%2FMicaWPF","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simnico99%2FMicaWPF/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simnico99%2FMicaWPF/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simnico99%2FMicaWPF/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Simnico99","download_url":"https://codeload.github.com/Simnico99/MicaWPF/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254292040,"owners_count":22046426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["acrylic","control","csharp","dotnet","fluent","mica","net6","net7","net8","net9","ui","winui","wpf","wpfui","xaml"],"created_at":"2024-09-24T22:49:16.074Z","updated_at":"2025-05-15T07:04:55.465Z","avatar_url":"https://github.com/Simnico99.png","language":"C#","funding_links":["https://github.com/sponsors/Simnico99"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003ca href=\"https://www.nuget.org/packages/MicaWPF/latest\"\u003e![NuGet](https://img.shields.io/nuget/v/MicaWPF.svg?style=flat\u0026logo=NuGet)\u003c/a\u003e\n\u003ca href=\"https://www.nuget.org/packages/MicaWPF/\"\u003e![NuGet(download)](https://img.shields.io/nuget/dt/MicaWPF.svg?style=flat\u0026logo=NuGet)\u003c/a\u003e\n\u003ca href=\"https://www.codefactor.io/repository/github/simnico99/micawpf/overview/main\"\u003e![CodeFactor](https://img.shields.io/codefactor/grade/github/Simnico99/MicaWPF/main?logo=codefactor\u0026logoColor=%23ffff)\u003c/a\u003e\n\u003ca href=\"https://dev.azure.com/ZirconCloud/MicaWPF/_build\"\u003e![Azure Pipelines](https://dev.azure.com/ZirconCloud/MicaWPF/_apis/build/status/Simnico99.MicaWPF?branchName=main)\u003c/a\u003e\u003cbr/\u003e\n\u003ca href=\"https://github.com/Simnico99/MicaWPF/graphs/contributors\"\u003e![Contributors](https://img.shields.io/github/contributors/Simnico99/MicaWPF?style=flat)\u003c/a\u003e\n\u003ca href=\"https://github.com/Simnico99/MicaWPF/network/members\"\u003e![Forks](https://img.shields.io/github/forks/Simnico99/MicaWPF?style=flat)\u003c/a\u003e\n\u003ca href=\"https://github.com/Simnico99/MicaWPF/stargazers\"\u003e![Stargazers](https://img.shields.io/github/stars/Simnico99/MicaWPF?style=flat)\u003c/a\u003e\n\u003ca href=\"https://github.com/Simnico99/MicaWPF/issues\"\u003e![Issues](https://img.shields.io/github/issues/Simnico99/MicaWPF?style=flat)\u003c/a\u003e\n\u003ca href=\"https://github.com/Simnico99/MicaWPF/blob/main/LICENSE\"\u003e![License](https://img.shields.io/github/license/Simnico99/MicaWPF?style=flat)\u003c/a\u003e\n\n\u003c/div\u003e\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/Simnico99/MicaWPF\"\u003e\n    \u003cimg src=\"/Logo/MicaWPFLogo%20-%2080x56.png\" alt=\"Logo\" width=\"80\" height=\"56\"\u003e\n  \u003c/a\u003e\n\n  \u003ch3 align=\"center\"\u003eMicaWPF\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    This is a library to make Mica available in WPF.\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/Simnico99/MicaWPF/wiki\"\u003e\u003cstrong\u003eExplore the docs »\u003c/strong\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n\t\u003ca href=\"https://github.com/Simnico99/MicaWPF/tree/main/src/MicaWPF.Demo\"\u003eView Demo\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/Simnico99/MicaWPF/issues/new?assignees=Simnico99\u0026labels=bug%2CNeeds-Triage\u0026projects=\u0026template=bug_report.yaml\u0026title=%5BBug%5D%3A+\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/Simnico99/MicaWPF/issues/new?assignees=Simnico99\u0026labels=enhancement%2CNeeds-Triage\u0026projects=\u0026template=feature_request.yaml\u0026title=%5BFeature+Request%5D%3A+\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n\u003cdetails\u003e\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\n      \u003ca href=\"#about-the-project\"\u003eAbout The Project\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#built-with\"\u003eBuilt With\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca href=\"#getting-started\"\u003eGetting Started\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#roadmap\"\u003eRoadmap\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contact\"\u003eContact\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#acknowledgements\"\u003eAcknowledgements\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n## About The Project\n\nThe project aim to mimic Windows 11 Mica Behaviors in a WPF application since WPF is a well established framework and also it aims to gracefully revert to a Windows 10 style that is kinda similar to the Dark and Light mode of Windows 11 to keep inline with the style.\n\nWindows 11\u003cbr/\u003e\n![Mica_Exemple](https://user-images.githubusercontent.com/80013536/146576610-09cdf07d-0170-4e48-b65d-6612fd7b31fb.png)\n\nWindows 10\u003cbr/\u003e\nSupports falling back to dark or light theme on Windows 10.\n![image](https://user-images.githubusercontent.com/80013536/139864645-8a48016b-e369-4c9c-9ca9-73ee7fc10a07.png)\u003cbr/\u003e\n\nHere are some exemple controls:\n![image](https://user-images.githubusercontent.com/80013536/169356344-caacaa6d-5ee6-447b-b3b5-35fca1a8939b.png)\n![74d755e6e4ae5fddb0b5fe64d2869e81](https://user-images.githubusercontent.com/80013536/169356493-95e8d389-815a-4227-a6a6-7a422334f627.gif)\n![42cbe5065b53c4e8369f2f4bbeb1311a](https://user-images.githubusercontent.com/80013536/169356743-a4b899c7-ba99-40c9-a5aa-823a5942fd3b.gif)\n![image](https://user-images.githubusercontent.com/80013536/169356891-4b5a2221-64e2-4522-ba1e-a2bae9f04b40.png)\n\n\n### Built With\n\n* [MicaWPFRuntimeComponent](https://github.com/Simnico99/MicaWPFRuntimeComponent)\n\n\n\u003c!-- GETTING STARTED --\u003e\n## Getting Started\n\nTo get a local copy up and running follow these simple steps.\n\n### Installation\n\n#### NuGet\n1. Download via the Nuget package manager or use the NuGet Command line.\n   ```sh\n   Install-Package MicaWPF (or MicaWPF.Lite)\n   ```\n2. If you have used the NuGet Command line restore de packages.\n   ```sh\n   nuget restore MicaWPF.sln\n   ```\n\n#### Using source\n1. Clone the repo.\n   ```sh\n   git clone https://github.com/Simnico99/MicaWPF.git\n   ```\n2. Restore NuGet packages.\n   ```sh\n   nuget restore MicaWPF.sln\n   ```\n3. Add the project in your project reference.\n\n\n\u003c!-- USAGE EXAMPLES --\u003e\n### Usage\n\n(Works for both MicaWPF and MicaWPF.Lite)\n\n1. To start Change the `\u003cWindow\u003e\u003cWindow/\u003e` for `\u003ccontrols:MicaWindow\u003e\u003c/controls:MicaWindow\u003e`.\n2. Add the namespace by adding `xmlns:controls=\"clr-namespace:MicaWPF.Controls;assembly=MicaWPF\"` (For MicaWPF.Lite `xmlns:controls=\"clr-namespace:MicaWPF.Lite.Controls;assembly=MicaWPF.Lite\"`).\n\nHere is an exemple:\n```XAML\n\u003ccontrols:MicaWindow  \n        x:Class=\"MicaWPF.DesktopApp.MainWindow\"\n        xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n        xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\"\n        xmlns:d=\"http://schemas.microsoft.com/expression/blend/2008\"\n        xmlns:local=\"clr-namespace:MicaWPF.DesktopApp\"\n        xmlns:mc=\"http://schemas.openxmlformats.org/markup-compatibility/2006\"\n        xmlns:controls=\"clr-namespace:MicaWPF.Controls;assembly=MicaWPF\"\n        mc:Ignorable=\"d\"\n        Title=\"MainWindow\" \n        Height=\"450\" \n        Width=\"800\" \u003e\n    \u003cGrid\u003e\n\n    \u003c/Grid\u003e\n\u003c/controls:MicaWindow\u003e\n```\n\n3. You need to add `\u003cmica:ThemeDictionary Theme=\"Auto\" /\u003e` and `\u003cmica:ControlsDictionary /\u003e` to your App.xaml resources.\n\nHere is an exemple:\n```xaml\n\u003cApplication\n    x:Class=\"MicaWPF.DesktopApp.App\"\n    xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n    xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\"\n    xmlns:mica=\"clr-namespace:MicaWPF.Styles;assembly=MicaWPF\" \u003c!-- For the lite version: clr-namespace:MicaWPF.Styles;assembly=MicaWPF.Lite --\u003e\n    StartupUri=\"MainWindow.xaml\"\u003e\n    \u003cApplication.Resources\u003e\n        \u003cResourceDictionary\u003e\n            \u003cResourceDictionary.MergedDictionaries\u003e\n                \u003cmica:ThemeDictionary DesignModeTheme=\"Dark\" Theme=\"Auto\" /\u003e \u003c!-- And Here (You can change to Light, Dark or auto here) --\u003e\n                \u003c!-- \u003cmica:ThemeDictionary /\u003e  works too--\u003e\n\t\t\u003cmica:ControlsDictionary /\u003e \u003c!-- This is mandatory --\u003e\n            \u003c/ResourceDictionary.MergedDictionaries\u003e\n        \u003c/ResourceDictionary\u003e\n    \u003c/Application.Resources\u003e\n\u003c/Application\u003e\n```\n\n(Does not apply to MicaWPF.Lite)\nNow get into your Window code:\n1. Add the namespace `using MicaWPF.Controls;`.\n2. Change the Window inherited class to `MicaWindow`.\n\nHere is an exemple of what it might look like using .NET9:\n```CSharp\nusing MicaWPF.Controls;\n\nnamespace MicaWPF.DesktopApp;\n\npublic partial class MainWindow : MicaWindow\n{\n    public MainWindow()\n    {\n        InitializeComponent();\n    }\n}\n\n```\n\n#### Note For .Net6.0, .Net7.0, .Net8.0 and .Net9.0\nYou will need to change your CSPROJ to include the windows build after the netx.0-windows.\nHere is an exemple using .Net9.0 just change the net9 for net8, net7 or net6 for the other versions.\n\nMicaWPF:\n```Xaml\n\u003cTargetFramework\u003enet9.0-windows\u003c/TargetFramework\u003e\n\u003cTargetPlatformMinVersion\u003e7.0\u003c/TargetPlatformMinVersion\u003e\n```\n\nMicaWPF.Lite:\n```Xaml\n\u003cTargetFramework\u003enet9.0-windows\u003c/TargetFramework\u003e\n```\n\n_For more examples, please refer to the [Documentation](https://github.com/Simnico99/MicaWPF/wiki)_\n\n\n\n\u003c!-- ROADMAP --\u003e\n## Roadmap\n\nSee the [open issues](https://github.com/Simnico99/MicaWPF/issues) for a list of proposed features (and known issues).\n\n\n\n\u003c!-- CONTRIBUTING --\u003e\n## Contributing\n\nContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## FAQ\n\n### Q: What is the difference between MicaWPF and MicaWPF.Lite?\nA: The MicaWPF.Lite Nuget package only contains the MicaWindow code\u003cbr/\u003e\nand a trim down accent color detection so it takes way less space.\u003cbr /\u003e\nTake note that accent colors are not as accurate on the light version.\n\n### Q: The title bar buttons are weird, how do I fix?\nA: Apply TitleBarType=\"WinUI\" like this:\n```\n\u003cmica:MicaWindow [your code...]\nTitleBarType=\"WinUI\"\n\u003e\n[other code...]\n\u003c/mica:MicaWindow\u003e\n```\n\n\u003c!-- LICENSE --\u003e\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n\n\n\u003c!-- CONTACT --\u003e\n## Contact\n\nSimnico99 - [@TheSimnico99](https://twitter.com/TheSimnico99)\n\nProject Link: [https://github.com/Simnico99](https://github.com/Simnico99)\n\n\n\n\u003c!-- ACKNOWLEDGEMENTS --\u003e\n## Acknowledgements\n\n* [Fluent UI System Icons](https://github.com/microsoft/fluentui-system-icons)\n* [Best README template](https://github.com/othneildrew/Best-README-Template)\n\n![Alt](https://repobeats.axiom.co/api/embed/756130021d85947f6cd1d56b08c1f7b358e5d3a5.svg \"Repobeats analytics image\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimnico99%2Fmicawpf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimnico99%2Fmicawpf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimnico99%2Fmicawpf/lists"}