├── .csharpierrc ├── .devcontainer ├── devcontainer.json └── post-create.sh ├── .editorconfig ├── .gitattributes ├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── bug_report.yaml │ ├── config.yml │ └── feature_request.yaml ├── assets │ └── microsoft-badge.png ├── dependabot.yml ├── labeler.yml ├── labels.yml ├── policies │ ├── cla.yml │ └── platformcontext.yml ├── pull_request_template.md └── workflows │ ├── top-issues-dashboard.yml │ ├── wpf-ui-cd-docs.yaml │ ├── wpf-ui-cd-extension.yaml │ ├── wpf-ui-cd-nuget.yaml │ ├── wpf-ui-labeler.yml │ ├── wpf-ui-lock.yml │ └── wpf-ui-pr-validator.yaml ├── .gitignore ├── .vsconfig ├── CNAME ├── CODEOWNERS ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Directory.Build.props ├── Directory.Build.targets ├── Directory.Packages.props ├── LICENSE ├── LICENSE.md ├── README.md ├── SECURITY.md ├── Settings.XamlStyler ├── ThirdPartyNotices.txt ├── Wpf.Ui.Gallery.slnf ├── Wpf.Ui.Library.slnf ├── Wpf.Ui.sln ├── branding ├── geometric_splash.psd ├── microsoft-fluent-resources.psd ├── wpfui.ico ├── wpfui.png ├── wpfui.psd └── wpfui_full.png ├── build.cmd ├── build.ps1 ├── build └── nuget.png ├── docs ├── .gitignore ├── codesnippet │ └── Rtf │ │ ├── Hyperlink │ │ └── RtfDocumentProcessor.cs │ │ ├── RtfBuildStep.cs │ │ └── RtfDocumentProcessor.cs ├── docfx.json ├── documentation │ ├── .gitignore │ ├── about-wpf.md │ ├── accent.md │ ├── extension.md │ ├── fonticon.md │ ├── gallery-editor.md │ ├── gallery-monaco-editor.md │ ├── gallery.md │ ├── getting-started.md │ ├── icons.md │ ├── index.md │ ├── menu.md │ ├── navigation-view.md │ ├── nuget.md │ ├── releases.md │ ├── symbolicon.md │ ├── system-theme-watcher.md │ └── themes.md ├── images │ ├── favicon.ico │ ├── github.svg │ ├── icon-192x192.png │ ├── icon-256x256.png │ ├── icon-384x384.png │ ├── icon-512x512.png │ ├── ms-download.png │ ├── nuget.svg │ ├── vs22.svg │ ├── wpfui-gallery.png │ ├── wpfui-monaco-editor.png │ └── wpfui.png ├── index.md ├── manifest.webmanifest ├── migration │ ├── v2-migration.md │ ├── v3-migration.md │ └── v4-migration.md ├── robots.txt ├── templates │ ├── .eslintrc.js │ ├── .gitignore │ ├── .stylelintrc.json │ ├── README.md │ ├── build.js │ ├── package-lock.json │ ├── package.json │ ├── tsconfig.json │ └── wpfui │ │ ├── layout │ │ └── _master.tmpl │ │ ├── partials │ │ ├── class.header.tmpl.partial │ │ ├── class.memberpage.tmpl.partial │ │ ├── class.tmpl.partial │ │ ├── collection.tmpl.partial │ │ ├── customMREFContent.tmpl.partial │ │ ├── enum.tmpl.partial │ │ ├── item.tmpl.partial │ │ └── namespace.tmpl.partial │ │ ├── src │ │ ├── docfx.scss │ │ ├── docfx.ts │ │ ├── dotnet.scss │ │ ├── helper.test.ts │ │ ├── helper.ts │ │ ├── highlight.scss │ │ ├── highlight.ts │ │ ├── layout.scss │ │ ├── markdown.scss │ │ ├── markdown.ts │ │ ├── mixins.scss │ │ ├── nav.scss │ │ ├── nav.ts │ │ ├── options.d.ts │ │ ├── search-worker.ts │ │ ├── search.scss │ │ ├── search.ts │ │ ├── theme.ts │ │ ├── toc.scss │ │ ├── toc.ts │ │ ├── wpfui-index-stats.ts │ │ └── wpfui.scss │ │ ├── toc.json.js │ │ └── toc.json.tmpl └── toc.yml ├── nuget.config ├── samples ├── Wpf.Ui.Demo.Console │ ├── GlobalUsings.cs │ ├── Models │ │ └── DataColor.cs │ ├── Program.cs │ ├── Utilities │ │ └── ThemeUtilities.cs │ ├── Views │ │ ├── MainView.xaml │ │ ├── MainView.xaml.cs │ │ ├── Pages │ │ │ ├── DashboardPage.xaml │ │ │ ├── DashboardPage.xaml.cs │ │ │ ├── DataPage.xaml │ │ │ ├── DataPage.xaml.cs │ │ │ ├── SettingsPage.xaml │ │ │ └── SettingsPage.xaml.cs │ │ ├── SimpleView.xaml │ │ └── SimpleView.xaml.cs │ ├── Wpf.Ui.Demo.Console.csproj │ └── wpfui.ico ├── Wpf.Ui.Demo.Dialogs │ ├── App.xaml │ ├── App.xaml.cs │ ├── AssemblyInfo.cs │ ├── Assets │ │ ├── applicationIcon-1024.png │ │ └── applicationIcon-256.png │ ├── MainWindow.xaml │ ├── MainWindow.xaml.cs │ ├── Wpf.Ui.Demo.Dialogs.csproj │ ├── app.manifest │ └── applicationIcon.ico ├── Wpf.Ui.Demo.Mvvm │ ├── App.xaml │ ├── App.xaml.cs │ ├── AssemblyInfo.cs │ ├── Assets │ │ ├── applicationIcon-1024.png │ │ └── applicationIcon-256.png │ ├── GlobalUsings.cs │ ├── Helpers │ │ └── EnumToBooleanConverter.cs │ ├── Models │ │ ├── AppConfig.cs │ │ └── DataColor.cs │ ├── Services │ │ └── ApplicationHostService.cs │ ├── ViewModels │ │ ├── DashboardViewModel.cs │ │ ├── DataViewModel.cs │ │ ├── MainWindowViewModel.cs │ │ ├── SettingsViewModel.cs │ │ └── ViewModel.cs │ ├── Views │ │ ├── MainWindow.xaml │ │ ├── MainWindow.xaml.cs │ │ └── Pages │ │ │ ├── DashboardPage.xaml │ │ │ ├── DashboardPage.xaml.cs │ │ │ ├── DataPage.xaml │ │ │ ├── DataPage.xaml.cs │ │ │ ├── SettingsPage.xaml │ │ │ └── SettingsPage.xaml.cs │ ├── Wpf.Ui.Demo.Mvvm.csproj │ ├── app.manifest │ └── applicationIcon.ico └── Wpf.Ui.Demo.Simple │ ├── App.xaml │ ├── App.xaml.cs │ ├── AssemblyInfo.cs │ ├── Assets │ ├── applicationIcon-1024.png │ └── applicationIcon-256.png │ ├── MainWindow.xaml │ ├── MainWindow.xaml.cs │ ├── Models │ └── DataColor.cs │ ├── Views │ └── Pages │ │ ├── DashboardPage.xaml │ │ ├── DashboardPage.xaml.cs │ │ ├── DataPage.xaml │ │ ├── DataPage.xaml.cs │ │ ├── SettingsPage.xaml │ │ └── SettingsPage.xaml.cs │ ├── Wpf.Ui.Demo.Simple.csproj │ ├── app.manifest │ └── applicationIcon.ico ├── src ├── Wpf.Ui.Abstractions │ ├── Controls │ │ ├── INavigableView.cs │ │ ├── INavigationAware.cs │ │ └── NavigationAware.cs │ ├── GlobalUsings.cs │ ├── INavigationViewPageProvider.cs │ ├── NavigationException.cs │ ├── NavigationViewPageProviderExtensions.cs │ └── Wpf.Ui.Abstractions.csproj ├── Wpf.Ui.DependencyInjection │ ├── DependencyInjectionNavigationViewPageProvider.cs │ ├── GlobalUsings.cs │ ├── ServiceCollectionExtensions.cs │ └── Wpf.Ui.DependencyInjection.csproj ├── Wpf.Ui.Extension.Template.Blank │ ├── App.xaml │ ├── App.xaml.cs │ ├── AssemblyInfo.cs │ ├── Assets │ │ ├── wpfui-icon-1024.png │ │ └── wpfui-icon-256.png │ ├── Wpf.Ui.Blank.csproj │ ├── Wpf.Ui.Blank.vstemplate │ ├── Wpf.Ui.Extension.Template.Blank.csproj │ ├── __PreviewImage.png │ ├── __TemplateIcon.png │ ├── app.manifest │ └── wpfui-icon.ico ├── Wpf.Ui.Extension.Template.Compact │ ├── App.xaml │ ├── App.xaml.cs │ ├── AssemblyInfo.cs │ ├── Assets │ │ ├── wpfui-icon-1024.png │ │ └── wpfui-icon-256.png │ ├── Helpers │ │ └── EnumToBooleanConverter.cs │ ├── Models │ │ ├── AppConfig.cs │ │ └── DataColor.cs │ ├── Resources │ │ └── Translations.cs │ ├── Services │ │ └── ApplicationHostService.cs │ ├── Usings.cs │ ├── ViewModels │ │ ├── Pages │ │ │ ├── DashboardViewModel.cs │ │ │ ├── DataViewModel.cs │ │ │ └── SettingsViewModel.cs │ │ └── Windows │ │ │ └── MainWindowViewModel.cs │ ├── Views │ │ ├── Pages │ │ │ ├── DashboardPage.xaml │ │ │ ├── DashboardPage.xaml.cs │ │ │ ├── DataPage.xaml │ │ │ ├── DataPage.xaml.cs │ │ │ ├── SettingsPage.xaml │ │ │ └── SettingsPage.xaml.cs │ │ └── Windows │ │ │ ├── MainWindow.xaml │ │ │ └── MainWindow.xaml.cs │ ├── Wpf.Ui.Compact.csproj │ ├── Wpf.Ui.Compact.vstemplate │ ├── Wpf.Ui.Extension.Template.Compact.csproj │ ├── __PreviewImage.png │ ├── __TemplateIcon.png │ ├── app.manifest │ └── wpfui-icon.ico ├── Wpf.Ui.Extension.Template.Fluent │ ├── App.xaml │ ├── App.xaml.cs │ ├── AssemblyInfo.cs │ ├── Assets │ │ ├── wpfui-icon-1024.png │ │ └── wpfui-icon-256.png │ ├── Helpers │ │ └── EnumToBooleanConverter.cs │ ├── Models │ │ ├── AppConfig.cs │ │ └── DataColor.cs │ ├── Resources │ │ └── Translations.cs │ ├── Services │ │ └── ApplicationHostService.cs │ ├── Usings.cs │ ├── ViewModels │ │ ├── Pages │ │ │ ├── DashboardViewModel.cs │ │ │ ├── DataViewModel.cs │ │ │ └── SettingsViewModel.cs │ │ └── Windows │ │ │ └── MainWindowViewModel.cs │ ├── Views │ │ ├── Pages │ │ │ ├── DashboardPage.xaml │ │ │ ├── DashboardPage.xaml.cs │ │ │ ├── DataPage.xaml │ │ │ ├── DataPage.xaml.cs │ │ │ ├── SettingsPage.xaml │ │ │ └── SettingsPage.xaml.cs │ │ └── Windows │ │ │ ├── MainWindow.xaml │ │ │ └── MainWindow.xaml.cs │ ├── Wpf.Ui.Extension.Template.Fluent.csproj │ ├── Wpf.Ui.Fluent.csproj │ ├── Wpf.Ui.Fluent.vstemplate │ ├── __PreviewImage.png │ ├── __TemplateIcon.png │ ├── app.manifest │ └── wpfui-icon.ico ├── Wpf.Ui.Extension │ ├── Wpf.Ui.Extension.csproj │ ├── license.txt │ ├── preview.png │ ├── source.extension.vsixmanifest │ └── wpfui.png ├── Wpf.Ui.FontMapper │ ├── FontSource.cs │ ├── GitTag.cs │ ├── GlobalUsings.cs │ ├── License - Fluent System Icons.txt │ ├── Program.cs │ └── Wpf.Ui.FontMapper.csproj ├── Wpf.Ui.Gallery.Package │ ├── Images │ │ ├── LargeTile.scale-100.png │ │ ├── LargeTile.scale-125.png │ │ ├── LargeTile.scale-150.png │ │ ├── LargeTile.scale-200.png │ │ ├── LargeTile.scale-400.png │ │ ├── LockScreenLogo.scale-200.png │ │ ├── SmallTile.scale-100.png │ │ ├── SmallTile.scale-125.png │ │ ├── SmallTile.scale-150.png │ │ ├── SmallTile.scale-200.png │ │ ├── SmallTile.scale-400.png │ │ ├── SplashScreen.scale-100.png │ │ ├── SplashScreen.scale-125.png │ │ ├── SplashScreen.scale-150.png │ │ ├── SplashScreen.scale-200.png │ │ ├── SplashScreen.scale-400.png │ │ ├── Square150x150Logo.scale-100.png │ │ ├── Square150x150Logo.scale-125.png │ │ ├── Square150x150Logo.scale-150.png │ │ ├── Square150x150Logo.scale-200.png │ │ ├── Square150x150Logo.scale-400.png │ │ ├── Square44x44Logo.altform-lightunplated_targetsize-16.png │ │ ├── Square44x44Logo.altform-lightunplated_targetsize-24.png │ │ ├── Square44x44Logo.altform-lightunplated_targetsize-256.png │ │ ├── Square44x44Logo.altform-lightunplated_targetsize-32.png │ │ ├── Square44x44Logo.altform-lightunplated_targetsize-48.png │ │ ├── Square44x44Logo.altform-unplated_targetsize-16.png │ │ ├── Square44x44Logo.altform-unplated_targetsize-256.png │ │ ├── Square44x44Logo.altform-unplated_targetsize-32.png │ │ ├── Square44x44Logo.altform-unplated_targetsize-48.png │ │ ├── Square44x44Logo.scale-100.png │ │ ├── Square44x44Logo.scale-125.png │ │ ├── Square44x44Logo.scale-150.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Square44x44Logo.scale-400.png │ │ ├── Square44x44Logo.targetsize-16.png │ │ ├── Square44x44Logo.targetsize-24.png │ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ │ ├── Square44x44Logo.targetsize-256.png │ │ ├── Square44x44Logo.targetsize-32.png │ │ ├── Square44x44Logo.targetsize-48.png │ │ ├── StoreLogo.backup.png │ │ ├── StoreLogo.scale-100.png │ │ ├── StoreLogo.scale-125.png │ │ ├── StoreLogo.scale-150.png │ │ ├── StoreLogo.scale-200.png │ │ ├── StoreLogo.scale-400.png │ │ ├── Wide310x150Logo.scale-100.png │ │ ├── Wide310x150Logo.scale-125.png │ │ ├── Wide310x150Logo.scale-150.png │ │ ├── Wide310x150Logo.scale-200.png │ │ └── Wide310x150Logo.scale-400.png │ ├── Package.appxmanifest │ └── Wpf.Ui.Gallery.Package.wapproj ├── Wpf.Ui.Gallery │ ├── App.xaml │ ├── App.xaml.cs │ ├── AssemblyInfo.cs │ ├── Assets │ │ ├── Monaco │ │ │ ├── index.html │ │ │ └── min │ │ │ │ └── vs │ │ │ │ ├── base │ │ │ │ ├── browser │ │ │ │ │ └── ui │ │ │ │ │ │ └── codicons │ │ │ │ │ │ └── codicon │ │ │ │ │ │ └── codicon.ttf │ │ │ │ ├── common │ │ │ │ │ └── worker │ │ │ │ │ │ ├── simpleWorker.nls.de.js │ │ │ │ │ │ ├── simpleWorker.nls.es.js │ │ │ │ │ │ ├── simpleWorker.nls.fr.js │ │ │ │ │ │ ├── simpleWorker.nls.it.js │ │ │ │ │ │ ├── simpleWorker.nls.ja.js │ │ │ │ │ │ ├── simpleWorker.nls.js │ │ │ │ │ │ ├── simpleWorker.nls.ko.js │ │ │ │ │ │ ├── simpleWorker.nls.ru.js │ │ │ │ │ │ ├── simpleWorker.nls.zh-cn.js │ │ │ │ │ │ └── simpleWorker.nls.zh-tw.js │ │ │ │ └── worker │ │ │ │ │ └── workerMain.js │ │ │ │ ├── basic-languages │ │ │ │ ├── abap │ │ │ │ │ └── abap.js │ │ │ │ ├── apex │ │ │ │ │ └── apex.js │ │ │ │ ├── azcli │ │ │ │ │ └── azcli.js │ │ │ │ ├── bat │ │ │ │ │ └── bat.js │ │ │ │ ├── bicep │ │ │ │ │ └── bicep.js │ │ │ │ ├── cameligo │ │ │ │ │ └── cameligo.js │ │ │ │ ├── clojure │ │ │ │ │ └── clojure.js │ │ │ │ ├── coffee │ │ │ │ │ └── coffee.js │ │ │ │ ├── cpp │ │ │ │ │ └── cpp.js │ │ │ │ ├── csharp │ │ │ │ │ └── csharp.js │ │ │ │ ├── csp │ │ │ │ │ └── csp.js │ │ │ │ ├── css │ │ │ │ │ └── css.js │ │ │ │ ├── cypher │ │ │ │ │ └── cypher.js │ │ │ │ ├── dart │ │ │ │ │ └── dart.js │ │ │ │ ├── dockerfile │ │ │ │ │ └── dockerfile.js │ │ │ │ ├── ecl │ │ │ │ │ └── ecl.js │ │ │ │ ├── elixir │ │ │ │ │ └── elixir.js │ │ │ │ ├── flow9 │ │ │ │ │ └── flow9.js │ │ │ │ ├── freemarker2 │ │ │ │ │ └── freemarker2.js │ │ │ │ ├── fsharp │ │ │ │ │ └── fsharp.js │ │ │ │ ├── go │ │ │ │ │ └── go.js │ │ │ │ ├── graphql │ │ │ │ │ └── graphql.js │ │ │ │ ├── handlebars │ │ │ │ │ └── handlebars.js │ │ │ │ ├── hcl │ │ │ │ │ └── hcl.js │ │ │ │ ├── html │ │ │ │ │ └── html.js │ │ │ │ ├── ini │ │ │ │ │ └── ini.js │ │ │ │ ├── java │ │ │ │ │ └── java.js │ │ │ │ ├── javascript │ │ │ │ │ └── javascript.js │ │ │ │ ├── julia │ │ │ │ │ └── julia.js │ │ │ │ ├── kotlin │ │ │ │ │ └── kotlin.js │ │ │ │ ├── less │ │ │ │ │ └── less.js │ │ │ │ ├── lexon │ │ │ │ │ └── lexon.js │ │ │ │ ├── liquid │ │ │ │ │ └── liquid.js │ │ │ │ ├── lua │ │ │ │ │ └── lua.js │ │ │ │ ├── m3 │ │ │ │ │ └── m3.js │ │ │ │ ├── markdown │ │ │ │ │ └── markdown.js │ │ │ │ ├── mdx │ │ │ │ │ └── mdx.js │ │ │ │ ├── mips │ │ │ │ │ └── mips.js │ │ │ │ ├── msdax │ │ │ │ │ └── msdax.js │ │ │ │ ├── mysql │ │ │ │ │ └── mysql.js │ │ │ │ ├── objective-c │ │ │ │ │ └── objective-c.js │ │ │ │ ├── pascal │ │ │ │ │ └── pascal.js │ │ │ │ ├── pascaligo │ │ │ │ │ └── pascaligo.js │ │ │ │ ├── perl │ │ │ │ │ └── perl.js │ │ │ │ ├── pgsql │ │ │ │ │ └── pgsql.js │ │ │ │ ├── php │ │ │ │ │ └── php.js │ │ │ │ ├── pla │ │ │ │ │ └── pla.js │ │ │ │ ├── postiats │ │ │ │ │ └── postiats.js │ │ │ │ ├── powerquery │ │ │ │ │ └── powerquery.js │ │ │ │ ├── powershell │ │ │ │ │ └── powershell.js │ │ │ │ ├── protobuf │ │ │ │ │ └── protobuf.js │ │ │ │ ├── pug │ │ │ │ │ └── pug.js │ │ │ │ ├── python │ │ │ │ │ └── python.js │ │ │ │ ├── qsharp │ │ │ │ │ └── qsharp.js │ │ │ │ ├── r │ │ │ │ │ └── r.js │ │ │ │ ├── razor │ │ │ │ │ └── razor.js │ │ │ │ ├── redis │ │ │ │ │ └── redis.js │ │ │ │ ├── redshift │ │ │ │ │ └── redshift.js │ │ │ │ ├── restructuredtext │ │ │ │ │ └── restructuredtext.js │ │ │ │ ├── ruby │ │ │ │ │ └── ruby.js │ │ │ │ ├── rust │ │ │ │ │ └── rust.js │ │ │ │ ├── sb │ │ │ │ │ └── sb.js │ │ │ │ ├── scala │ │ │ │ │ └── scala.js │ │ │ │ ├── scheme │ │ │ │ │ └── scheme.js │ │ │ │ ├── scss │ │ │ │ │ └── scss.js │ │ │ │ ├── shell │ │ │ │ │ └── shell.js │ │ │ │ ├── solidity │ │ │ │ │ └── solidity.js │ │ │ │ ├── sophia │ │ │ │ │ └── sophia.js │ │ │ │ ├── sparql │ │ │ │ │ └── sparql.js │ │ │ │ ├── sql │ │ │ │ │ └── sql.js │ │ │ │ ├── st │ │ │ │ │ └── st.js │ │ │ │ ├── swift │ │ │ │ │ └── swift.js │ │ │ │ ├── systemverilog │ │ │ │ │ └── systemverilog.js │ │ │ │ ├── tcl │ │ │ │ │ └── tcl.js │ │ │ │ ├── twig │ │ │ │ │ └── twig.js │ │ │ │ ├── typescript │ │ │ │ │ └── typescript.js │ │ │ │ ├── vb │ │ │ │ │ └── vb.js │ │ │ │ ├── wgsl │ │ │ │ │ └── wgsl.js │ │ │ │ ├── xml │ │ │ │ │ └── xml.js │ │ │ │ └── yaml │ │ │ │ │ └── yaml.js │ │ │ │ ├── editor │ │ │ │ ├── editor.main.css │ │ │ │ ├── editor.main.js │ │ │ │ ├── editor.main.nls.de.js │ │ │ │ ├── editor.main.nls.es.js │ │ │ │ ├── editor.main.nls.fr.js │ │ │ │ ├── editor.main.nls.it.js │ │ │ │ ├── editor.main.nls.ja.js │ │ │ │ ├── editor.main.nls.js │ │ │ │ ├── editor.main.nls.ko.js │ │ │ │ ├── editor.main.nls.ru.js │ │ │ │ ├── editor.main.nls.zh-cn.js │ │ │ │ └── editor.main.nls.zh-tw.js │ │ │ │ ├── language │ │ │ │ ├── css │ │ │ │ │ ├── cssMode.js │ │ │ │ │ └── cssWorker.js │ │ │ │ ├── html │ │ │ │ │ ├── htmlMode.js │ │ │ │ │ └── htmlWorker.js │ │ │ │ ├── json │ │ │ │ │ ├── jsonMode.js │ │ │ │ │ └── jsonWorker.js │ │ │ │ └── typescript │ │ │ │ │ ├── tsMode.js │ │ │ │ │ └── tsWorker.js │ │ │ │ └── loader.js │ │ ├── WinUiGallery │ │ │ ├── Button.png │ │ │ ├── Flyout.png │ │ │ ├── LICENSE │ │ │ └── MenuBar.png │ │ ├── geo_icons.png │ │ ├── octonaut.jpg │ │ ├── pexels-johannes-plenio-1103970.jpg │ │ ├── wpfui.png │ │ └── wpfui_full.png │ ├── CodeSamples │ │ └── Typography │ │ │ └── TypographySample_xaml.txt │ ├── Controllers │ │ └── MonacoController.cs │ ├── Controls │ │ ├── ControlExample.xaml │ │ ├── ControlExample.xaml.cs │ │ ├── GalleryNavigationPresenter.xaml │ │ ├── GalleryNavigationPresenter.xaml.cs │ │ ├── PageControlDocumentation.xaml │ │ ├── PageControlDocumentation.xaml.cs │ │ ├── TermsOfUseContentDialog.xaml │ │ ├── TermsOfUseContentDialog.xaml.cs │ │ ├── TypographyControl.xaml │ │ └── TypographyControl.xaml.cs │ ├── ControlsLookup │ │ ├── ControlPages.cs │ │ ├── GalleryPage.cs │ │ └── GalleryPageAttribute.cs │ ├── DependencyModel │ │ └── ServiceCollectionExtensions.cs │ ├── Effects │ │ ├── Snowflake.cs │ │ └── SnowflakeEffect.cs │ ├── GalleryAssembly.cs │ ├── GlobalUsings.cs │ ├── Helpers │ │ ├── EnumToBooleanConverter.cs │ │ ├── NameToPageTypeConverter.cs │ │ ├── NullToVisibilityConverter.cs │ │ ├── PaneDisplayModeToIndexConverter.cs │ │ └── ThemeToIndexConverter.cs │ ├── License - Images.txt │ ├── License - Monaco.txt │ ├── Models │ │ ├── DisplayableIcon.cs │ │ ├── Folder.cs │ │ ├── Monaco │ │ │ ├── MonacoLanguage.cs │ │ │ └── MonacoTheme.cs │ │ ├── NavigationCard.cs │ │ ├── Person.cs │ │ ├── Product.cs │ │ ├── Unit.cs │ │ └── WindowCard.cs │ ├── Resources │ │ ├── Translations.cs │ │ ├── Translations.pl-PL.Designer.cs │ │ └── Translations.pl-PL.resx │ ├── Services │ │ ├── ApplicationHostService.cs │ │ ├── Contracts │ │ │ └── IWindow.cs │ │ └── WindowsProviderService.cs │ ├── ViewModels │ │ ├── Pages │ │ │ ├── AllControlsViewModel.cs │ │ │ ├── BasicInput │ │ │ │ ├── AnchorViewModel.cs │ │ │ │ ├── BasicInputViewModel.cs │ │ │ │ ├── ButtonViewModel.cs │ │ │ │ ├── CheckBoxViewModel.cs │ │ │ │ ├── ComboBoxViewModel.cs │ │ │ │ ├── DropDownButtonViewModel.cs │ │ │ │ ├── HyperlinkButtonViewModel.cs │ │ │ │ ├── RadioButtonViewModel.cs │ │ │ │ ├── RatingViewModel.cs │ │ │ │ ├── SliderViewModel.cs │ │ │ │ ├── SplitButtonViewModel.cs │ │ │ │ ├── ThumbRateViewModel.cs │ │ │ │ ├── ToggleButtonViewModel.cs │ │ │ │ └── ToggleSwitchViewModel.cs │ │ │ ├── Collections │ │ │ │ ├── CollectionsViewModel.cs │ │ │ │ ├── DataGridViewModel.cs │ │ │ │ ├── ListBoxViewModel.cs │ │ │ │ ├── ListViewViewModel.cs │ │ │ │ ├── TreeListViewModel.cs │ │ │ │ └── TreeViewViewModel.cs │ │ │ ├── DashboardViewModel.cs │ │ │ ├── DateAndTime │ │ │ │ ├── CalendarDatePickerViewModel.cs │ │ │ │ ├── CalendarViewModel.cs │ │ │ │ ├── DateAndTimeViewModel.cs │ │ │ │ ├── DatePickerViewModel.cs │ │ │ │ └── TimePickerViewModel.cs │ │ │ ├── DesignGuidance │ │ │ │ ├── ColorsViewModel.cs │ │ │ │ ├── IconsViewModel.cs │ │ │ │ └── TypographyViewModel.cs │ │ │ ├── DialogsAndFlyouts │ │ │ │ ├── ContentDialogViewModel.cs │ │ │ │ ├── DialogsAndFlyoutsViewModel.cs │ │ │ │ ├── FlyoutViewModel.cs │ │ │ │ ├── MessageBoxViewModel.cs │ │ │ │ └── SnackbarViewModel.cs │ │ │ ├── Layout │ │ │ │ ├── CardActionViewModel.cs │ │ │ │ ├── CardControlViewModel.cs │ │ │ │ ├── ExpanderViewModel.cs │ │ │ │ └── LayoutViewModel.cs │ │ │ ├── Media │ │ │ │ ├── CanvasViewModel.cs │ │ │ │ ├── ImageViewModel.cs │ │ │ │ ├── MediaViewModel.cs │ │ │ │ ├── WebBrowserViewModel.cs │ │ │ │ └── WebViewViewModel.cs │ │ │ ├── Navigation │ │ │ │ ├── BreadcrumbBarViewModel.cs │ │ │ │ ├── MenuViewModel.cs │ │ │ │ ├── MultilevelNavigationSample.cs │ │ │ │ ├── NavigationViewModel.cs │ │ │ │ ├── NavigationViewViewModel.cs │ │ │ │ ├── TabControlViewModel.cs │ │ │ │ └── TabViewViewModel.cs │ │ │ ├── OpSystem │ │ │ │ ├── ClipboardViewModel.cs │ │ │ │ ├── FilePickerViewModel.cs │ │ │ │ └── OpSystemViewModel.cs │ │ │ ├── SettingsViewModel.cs │ │ │ ├── StatusAndInfo │ │ │ │ ├── InfoBadgeViewModel.cs │ │ │ │ ├── InfoBarViewModel.cs │ │ │ │ ├── ProgressBarViewModel.cs │ │ │ │ ├── ProgressRingViewModel.cs │ │ │ │ ├── StatusAndInfoViewModel.cs │ │ │ │ └── ToolTipViewModel.cs │ │ │ ├── Text │ │ │ │ ├── AutoSuggestBoxViewModel.cs │ │ │ │ ├── LabelViewModel.cs │ │ │ │ ├── NumberBoxViewModel.cs │ │ │ │ ├── PasswordBoxViewModel.cs │ │ │ │ ├── RichTextBoxViewModel.cs │ │ │ │ ├── TextBlockViewModel.cs │ │ │ │ ├── TextBoxViewModel.cs │ │ │ │ └── TextViewModel.cs │ │ │ └── Windows │ │ │ │ └── WindowsViewModel.cs │ │ ├── ViewModel.cs │ │ └── Windows │ │ │ ├── EditorWindowViewModel.cs │ │ │ ├── MainWindowViewModel.cs │ │ │ ├── MonacoWindowViewModel.cs │ │ │ └── SandboxWindowViewModel.cs │ ├── Views │ │ ├── Pages │ │ │ ├── AllControlsPage.xaml │ │ │ ├── AllControlsPage.xaml.cs │ │ │ ├── BasicInput │ │ │ │ ├── AnchorPage.xaml │ │ │ │ ├── AnchorPage.xaml.cs │ │ │ │ ├── BasicInputPage.xaml │ │ │ │ ├── BasicInputPage.xaml.cs │ │ │ │ ├── ButtonPage.xaml │ │ │ │ ├── ButtonPage.xaml.cs │ │ │ │ ├── CheckBoxPage.xaml │ │ │ │ ├── CheckBoxPage.xaml.cs │ │ │ │ ├── ComboBoxPage.xaml │ │ │ │ ├── ComboBoxPage.xaml.cs │ │ │ │ ├── DropDownButtonPage.xaml │ │ │ │ ├── DropDownButtonPage.xaml.cs │ │ │ │ ├── HyperlinkButtonPage.xaml │ │ │ │ ├── HyperlinkButtonPage.xaml.cs │ │ │ │ ├── RadioButtonPage.xaml │ │ │ │ ├── RadioButtonPage.xaml.cs │ │ │ │ ├── RatingPage.xaml │ │ │ │ ├── RatingPage.xaml.cs │ │ │ │ ├── SliderPage.xaml │ │ │ │ ├── SliderPage.xaml.cs │ │ │ │ ├── SplitButtonPage.xaml │ │ │ │ ├── SplitButtonPage.xaml.cs │ │ │ │ ├── ThumbRatePage.xaml │ │ │ │ ├── ThumbRatePage.xaml.cs │ │ │ │ ├── ToggleButtonPage.xaml │ │ │ │ ├── ToggleButtonPage.xaml.cs │ │ │ │ ├── ToggleSwitchPage.xaml │ │ │ │ └── ToggleSwitchPage.xaml.cs │ │ │ ├── Collections │ │ │ │ ├── CollectionsPage.xaml │ │ │ │ ├── CollectionsPage.xaml.cs │ │ │ │ ├── DataGridPage.xaml │ │ │ │ ├── DataGridPage.xaml.cs │ │ │ │ ├── ListBoxPage.xaml │ │ │ │ ├── ListBoxPage.xaml.cs │ │ │ │ ├── ListViewPage.xaml │ │ │ │ ├── ListViewPage.xaml.cs │ │ │ │ ├── TreeListPage.xaml │ │ │ │ ├── TreeListPage.xaml.cs │ │ │ │ ├── TreeViewPage.xaml │ │ │ │ └── TreeViewPage.xaml.cs │ │ │ ├── DashboardPage.xaml │ │ │ ├── DashboardPage.xaml.cs │ │ │ ├── DateAndTime │ │ │ │ ├── CalendarDatePickerPage.xaml │ │ │ │ ├── CalendarDatePickerPage.xaml.cs │ │ │ │ ├── CalendarPage.xaml │ │ │ │ ├── CalendarPage.xaml.cs │ │ │ │ ├── DateAndTimePage.xaml │ │ │ │ ├── DateAndTimePage.xaml.cs │ │ │ │ ├── DatePickerPage.xaml │ │ │ │ ├── DatePickerPage.xaml.cs │ │ │ │ ├── TimePickerPage.xaml │ │ │ │ └── TimePickerPage.xaml.cs │ │ │ ├── DesignGuidance │ │ │ │ ├── ColorsPage.xaml │ │ │ │ ├── ColorsPage.xaml.cs │ │ │ │ ├── IconsPage.xaml │ │ │ │ ├── IconsPage.xaml.cs │ │ │ │ ├── TypographyPage.xaml │ │ │ │ └── TypographyPage.xaml.cs │ │ │ ├── DialogsAndFlyouts │ │ │ │ ├── ContentDialogPage.xaml │ │ │ │ ├── ContentDialogPage.xaml.cs │ │ │ │ ├── DialogsAndFlyoutsPage.xaml │ │ │ │ ├── DialogsAndFlyoutsPage.xaml.cs │ │ │ │ ├── FlyoutPage.xaml │ │ │ │ ├── FlyoutPage.xaml.cs │ │ │ │ ├── MessageBoxPage.xaml │ │ │ │ ├── MessageBoxPage.xaml.cs │ │ │ │ ├── SnackbarPage.xaml │ │ │ │ └── SnackbarPage.xaml.cs │ │ │ ├── Layout │ │ │ │ ├── CardActionPage.xaml │ │ │ │ ├── CardActionPage.xaml.cs │ │ │ │ ├── CardControlPage.xaml │ │ │ │ ├── CardControlPage.xaml.cs │ │ │ │ ├── ExpanderPage.xaml │ │ │ │ ├── ExpanderPage.xaml.cs │ │ │ │ ├── LayoutPage.xaml │ │ │ │ └── LayoutPage.xaml.cs │ │ │ ├── Media │ │ │ │ ├── CanvasPage.xaml │ │ │ │ ├── CanvasPage.xaml.cs │ │ │ │ ├── ImagePage.xaml │ │ │ │ ├── ImagePage.xaml.cs │ │ │ │ ├── MediaPage.xaml │ │ │ │ ├── MediaPage.xaml.cs │ │ │ │ ├── WebBrowserPage.xaml │ │ │ │ ├── WebBrowserPage.xaml.cs │ │ │ │ ├── WebViewPage.xaml │ │ │ │ └── WebViewPage.xaml.cs │ │ │ ├── Navigation │ │ │ │ ├── BreadcrumbBarPage.xaml │ │ │ │ ├── BreadcrumbBarPage.xaml.cs │ │ │ │ ├── MenuPage.xaml │ │ │ │ ├── MenuPage.xaml.cs │ │ │ │ ├── MultilevelNavigationPage.xaml │ │ │ │ ├── MultilevelNavigationPage.xaml.cs │ │ │ │ ├── NavigationPage.xaml │ │ │ │ ├── NavigationPage.xaml.cs │ │ │ │ ├── NavigationViewPage.xaml │ │ │ │ ├── NavigationViewPage.xaml.cs │ │ │ │ ├── TabControlPage.xaml │ │ │ │ ├── TabControlPage.xaml.cs │ │ │ │ ├── TabViewPage.xaml │ │ │ │ └── TabViewPage.xaml.cs │ │ │ ├── OpSystem │ │ │ │ ├── ClipboardPage.xaml │ │ │ │ ├── ClipboardPage.xaml.cs │ │ │ │ ├── FilePickerPage.xaml │ │ │ │ ├── FilePickerPage.xaml.cs │ │ │ │ ├── OpSystemPage.xaml │ │ │ │ └── OpSystemPage.xaml.cs │ │ │ ├── Samples │ │ │ │ ├── MultilevelNavigationSamplePage1.xaml │ │ │ │ ├── MultilevelNavigationSamplePage1.xaml.cs │ │ │ │ ├── MultilevelNavigationSamplePage2.xaml │ │ │ │ ├── MultilevelNavigationSamplePage2.xaml.cs │ │ │ │ ├── MultilevelNavigationSamplePage3.xaml │ │ │ │ ├── MultilevelNavigationSamplePage3.xaml.cs │ │ │ │ ├── SamplePage1.xaml │ │ │ │ ├── SamplePage1.xaml.cs │ │ │ │ ├── SamplePage2.xaml │ │ │ │ ├── SamplePage2.xaml.cs │ │ │ │ ├── SamplePage3.xaml │ │ │ │ └── SamplePage3.xaml.cs │ │ │ ├── SettingsPage.xaml │ │ │ ├── SettingsPage.xaml.cs │ │ │ ├── StatusAndInfo │ │ │ │ ├── InfoBadgePage.xaml │ │ │ │ ├── InfoBadgePage.xaml.cs │ │ │ │ ├── InfoBarPage.xaml │ │ │ │ ├── InfoBarPage.xaml.cs │ │ │ │ ├── ProgressBarPage.xaml │ │ │ │ ├── ProgressBarPage.xaml.cs │ │ │ │ ├── ProgressRingPage.xaml │ │ │ │ ├── ProgressRingPage.xaml.cs │ │ │ │ ├── StatusAndInfoPage.xaml │ │ │ │ ├── StatusAndInfoPage.xaml.cs │ │ │ │ ├── ToolTipPage.xaml │ │ │ │ └── ToolTipPage.xaml.cs │ │ │ ├── Text │ │ │ │ ├── AutoSuggestBoxPage.xaml │ │ │ │ ├── AutoSuggestBoxPage.xaml.cs │ │ │ │ ├── LabelPage.xaml │ │ │ │ ├── LabelPage.xaml.cs │ │ │ │ ├── NumberBoxPage.xaml │ │ │ │ ├── NumberBoxPage.xaml.cs │ │ │ │ ├── PasswordBoxPage.xaml │ │ │ │ ├── PasswordBoxPage.xaml.cs │ │ │ │ ├── RichTextBoxPage.xaml │ │ │ │ ├── RichTextBoxPage.xaml.cs │ │ │ │ ├── TextBlockPage.xaml │ │ │ │ ├── TextBlockPage.xaml.cs │ │ │ │ ├── TextBoxPage.xaml │ │ │ │ ├── TextBoxPage.xaml.cs │ │ │ │ ├── TextPage.xaml │ │ │ │ └── TextPage.xaml.cs │ │ │ └── Windows │ │ │ │ ├── WindowsPage.xaml │ │ │ │ └── WindowsPage.xaml.cs │ │ └── Windows │ │ │ ├── EditorWindow.xaml │ │ │ ├── EditorWindow.xaml.cs │ │ │ ├── MainWindow.xaml │ │ │ ├── MainWindow.xaml.cs │ │ │ ├── MonacoWindow.xaml │ │ │ ├── MonacoWindow.xaml.cs │ │ │ ├── SandboxWindow.xaml │ │ │ └── SandboxWindow.xaml.cs │ ├── Wpf.Ui.Gallery.csproj │ ├── app.manifest │ └── wpfui.ico ├── Wpf.Ui.SyntaxHighlight │ ├── Controls │ │ ├── CodeBlock.bmp │ │ ├── CodeBlock.cs │ │ └── CodeBlock.xaml │ ├── Fonts │ │ └── FiraCode-Regular.ttf │ ├── Highlighter.cs │ ├── License - Fira Code.txt │ ├── Markup │ │ └── SyntaxHighlightDictionary.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── SyntaxHighlight.xaml │ ├── SyntaxLanguage.cs │ └── Wpf.Ui.SyntaxHighlight.csproj ├── Wpf.Ui.ToastNotifications │ ├── GlobalUsings.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Toast.cs │ ├── VisualStudioToolsManifest.xml │ └── Wpf.Ui.ToastNotifications.csproj ├── Wpf.Ui.Tray │ ├── Controls │ │ ├── NotifyIcon.bmp │ │ └── NotifyIcon.cs │ ├── GlobalUsings.cs │ ├── Hicon.cs │ ├── INotifyIcon.cs │ ├── INotifyIconService.cs │ ├── Internal │ │ └── InternalNotifyIconManager.cs │ ├── Interop │ │ ├── Libraries.cs │ │ ├── Shell32.cs │ │ └── User32.cs │ ├── NotifyIconEventHandler.cs │ ├── NotifyIconService.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── RoutedNotifyIconEvent.cs │ ├── TrayData.cs │ ├── TrayHandler.cs │ ├── TrayManager.cs │ ├── VisualStudioToolsManifest.xml │ └── Wpf.Ui.Tray.csproj └── Wpf.Ui │ ├── Animations │ ├── Transition.cs │ └── TransitionAnimationProvider.cs │ ├── Appearance │ ├── ApplicationAccentColorManager.cs │ ├── ApplicationTheme.cs │ ├── ApplicationThemeManager.cs │ ├── ObservedWindow.cs │ ├── ResourceDictionaryManager.cs │ ├── SystemTheme.cs │ ├── SystemThemeManager.cs │ ├── SystemThemeWatcher.cs │ ├── ThemeChangedEvent.cs │ └── WindowBackgroundManager.cs │ ├── AutomationPeers │ └── CardControlAutomationPeer.cs │ ├── ContentDialogService.cs │ ├── Controls │ ├── AccessText │ │ └── AccessText.xaml │ ├── Anchor │ │ ├── Anchor.bmp │ │ ├── Anchor.cs │ │ └── Anchor.xaml │ ├── Arc │ │ ├── Arc.bmp │ │ └── Arc.cs │ ├── AutoSuggestBox │ │ ├── AutoSuggestBox.bmp │ │ ├── AutoSuggestBox.cs │ │ ├── AutoSuggestBox.xaml │ │ ├── AutoSuggestBoxQuerySubmittedEventArgs.cs │ │ ├── AutoSuggestBoxSuggestionChosenEventArgs.cs │ │ ├── AutoSuggestBoxTextChangedEventArgs.cs │ │ └── AutoSuggestionBoxTextChangeReason.cs │ ├── Badge │ │ ├── Badge.cs │ │ └── Badge.xaml │ ├── BreadcrumbBar │ │ ├── BreadcrumbBar.cs │ │ ├── BreadcrumbBar.xaml │ │ ├── BreadcrumbBarItem.cs │ │ └── BreadcrumbBarItemClickedEventArgs.cs │ ├── Button │ │ ├── Badge.bmp │ │ ├── Button.cs │ │ └── Button.xaml │ ├── Calendar │ │ └── Calendar.xaml │ ├── CalendarDatePicker │ │ ├── CalendarDatePicker.cs │ │ └── CalendarDatePicker.xaml │ ├── Card │ │ ├── Card.bmp │ │ ├── Card.cs │ │ └── Card.xaml │ ├── CardAction │ │ ├── CardAction.bmp │ │ ├── CardAction.cs │ │ ├── CardAction.xaml │ │ └── CardActionAutomationPeer.cs │ ├── CardColor │ │ ├── CardColor.cs │ │ └── CardColor.xaml │ ├── CardControl │ │ ├── CardControl.cs │ │ └── CardControl.xaml │ ├── CardExpander │ │ ├── CardExpander.bmp │ │ ├── CardExpander.cs │ │ └── CardExpander.xaml │ ├── CheckBox │ │ └── CheckBox.xaml │ ├── ClientAreaBorder │ │ └── ClientAreaBorder.cs │ ├── ColorPicker │ │ ├── ColorPicker.cs │ │ └── ColorPicker.xaml │ ├── ComboBox │ │ └── ComboBox.xaml │ ├── ContentDialog │ │ ├── ContentDialog.cs │ │ ├── ContentDialog.xaml │ │ ├── ContentDialogButton.cs │ │ ├── ContentDialogResult.cs │ │ └── EventArgs │ │ │ ├── ContentDialogButtonClickEventArgs.cs │ │ │ ├── ContentDialogClosedEventArgs.cs │ │ │ └── ContentDialogClosingEventArgs.cs │ ├── ContextMenu │ │ ├── ContextMenu.xaml │ │ ├── ContextMenuLoader.xaml │ │ └── ContextMenuLoader.xaml.cs │ ├── ControlAppearance.cs │ ├── ControlsServices.cs │ ├── DataGrid │ │ ├── DataGrid.cs │ │ └── DataGrid.xaml │ ├── DatePicker │ │ └── DatePicker.xaml │ ├── DateTimeHelper.cs │ ├── DropDownButton │ │ ├── DropDownButton.cs │ │ └── DropDownButton.xaml │ ├── DynamicScrollBar │ │ ├── DynamicScrollBar.bmp │ │ ├── DynamicScrollBar.cs │ │ └── DynamicScrollBar.xaml │ ├── DynamicScrollViewer │ │ ├── DynamicScrollViewer.bmp │ │ ├── DynamicScrollViewer.cs │ │ └── DynamicScrollViewer.xaml │ ├── ElementPlacement.cs │ ├── EventIdentifier.cs │ ├── Expander │ │ └── Expander.xaml │ ├── FluentWindow │ │ ├── FluentWindow.bmp │ │ ├── FluentWindow.cs │ │ └── FluentWindow.xaml │ ├── Flyout │ │ ├── Flyout.cs │ │ └── Flyout.xaml │ ├── FontTypography.cs │ ├── Frame │ │ └── Frame.xaml │ ├── GridView │ │ ├── GridView.cs │ │ ├── GridViewColumn.cs │ │ ├── GridViewColumnHeader.xaml │ │ ├── GridViewHeaderRowIndicator.xaml │ │ ├── GridViewHeaderRowPresenter.cs │ │ └── GridViewRowPresenter.cs │ ├── HyperlinkButton │ │ ├── HyperlinkButton.cs │ │ └── HyperlinkButton.xaml │ ├── IAppearanceControl.cs │ ├── IDpiAwareControl.cs │ ├── IIconControl.cs │ ├── IThemeControl.cs │ ├── IconElement │ │ ├── FontIcon.bmp │ │ ├── FontIcon.cs │ │ ├── IconElement.cs │ │ ├── IconElementConverter.cs │ │ ├── IconSourceElement.cs │ │ ├── ImageIcon.cs │ │ ├── SymbolIcon.bmp │ │ └── SymbolIcon.cs │ ├── IconSource │ │ ├── FontIconSource.cs │ │ ├── IconSource.cs │ │ └── SymbolIconSource.cs │ ├── Image │ │ ├── Image.cs │ │ └── Image.xaml │ ├── InfoBadge │ │ ├── InfoBadge.cs │ │ ├── InfoBadge.xaml │ │ └── InfoBadgeSeverity.cs │ ├── InfoBar │ │ ├── InfoBar.cs │ │ ├── InfoBar.xaml │ │ └── InfoBarSeverity.cs │ ├── ItemRange.cs │ ├── ItemsControl │ │ └── ItemsControl.xaml │ ├── Label │ │ └── Label.xaml │ ├── ListBox │ │ ├── ListBox.xaml │ │ └── ListBoxItem.xaml │ ├── ListView │ │ ├── ListView.cs │ │ ├── ListView.xaml │ │ ├── ListViewItem.cs │ │ ├── ListViewItem.xaml │ │ └── ListViewViewState.cs │ ├── LoadingScreen │ │ ├── LoadingScreen.cs │ │ └── LoadingScreen.xaml │ ├── Menu │ │ ├── Menu.xaml │ │ ├── MenuItem.cs │ │ ├── MenuItem.xaml │ │ ├── MenuLoader.xaml │ │ └── MenuLoader.xaml.cs │ ├── MessageBox │ │ ├── MessageBox.bmp │ │ ├── MessageBox.cs │ │ ├── MessageBox.xaml │ │ ├── MessageBoxButton.cs │ │ └── MessageBoxResult.cs │ ├── NavigationView │ │ ├── INavigationView.cs │ │ ├── INavigationViewItem.cs │ │ ├── NavigatedEventArgs.cs │ │ ├── NavigatingCancelEventArgs.cs │ │ ├── NavigationCache.cs │ │ ├── NavigationCacheMode.cs │ │ ├── NavigationLeftFluent.xaml │ │ ├── NavigationView.AttachedProperties.cs │ │ ├── NavigationView.Base.cs │ │ ├── NavigationView.Events.cs │ │ ├── NavigationView.Navigation.cs │ │ ├── NavigationView.Properties.cs │ │ ├── NavigationView.TemplateParts.cs │ │ ├── NavigationView.bmp │ │ ├── NavigationView.xaml │ │ ├── NavigationViewActivator.cs │ │ ├── NavigationViewBackButtonVisible.cs │ │ ├── NavigationViewBasePaneButtonStyle.xaml │ │ ├── NavigationViewBottom.xaml │ │ ├── NavigationViewBreadcrumbItem.cs │ │ ├── NavigationViewBreadcrumbItem.xaml │ │ ├── NavigationViewCompact.xaml │ │ ├── NavigationViewConstants.xaml │ │ ├── NavigationViewContentPresenter.cs │ │ ├── NavigationViewContentPresenter.xaml │ │ ├── NavigationViewItem.bmp │ │ ├── NavigationViewItem.cs │ │ ├── NavigationViewItemAutomationPeer.cs │ │ ├── NavigationViewItemDefaultStyle.xaml │ │ ├── NavigationViewItemHeader.cs │ │ ├── NavigationViewItemHeader.xaml │ │ ├── NavigationViewItemSeparator.cs │ │ ├── NavigationViewItemSeparator.xaml │ │ ├── NavigationViewLeftMinimalCompact.xaml │ │ ├── NavigationViewPaneDisplayMode.cs │ │ └── NavigationViewTop.xaml │ ├── NumberBox │ │ ├── INumberFormatter.cs │ │ ├── INumberParser.cs │ │ ├── NumberBox.bmp │ │ ├── NumberBox.cs │ │ ├── NumberBox.xaml │ │ ├── NumberBoxSpinButtonPlacementMode.cs │ │ ├── NumberBoxValidationMode.cs │ │ ├── NumberBoxValueChangedEventArgs.cs │ │ └── ValidateNumberFormatter.cs │ ├── Page │ │ └── Page.xaml │ ├── PassiveScrollViewer.cs │ ├── PasswordBox │ │ ├── PasswordBox.cs │ │ ├── PasswordBox.xaml │ │ └── PasswordHelper.cs │ ├── ProgressBar │ │ └── ProgressBar.xaml │ ├── ProgressRing │ │ ├── ProgressRing.bmp │ │ ├── ProgressRing.cs │ │ └── ProgressRing.xaml │ ├── RadioButton │ │ └── RadioButton.xaml │ ├── RatingControl │ │ ├── RatingControl.bmp │ │ ├── RatingControl.cs │ │ └── RatingControl.xaml │ ├── RichTextBox │ │ ├── RichTextBox.cs │ │ └── RichTextBox.xaml │ ├── ScrollBar │ │ └── ScrollBar.xaml │ ├── ScrollDirection.cs │ ├── ScrollViewer │ │ └── ScrollViewer.xaml │ ├── Separator │ │ └── Separator.xaml │ ├── Slider │ │ └── Slider.xaml │ ├── Snackbar │ │ ├── Snackbar.cs │ │ ├── Snackbar.xaml │ │ └── SnackbarPresenter.cs │ ├── SpacingMode.cs │ ├── SplitButton │ │ ├── SplitButton.cs │ │ └── SplitButton.xaml │ ├── StatusBar │ │ └── StatusBar.xaml │ ├── SymbolFilled.cs │ ├── SymbolGlyph.cs │ ├── SymbolRegular.cs │ ├── TabControl │ │ └── TabControl.xaml │ ├── TabView │ │ ├── TabView.cs │ │ └── TabViewItem.cs │ ├── TextBlock │ │ ├── TextBlock.cs │ │ └── TextBlock.xaml │ ├── TextBox │ │ ├── TextBox.cs │ │ └── TextBox.xaml │ ├── TextColor.cs │ ├── ThumbRate │ │ ├── ThumbRate.bmp │ │ ├── ThumbRate.cs │ │ ├── ThumbRate.xaml │ │ └── ThumbRateState.cs │ ├── TimePicker │ │ ├── ClockIdentifier.cs │ │ ├── TimePicker.cs │ │ └── TimePicker.xaml │ ├── TitleBar │ │ ├── TitleBar.cs │ │ ├── TitleBar.xaml │ │ ├── TitleBarButton.cs │ │ └── TitleBarButtonType.cs │ ├── ToggleButton │ │ └── ToggleButton.xaml │ ├── ToggleSwitch │ │ ├── ToggleSwitch.bmp │ │ ├── ToggleSwitch.cs │ │ └── ToggleSwitch.xaml │ ├── ToolBar │ │ └── ToolBar.xaml │ ├── ToolTip │ │ └── ToolTip.xaml │ ├── TreeGrid │ │ ├── TreeGrid.cs │ │ ├── TreeGrid.xaml │ │ ├── TreeGridHeader.cs │ │ └── TreeGridItem.cs │ ├── TreeView │ │ ├── TreeView.xaml │ │ ├── TreeViewItem.cs │ │ └── TreeViewItem.xaml │ ├── TypedEventHandler.cs │ ├── VirtualizingGridView │ │ ├── VirtualizingGridView.cs │ │ └── VirtualizingGridView.xaml │ ├── VirtualizingItemsControl │ │ ├── VirtualizingItemsControl.bmp │ │ ├── VirtualizingItemsControl.cs │ │ └── VirtualizingItemsControl.xaml │ ├── VirtualizingUniformGrid │ │ └── VirtualizingUniformGrid.cs │ ├── VirtualizingWrapPanel │ │ ├── VirtualizingPanelBase.cs │ │ ├── VirtualizingWrapPanel.bmp │ │ ├── VirtualizingWrapPanel.cs │ │ └── VirtualizingWrapPanel.xaml │ └── Window │ │ ├── Window.xaml │ │ ├── WindowBackdrop.cs │ │ ├── WindowBackdropType.cs │ │ └── WindowCornerPreference.cs │ ├── Converters │ ├── AnimationFactorToValueConverter.cs │ ├── BackButtonVisibilityToVisibilityConverter.cs │ ├── BoolToVisibilityConverter.cs │ ├── BrushToColorConverter.cs │ ├── ContentDialogButtonEnumToBoolConverter.cs │ ├── EnumToBoolConverter.cs │ ├── FallbackBrushConverter.cs │ ├── IconSourceElementConverter.cs │ ├── LeftSplitCornerRadiusConverter.cs │ ├── LeftSplitThicknessConverter.cs │ ├── NullToVisibilityConverter.cs │ ├── ProgressThicknessConverter.cs │ ├── RightSplitCornerRadiusConverter.cs │ ├── RightSplitThicknessConverter.cs │ └── TextToAsteriskConverter.cs │ ├── Designer │ └── DesignerHelper.cs │ ├── Extensions │ ├── ColorExtensions.cs │ ├── ContentDialogServiceExtensions.cs │ ├── ContextMenuExtensions.cs │ ├── DateTimeExtensions.cs │ ├── FrameExtensions.cs │ ├── NavigationServiceExtensions.cs │ ├── SnackbarServiceExtensions.cs │ ├── StringExtensions.cs │ ├── SymbolExtensions.cs │ ├── TextBlockFontTypographyExtensions.cs │ ├── TextColorExtensions.cs │ ├── UiElementExtensions.cs │ └── UriExtensions.cs │ ├── GlobalUsings.cs │ ├── Hardware │ ├── DisplayDpi.cs │ ├── DpiHelper.cs │ ├── HardwareAcceleration.cs │ └── RenderingTier.cs │ ├── IContentDialogService.cs │ ├── INavigationService.cs │ ├── INavigationWindow.cs │ ├── ISnackbarService.cs │ ├── ITaskBarService.cs │ ├── IThemeService.cs │ ├── Input │ ├── IRelayCommand.cs │ ├── IRelayCommand{T}.cs │ └── RelayCommand{T}.cs │ ├── Interop │ ├── Dwmapi.cs │ ├── HRESULT.cs │ ├── Kernel32.cs │ ├── Libraries.cs │ ├── ShObjIdl.cs │ ├── Shell32.cs │ ├── UnsafeNativeMethods.cs │ ├── UnsafeReflection.cs │ ├── User32.cs │ ├── UxTheme.cs │ └── WinDef │ │ ├── POINT.cs │ │ ├── POINTL.cs │ │ ├── RECT.cs │ │ ├── RECTL.cs │ │ └── SIZE.cs │ ├── Markup │ ├── ControlsDictionary.cs │ ├── Design.cs │ ├── FontIconExtension.cs │ ├── ImageIconExtension.cs │ ├── SymbolIconExtension.cs │ ├── ThemeResource.cs │ ├── ThemeResourceExtension.cs │ └── ThemesDictionary.cs │ ├── NavigationService.cs │ ├── Properties │ └── AssemblyInfo.cs │ ├── Resources │ ├── Accent.xaml │ ├── DefaultContextMenu.xaml │ ├── DefaultFocusVisualStyle.xaml │ ├── DefaultTextBoxScrollViewerStyle.xaml │ ├── Fonts.xaml │ ├── Fonts │ │ ├── FluentSystemIcons-Filled.ttf │ │ └── FluentSystemIcons-Regular.ttf │ ├── Palette.xaml │ ├── StaticColors.xaml │ ├── Theme │ │ ├── Dark.xaml │ │ ├── HC1.xaml │ │ ├── HC2.xaml │ │ ├── HCBlack.xaml │ │ ├── HCWhite.xaml │ │ └── Light.xaml │ ├── Typography.xaml │ ├── Variables.xaml │ └── Wpf.Ui.xaml │ ├── SimpleContentDialogCreateOptions.cs │ ├── SnackbarService.cs │ ├── TaskBarService.cs │ ├── Taskbar │ ├── TaskbarProgress.cs │ └── TaskbarProgressState.cs │ ├── ThemeService.cs │ ├── UiApplication.cs │ ├── UiAssembly.cs │ ├── VisualStudioToolsManifest.xml │ ├── Win32 │ └── Utilities.cs │ └── Wpf.Ui.csproj └── tests ├── Wpf.Ui.Gallery.UnitTests ├── UnitTest1.cs ├── Usings.cs └── Wpf.Ui.Gallery.UnitTests.csproj └── Wpf.Ui.UnitTests ├── Animations └── TransitionAnimationProviderTests.cs ├── Extensions └── SymbolExtensionsTests.cs ├── Usings.cs └── Wpf.Ui.UnitTests.csproj /.csharpierrc: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 110, 3 | "useTabs": false, 4 | "tabWidth": 4, 5 | "preprocessorSymbolSets": [ 6 | "", 7 | "DEBUG", 8 | "DEBUG,CODE_STYLE" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /.devcontainer/devcontainer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "WPF UI Docs Dev Container", 3 | "image": "mcr.microsoft.com/dotnet/sdk:9.0", 4 | "features": { 5 | "ghcr.io/devcontainers/features/node:1": { 6 | "version": "20" 7 | } 8 | }, 9 | "postCreateCommand": "./.devcontainer/post-create.sh", 10 | "forwardPorts": [ 11 | 8080 12 | ], 13 | "remoteEnv": { 14 | "NODE_ENV": "development" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /.devcontainer/post-create.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | apt-get update 4 | apt-get install -y openssh-client 5 | 6 | cd docs/templates 7 | npm ci 8 | npm run build 9 | dotnet tool install -g docfx 10 | 11 | export PATH="$PATH:/root/.dotnet/tools" 12 | 13 | cd ../ 14 | docfx docfx.json --serve 15 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: [pomianowski] 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | contact_links: 3 | - name: Documentation 4 | url: https://wpfui.lepo.co/documentation/ 5 | about: Find out how WPF UI works. 6 | - name: Tutorial 7 | url: https://wpfui.lepo.co/documentation/tutorial 8 | about: Having trouble with the basics? Check out the tutorial! 9 | - name: lepo.co contact 10 | url: https://lepo.co/contact 11 | about: Do you want to establish business contact? Let us know. -------------------------------------------------------------------------------- /.github/assets/microsoft-badge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/.github/assets/microsoft-badge.png -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates 5 | 6 | version: 2 7 | 8 | updates: 9 | # Maintain dependencies for GitHub Actions 10 | - package-ecosystem: "github-actions" 11 | target-branch: "development" 12 | directory: "/" 13 | schedule: 14 | interval: "daily" 15 | labels: 16 | - "Actions" 17 | # Maintain dependencies for nuget 18 | - package-ecosystem: "nuget" 19 | target-branch: "development" 20 | directory: "src" 21 | schedule: 22 | interval: "daily" 23 | labels: 24 | - "NuGet" 25 | -------------------------------------------------------------------------------- /.github/policies/cla.yml: -------------------------------------------------------------------------------- 1 | name: Contributor License Agreement Policy 2 | description: CLA policy file 3 | 4 | resource: repository 5 | 6 | configuration: 7 | cla: 8 | content: https://raw.githubusercontent.com/lepoco/.github/main/CLA/lepoco.yml 9 | minimalChangeRequired: 10 | files: 1 11 | codeLines: 1 12 | bypassUsers: 13 | - azclibot 14 | - azure-pipelines[bot] 15 | - azure-pipelines-bot 16 | - azure-powershell-bot 17 | - azuresdkciprbot 18 | - dependabot[bot] 19 | - dependabot-preview[bot] 20 | - dotnet-bot 21 | - dotnet-corert-bot 22 | - dotnet-docker-bot 23 | - dotnet-maestro[bot] 24 | - dotnet-maestro-bot 25 | - dotnet-winget-bot 26 | -------------------------------------------------------------------------------- /.github/policies/platformcontext.yml: -------------------------------------------------------------------------------- 1 | name: platform_context 2 | description: The context for GitOps platform, this will drive GitOps specific policies 3 | owner: 4 | resource: repository 5 | where: 6 | configuration: 7 | platformContext: 8 | active: true 9 | onFailure: 10 | onSuccess: 11 | -------------------------------------------------------------------------------- /.github/workflows/top-issues-dashboard.yml: -------------------------------------------------------------------------------- 1 | name: wpf-ui-top-issues-dashboard 2 | on: 3 | schedule: 4 | - cron: '0 0 */1 * *' 5 | 6 | jobs: 7 | ShowAndLabelTopIssues: 8 | name: Display and label top issues. 9 | runs-on: ubuntu-latest 10 | steps: 11 | - name: Top Issues action 12 | uses: rickstaa/top-issues-action@v1.3.101 13 | env: 14 | github_token: ${{ secrets.GITHUB_TOKEN }} 15 | with: 16 | top_list_size: 10 17 | label: true 18 | dashboard: true 19 | dashboard_show_total_reactions: true 20 | top_issues: true 21 | top_bugs: true 22 | top_features: true 23 | feature_label: feature 24 | top_pull_requests: true 25 | -------------------------------------------------------------------------------- /.github/workflows/wpf-ui-labeler.yml: -------------------------------------------------------------------------------- 1 | name: wpf-ui-labeler 2 | 3 | on: 4 | - pull_request_target 5 | 6 | jobs: 7 | triage: 8 | permissions: 9 | contents: read 10 | pull-requests: write 11 | runs-on: ubuntu-latest 12 | steps: 13 | - uses: actions/labeler@v5 14 | with: 15 | repo-token: "${{ secrets.GITHUB_TOKEN }}" 16 | -------------------------------------------------------------------------------- /.github/workflows/wpf-ui-lock.yml: -------------------------------------------------------------------------------- 1 | name: wpf-ui-lock 2 | 3 | on: 4 | schedule: 5 | - cron: '0 0 * * 0' 6 | workflow_dispatch: 7 | 8 | permissions: 9 | issues: write 10 | pull-requests: write 11 | discussions: write 12 | 13 | concurrency: 14 | group: lock-threads 15 | 16 | jobs: 17 | action: 18 | runs-on: ubuntu-latest 19 | steps: 20 | - uses: dessant/lock-threads@v5 21 | -------------------------------------------------------------------------------- /.github/workflows/wpf-ui-pr-validator.yaml: -------------------------------------------------------------------------------- 1 | name: wpf-ui-pr-validator 2 | 3 | on: 4 | pull_request: 5 | branches: [main] 6 | 7 | workflow_dispatch: 8 | 9 | jobs: 10 | build: 11 | runs-on: windows-latest 12 | steps: 13 | - uses: actions/checkout@v4 14 | - uses: microsoft/setup-msbuild@v2 15 | with: 16 | msbuild-architecture: x64 17 | - uses: nuget/setup-nuget@v2 18 | with: 19 | nuget-api-key: ${{ secrets.NUGET_API_KEY }} 20 | - name: Setup .NET Core SDK 9.x 21 | uses: actions/setup-dotnet@v4 22 | with: 23 | dotnet-version: 9.x 24 | 25 | - name: Install dependencies 26 | run: dotnet restore 27 | 28 | - name: Build 29 | run: dotnet build src\Wpf.Ui.Gallery\Wpf.Ui.Gallery.csproj --configuration Release --no-restore 30 | -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | wpfui.lepo.co -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- 1 | # Lines starting with '#' are comments. 2 | # Each line is a file pattern followed by one or more owners. 3 | 4 | # These owners will be the default owners for everything in the repo, 5 | # and will automatically be added as reviewers to all pull requests. 6 | * @pomianowski 7 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contribution Guidelines 2 | 3 | and as always, todo 4 | 5 | ## Prerequisites 6 | 7 | ## Code 8 | 9 | ### Code style 10 | 11 | ## Other general information 12 | 13 | ## Acknowledgement 14 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Supported Versions 4 | 5 | At the moment, the only supported version of the **WPF UI** is the newest one. You can find it on _NuGet_. 6 | https://www.nuget.org/packages/wpf-ui/ 7 | 8 | ## Reporting a Vulnerability 9 | 10 | Security issues and bugs should be reported privately, by emailing support (at) lepo.co 11 | lepo.co does not offer Bug Bounty for the **WPF UI** library. 12 | 13 | Please do not open issues for anything you think might have a security implication. 14 | -------------------------------------------------------------------------------- /Wpf.Ui.Gallery.slnf: -------------------------------------------------------------------------------- 1 | { 2 | "solution": { 3 | "path": "Wpf.Ui.sln", 4 | "projects": [ 5 | "src\\Wpf.Ui.Gallery.Package\\Wpf.Ui.Gallery.Package.wapproj", 6 | "src\\Wpf.Ui.Gallery\\Wpf.Ui.Gallery.csproj", 7 | "src\\Wpf.Ui.SyntaxHighlight\\Wpf.Ui.SyntaxHighlight.csproj", 8 | "src\\Wpf.Ui.ToastNotifications\\Wpf.Ui.ToastNotifications.csproj", 9 | "src\\Wpf.Ui.Tray\\Wpf.Ui.Tray.csproj", 10 | "src\\Wpf.Ui\\Wpf.Ui.csproj" 11 | ] 12 | } 13 | } -------------------------------------------------------------------------------- /Wpf.Ui.Library.slnf: -------------------------------------------------------------------------------- 1 | { 2 | "solution": { 3 | "path": "Wpf.Ui.sln", 4 | "projects": [ 5 | "src\\Wpf.Ui.ToastNotifications\\Wpf.Ui.ToastNotifications.csproj", 6 | "src\\Wpf.Ui.Tray\\Wpf.Ui.Tray.csproj", 7 | "src\\Wpf.Ui\\Wpf.Ui.csproj" 8 | ] 9 | } 10 | } -------------------------------------------------------------------------------- /branding/geometric_splash.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/branding/geometric_splash.psd -------------------------------------------------------------------------------- /branding/microsoft-fluent-resources.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/branding/microsoft-fluent-resources.psd -------------------------------------------------------------------------------- /branding/wpfui.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/branding/wpfui.ico -------------------------------------------------------------------------------- /branding/wpfui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/branding/wpfui.png -------------------------------------------------------------------------------- /branding/wpfui.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/branding/wpfui.psd -------------------------------------------------------------------------------- /branding/wpfui_full.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/branding/wpfui_full.png -------------------------------------------------------------------------------- /build.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0build.ps1"""" 3 | @REM powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0scripts\build_extension.ps1"""" 4 | exit /b %ErrorLevel% 5 | -------------------------------------------------------------------------------- /build/nuget.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/build/nuget.png -------------------------------------------------------------------------------- /docs/.gitignore: -------------------------------------------------------------------------------- 1 | ############### 2 | # folder # 3 | ############### 4 | /**/DROP/ 5 | /**/TEMP/ 6 | /**/packages/ 7 | /**/bin/ 8 | /**/obj/ 9 | _site 10 | public 11 | /src/ 12 | -------------------------------------------------------------------------------- /docs/documentation/.gitignore: -------------------------------------------------------------------------------- 1 | ############### 2 | # temp file # 3 | ############### 4 | *.yml 5 | .manifest 6 | -------------------------------------------------------------------------------- /docs/documentation/accent.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/docs/documentation/accent.md -------------------------------------------------------------------------------- /docs/documentation/fonticon.md: -------------------------------------------------------------------------------- 1 | # FontIcon 2 | 3 | `FontIcon` is a control responsible for rendering icons based on the provided font. 4 | 5 | ### Implementation 6 | 7 | ```csharp 8 | class Wpf.Ui.Controls.FontIcon 9 | ``` 10 | 11 | ## Exposes 12 | 13 | ```csharp 14 | // Gets or sets displayed glyph 15 | FontIcon.Glyph = '\uE00B'; 16 | ``` 17 | 18 | ```csharp 19 | // Gets or sets used font family 20 | FontIcon.FontFamily = "Segoe Fluent Icons"; 21 | ``` 22 | 23 | ```csharp 24 | // Icon foreground 25 | FontIcon.Foreground = Brushes.White; 26 | ``` 27 | 28 | ```csharp 29 | // Icon size 30 | FontIcon.FontSize = 16; 31 | ``` 32 | 33 | ### How to use 34 | 35 | ```xml 36 | 41 | ``` 42 | -------------------------------------------------------------------------------- /docs/documentation/gallery-editor.md: -------------------------------------------------------------------------------- 1 | # WPF UI - Editor 2 | -------------------------------------------------------------------------------- /docs/documentation/gallery-monaco-editor.md: -------------------------------------------------------------------------------- 1 | # WPF UI - Monaco Editor 2 | -------------------------------------------------------------------------------- /docs/documentation/gallery.md: -------------------------------------------------------------------------------- 1 | # WPF UI Gallery 2 | 3 | **WPF UI Gallery** is a free application available in the _Microsoft Store_, with which you can test all functionalities. 4 | https://apps.microsoft.com/store/detail/wpf-ui/9N9LKV8R9VGM 5 | 6 | ```powershell 7 | $ winget install 'WPF UI' 8 | ``` 9 | -------------------------------------------------------------------------------- /docs/documentation/menu.md: -------------------------------------------------------------------------------- 1 | # Menu 2 | -------------------------------------------------------------------------------- /docs/documentation/releases.md: -------------------------------------------------------------------------------- 1 | # WPF UI Releases 2 | 3 | | Version | Is supported | 4 | | ------- | ------------ | 5 | | 3.0.0 | Yes | 6 | -------------------------------------------------------------------------------- /docs/documentation/symbolicon.md: -------------------------------------------------------------------------------- 1 | # SymbolIcon 2 | 3 | `SymbolIcon` is a control responsible for rendering icons. 4 | 5 | ### Implementation 6 | 7 | ```csharp 8 | class Wpf.Ui.Controls.SymbolIcon 9 | ``` 10 | 11 | ## Exposes 12 | 13 | ```csharp 14 | // Gets or sets displayed symbol 15 | SymbolIcon.Symbol = SymbolRegular.Empty; 16 | ``` 17 | 18 | ```csharp 19 | // Defines whether or not we should use the SymbolFilled 20 | SymbolIcon.Filled = false; 21 | ``` 22 | 23 | ```csharp 24 | // Icon foreground 25 | SymbolIcon.Foreground = Brushes.White; 26 | ``` 27 | 28 | ```csharp 29 | // Icon size 30 | SymbolIcon.FontSize = 16; 31 | ``` 32 | 33 | ### How to use 34 | 35 | ```xml 36 | 41 | ``` 42 | -------------------------------------------------------------------------------- /docs/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/docs/images/favicon.ico -------------------------------------------------------------------------------- /docs/images/github.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /docs/images/icon-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/docs/images/icon-192x192.png -------------------------------------------------------------------------------- /docs/images/icon-256x256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/docs/images/icon-256x256.png -------------------------------------------------------------------------------- /docs/images/icon-384x384.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/docs/images/icon-384x384.png -------------------------------------------------------------------------------- /docs/images/icon-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/docs/images/icon-512x512.png -------------------------------------------------------------------------------- /docs/images/ms-download.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/docs/images/ms-download.png -------------------------------------------------------------------------------- /docs/images/wpfui-gallery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/docs/images/wpfui-gallery.png -------------------------------------------------------------------------------- /docs/images/wpfui-monaco-editor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/docs/images/wpfui-monaco-editor.png -------------------------------------------------------------------------------- /docs/images/wpfui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/docs/images/wpfui.png -------------------------------------------------------------------------------- /docs/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /docs/templates/.eslintrc.js: -------------------------------------------------------------------------------- 1 | // Licensed to the .NET Foundation under one or more agreements. 2 | // The .NET Foundation licenses this file to you under the MIT license. 3 | 4 | module.exports = { 5 | env: { 6 | browser: true 7 | }, 8 | ignorePatterns: ['**/*.js'], 9 | extends: ['standard', 'eslint:recommended', 'plugin:@typescript-eslint/recommended'], 10 | parser: '@typescript-eslint/parser', 11 | plugins: ['@typescript-eslint'], 12 | root: true, 13 | rules: { 14 | 'space-before-function-paren': ['warn', 'never'], 15 | } 16 | }; 17 | -------------------------------------------------------------------------------- /docs/templates/.gitignore: -------------------------------------------------------------------------------- 1 | *.min.js 2 | *.min.css 3 | *.map 4 | *.woff 5 | *.woff2 6 | 7 | glyphicons-*.* 8 | 9 | dist 10 | fonts 11 | node_modules 12 | -------------------------------------------------------------------------------- /docs/templates/.stylelintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "stylelint-config-standard-scss", 3 | "ignoreFiles": [ 4 | "**/*.ts" 5 | ], 6 | "rules": { 7 | "selector-class-pattern": null, 8 | "font-family-no-missing-generic-family-keyword": [ true, { 9 | "ignoreFontFamilies": [ 10 | "bootstrap-icons" 11 | ] 12 | }] 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /docs/templates/README.md: -------------------------------------------------------------------------------- 1 | This folder contains the source code for website themes used by docfx.exe. -------------------------------------------------------------------------------- /docs/templates/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "removeComments": true, 4 | "resolveJsonModule": true, 5 | "esModuleInterop": true 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /docs/templates/wpfui/partials/class.memberpage.tmpl.partial: -------------------------------------------------------------------------------- 1 | {{!Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license.}} 2 | 3 | {{>partials/class.header}} 4 | 5 | {{#children}} 6 |

{{>partials/classSubtitle}}

7 | 8 | {{#children}} 9 |
10 |
11 |
{{{summary}}}
12 |
13 | {{/children}} 14 | 15 | {{/children}} 16 | 17 | {{#seealso.0}} 18 |

{{__global.seealso}}

19 |
20 | {{/seealso.0}} 21 | {{#seealso}} 22 | {{#isCref}} 23 |
{{{type.specName.0.value}}}
24 | {{/isCref}} 25 | {{^isCref}} 26 |
{{{url}}}
27 | {{/isCref}} 28 | {{/seealso}} 29 | {{#seealso.0}} 30 |
31 | {{/seealso.0}} 32 | -------------------------------------------------------------------------------- /docs/templates/wpfui/partials/collection.tmpl.partial: -------------------------------------------------------------------------------- 1 | {{!Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license.}} 2 | 3 | {{>partials/class}} 4 | -------------------------------------------------------------------------------- /docs/templates/wpfui/partials/customMREFContent.tmpl.partial: -------------------------------------------------------------------------------- 1 | {{!Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license.}} 2 | {{!Add your own custom template for the content for ManagedReference here}} 3 | {{#_splitReference}} 4 | {{#isCollection}} 5 | {{>partials/collection}} 6 | {{/isCollection}} 7 | {{#isItem}} 8 | {{>partials/item}} 9 | {{/isItem}} 10 | {{/_splitReference}} -------------------------------------------------------------------------------- /docs/templates/wpfui/partials/enum.tmpl.partial: -------------------------------------------------------------------------------- 1 | {{!Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license.}} 2 | 3 | {{>partials/class.header}} 4 | 5 | {{#seealso.0}} 6 |

{{__global.seealso}}

7 |
8 | {{/seealso.0}} 9 | {{#seealso}} 10 | {{#isCref}} 11 |
{{{type.specName.0.value}}}
12 | {{/isCref}} 13 | {{^isCref}} 14 |
{{{url}}}
15 | {{/isCref}} 16 | {{/seealso}} 17 | {{#seealso.0}} 18 |
19 | {{/seealso.0}} -------------------------------------------------------------------------------- /docs/templates/wpfui/partials/item.tmpl.partial: -------------------------------------------------------------------------------- 1 | {{!Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license.}} 2 | 3 | {{>partials/class.header}} -------------------------------------------------------------------------------- /docs/templates/wpfui/partials/namespace.tmpl.partial: -------------------------------------------------------------------------------- 1 | {{!Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license.}} 2 | 3 |

{{>partials/title}}

4 |
{{{summary}}}
5 |
{{{conceptual}}}
6 |
{{{remarks}}}
7 | 8 | {{#children}} 9 |

{{>partials/namespaceSubtitle}}

10 | {{#children}} 11 |
12 |
13 |
{{{summary}}}
14 |
15 | {{/children}} 16 | {{/children}} 17 | -------------------------------------------------------------------------------- /docs/templates/wpfui/src/helper.test.ts: -------------------------------------------------------------------------------- 1 | // Licensed to the .NET Foundation under one or more agreements. 2 | // The .NET Foundation licenses this file to you under the MIT license. 3 | 4 | import { breakWord } from './helper' 5 | 6 | test('break-text', () => { 7 | expect(breakWord('Other APIs')).toEqual(['Other APIs']) 8 | expect(breakWord('System.CodeDom')).toEqual(['System.', 'Code', 'Dom']) 9 | expect(breakWord('System.Collections.Dictionary')).toEqual(['System.', 'Collections.', 'Dictionary<', 'string,', ' object>']) 10 | expect(breakWord('https://github.com/dotnet/docfx')).toEqual(['https://github.', 'com/', 'dotnet/', 'docfx']) 11 | }) 12 | -------------------------------------------------------------------------------- /docs/templates/wpfui/src/highlight.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the .NET Foundation under one or more agreements. 3 | * The .NET Foundation licenses this file to you under the MIT license. 4 | */ 5 | 6 | @import "highlight.js/scss/vs"; 7 | 8 | @include color-mode(dark) { 9 | /* stylelint-disable-next-line no-invalid-position-at-import-rule */ 10 | @import "highlight.js/scss/vs2015"; 11 | } 12 | 13 | .hljs { 14 | background-color: #f5f5f5; 15 | } 16 | 17 | /* For code snippet line highlight */ 18 | pre > code .line-highlight { 19 | background-color: yellow; 20 | } 21 | 22 | @include color-mode(dark) { 23 | pre > code .line-highlight { 24 | background-color: #4a4a00; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /docs/templates/wpfui/src/mixins.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the .NET Foundation under one or more agreements. 3 | * The .NET Foundation licenses this file to you under the MIT license. 4 | */ 5 | 6 | @mixin adjust-icon { 7 | font-family: bootstrap-icons; 8 | position: relative; 9 | margin-right: 0.5em; 10 | top: 0.2em; 11 | font-size: 1.25em; 12 | font-weight: normal; 13 | } 14 | 15 | @mixin underline-on-hover { 16 | text-decoration: none; 17 | 18 | &:hover, &:focus { 19 | text-decoration: underline; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /docs/templates/wpfui/src/search.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the .NET Foundation under one or more agreements. 3 | * The .NET Foundation licenses this file to you under the MIT license. 4 | */ 5 | 6 | #search-results { 7 | line-height: 1.8; 8 | 9 | >.search-list { 10 | font-size: .9em; 11 | color: $secondary; 12 | } 13 | 14 | >.sr-items { 15 | flex: 1; 16 | 17 | .sr-item { 18 | margin-bottom: 1.5em; 19 | 20 | >.item-title { 21 | font-size: x-large; 22 | } 23 | 24 | >.item-href { 25 | color: #093; 26 | font-size: small; 27 | } 28 | 29 | >.item-brief { 30 | font-size: small; 31 | } 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /docs/templates/wpfui/src/wpfui-index-stats.ts: -------------------------------------------------------------------------------- 1 | function updateBaseStats() { 2 | console.debug('Index stats initialized') 3 | } 4 | 5 | export function renderIndexStats() { 6 | const windowPathname = window.location.pathname 7 | 8 | if (windowPathname === '' || windowPathname === '/' || windowPathname === '/index.html') { 9 | updateBaseStats() 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /docs/templates/wpfui/toc.json.tmpl: -------------------------------------------------------------------------------- 1 | {{!Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license.}} 2 | 3 | {{{content}}} -------------------------------------------------------------------------------- /nuget.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Console/GlobalUsings.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | global using System; 7 | global using System.Collections.ObjectModel; 8 | global using System.Threading; 9 | global using System.Windows; 10 | global using System.Windows.Media; 11 | -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Console/Models/DataColor.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Demo.Console.Models; 7 | 8 | public struct DataColor 9 | { 10 | public Brush Color { get; set; } 11 | } 12 | -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Console/Views/MainView.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Demo.Console.Utilities; 7 | using Wpf.Ui.Demo.Console.Views.Pages; 8 | 9 | namespace Wpf.Ui.Demo.Console.Views; 10 | 11 | public partial class MainView 12 | { 13 | public MainView() 14 | { 15 | DataContext = this; 16 | 17 | InitializeComponent(); 18 | 19 | Loaded += (_, _) => RootNavigation.Navigate(typeof(DashboardPage)); 20 | 21 | UiApplication.Current.MainWindow = this; 22 | 23 | this.ApplyTheme(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Console/Views/SimpleView.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Demo.Console.Utilities; 7 | 8 | namespace Wpf.Ui.Demo.Console.Views; 9 | 10 | public partial class SimpleView 11 | { 12 | public SimpleView() 13 | { 14 | InitializeComponent(); 15 | this.ApplyTheme(); 16 | } 17 | 18 | private void CardAction_Click(object sender, RoutedEventArgs e) 19 | { 20 | ThemeUtilities.ChangeTheme(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Console/wpfui.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/samples/Wpf.Ui.Demo.Console/wpfui.ico -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Dialogs/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Dialogs/App.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Demo.Dialogs; 7 | 8 | public partial class App; 9 | -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Dialogs/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using System.Windows; 7 | 8 | [assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)] 9 | -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Dialogs/Assets/applicationIcon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/samples/Wpf.Ui.Demo.Dialogs/Assets/applicationIcon-1024.png -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Dialogs/Assets/applicationIcon-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/samples/Wpf.Ui.Demo.Dialogs/Assets/applicationIcon-256.png -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Dialogs/applicationIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/samples/Wpf.Ui.Demo.Dialogs/applicationIcon.ico -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Mvvm/App.xaml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Mvvm/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | [assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)] 7 | -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Mvvm/Assets/applicationIcon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/samples/Wpf.Ui.Demo.Mvvm/Assets/applicationIcon-1024.png -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Mvvm/Assets/applicationIcon-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/samples/Wpf.Ui.Demo.Mvvm/Assets/applicationIcon-256.png -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Mvvm/GlobalUsings.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | global using System; 7 | global using System.Collections.Generic; 8 | global using System.Globalization; 9 | global using System.Linq; 10 | global using System.Threading; 11 | global using System.Threading.Tasks; 12 | global using System.Windows; 13 | global using CommunityToolkit.Mvvm.ComponentModel; 14 | global using CommunityToolkit.Mvvm.Input; 15 | global using Microsoft.Extensions.Hosting; 16 | -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Mvvm/Models/AppConfig.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Demo.Mvvm.Models; 7 | 8 | public class AppConfig 9 | { 10 | public string? ConfigurationsFolder { get; set; } 11 | 12 | public string? AppPropertiesFileName { get; set; } 13 | } 14 | -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Mvvm/Models/DataColor.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using System.Windows.Media; 7 | 8 | namespace Wpf.Ui.Demo.Mvvm.Models; 9 | 10 | public struct DataColor 11 | { 12 | public Brush Color { get; set; } 13 | } 14 | -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Mvvm/ViewModels/DashboardViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Demo.Mvvm.ViewModels; 7 | 8 | public partial class DashboardViewModel : ViewModel 9 | { 10 | [ObservableProperty] 11 | private int _counter = 0; 12 | 13 | [RelayCommand] 14 | private void OnCounterIncrement() 15 | { 16 | Counter++; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Mvvm/Views/Pages/DashboardPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Abstractions.Controls; 7 | 8 | namespace Wpf.Ui.Demo.Mvvm.Views.Pages; 9 | 10 | /// 11 | /// Interaction logic for DashboardPage.xaml 12 | /// 13 | public partial class DashboardPage : INavigableView 14 | { 15 | public ViewModels.DashboardViewModel ViewModel { get; } 16 | 17 | public DashboardPage(ViewModels.DashboardViewModel viewModel) 18 | { 19 | ViewModel = viewModel; 20 | DataContext = this; 21 | 22 | InitializeComponent(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Mvvm/Views/Pages/DataPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Abstractions.Controls; 7 | 8 | namespace Wpf.Ui.Demo.Mvvm.Views.Pages; 9 | 10 | /// 11 | /// Interaction logic for DataView.xaml 12 | /// 13 | public partial class DataPage : INavigableView 14 | { 15 | public ViewModels.DataViewModel ViewModel { get; } 16 | 17 | public DataPage(ViewModels.DataViewModel viewModel) 18 | { 19 | ViewModel = viewModel; 20 | DataContext = this; 21 | 22 | InitializeComponent(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Mvvm/Views/Pages/SettingsPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Abstractions.Controls; 7 | 8 | namespace Wpf.Ui.Demo.Mvvm.Views.Pages; 9 | 10 | /// 11 | /// Interaction logic for SettingsPage.xaml 12 | /// 13 | public partial class SettingsPage : INavigableView 14 | { 15 | public ViewModels.SettingsViewModel ViewModel { get; } 16 | 17 | public SettingsPage(ViewModels.SettingsViewModel viewModel) 18 | { 19 | ViewModel = viewModel; 20 | DataContext = this; 21 | 22 | InitializeComponent(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Mvvm/applicationIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/samples/Wpf.Ui.Demo.Mvvm/applicationIcon.ico -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Simple/App.xaml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Simple/App.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Demo.Simple; 7 | 8 | /// 9 | /// Interaction logic for App.xaml 10 | /// 11 | public partial class App { } 12 | -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Simple/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using System.Windows; 7 | 8 | [assembly: ThemeInfo( 9 | ResourceDictionaryLocation.None, // where theme specific resource dictionaries are located (used if a resource is not found in the page, or application resource dictionaries) 10 | ResourceDictionaryLocation.SourceAssembly // where the generic resource dictionary is located (used if a resource is not found in the page, app, or any theme specific resource dictionaries) 11 | )] 12 | -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Simple/Assets/applicationIcon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/samples/Wpf.Ui.Demo.Simple/Assets/applicationIcon-1024.png -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Simple/Assets/applicationIcon-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/samples/Wpf.Ui.Demo.Simple/Assets/applicationIcon-256.png -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Simple/MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Demo.Simple.Views.Pages; 7 | 8 | namespace Wpf.Ui.Demo.Simple; 9 | 10 | /// 11 | /// Interaction logic for MainWindow.xaml 12 | /// 13 | public partial class MainWindow 14 | { 15 | public MainWindow() 16 | { 17 | DataContext = this; 18 | 19 | Appearance.SystemThemeWatcher.Watch(this); 20 | 21 | InitializeComponent(); 22 | 23 | Loaded += (_, _) => RootNavigation.Navigate(typeof(DashboardPage)); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Simple/Models/DataColor.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using System.Windows.Media; 7 | 8 | namespace Wpf.Ui.Demo.Simple.Models; 9 | 10 | public struct DataColor 11 | { 12 | public Brush Color { get; set; } 13 | } 14 | -------------------------------------------------------------------------------- /samples/Wpf.Ui.Demo.Simple/applicationIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/samples/Wpf.Ui.Demo.Simple/applicationIcon.ico -------------------------------------------------------------------------------- /src/Wpf.Ui.Abstractions/GlobalUsings.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | global using System; 7 | global using System.Threading.Tasks; 8 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Abstractions/INavigationViewPageProvider.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Abstractions; 7 | 8 | /// 9 | /// Defines a service that provides pages for navigation. 10 | /// 11 | public interface INavigationViewPageProvider 12 | { 13 | /// 14 | /// Retrieves a page of the specified type. 15 | /// 16 | /// The type of the page to retrieve. 17 | /// An instance of the specified page type, or null if the page is not found. 18 | public object? GetPage(Type pageType); 19 | } 20 | -------------------------------------------------------------------------------- /src/Wpf.Ui.DependencyInjection/DependencyInjectionNavigationViewPageProvider.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Abstractions; 7 | 8 | namespace Wpf.Ui.DependencyInjection; 9 | 10 | /// 11 | /// Service that provides pages for navigation. 12 | /// 13 | public class DependencyInjectionNavigationViewPageProvider(IServiceProvider serviceProvider) 14 | : INavigationViewPageProvider 15 | { 16 | /// 17 | public object? GetPage(Type pageType) 18 | { 19 | return serviceProvider.GetService(pageType); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Wpf.Ui.DependencyInjection/GlobalUsings.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | global using System; 7 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Blank/App.xaml: -------------------------------------------------------------------------------- 1 |  9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Blank/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | 3 | [assembly: ThemeInfo( 4 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located 5 | //(used if a resource is not found in the page, 6 | // or application resource dictionaries) 7 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located 8 | //(used if a resource is not found in the page, 9 | // app, or any theme specific resource dictionaries) 10 | )] 11 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Blank/Assets/wpfui-icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Extension.Template.Blank/Assets/wpfui-icon-1024.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Blank/Assets/wpfui-icon-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Extension.Template.Blank/Assets/wpfui-icon-256.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Blank/__PreviewImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Extension.Template.Blank/__PreviewImage.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Blank/__TemplateIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Extension.Template.Blank/__TemplateIcon.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Blank/wpfui-icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Extension.Template.Blank/wpfui-icon.ico -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Compact/App.xaml: -------------------------------------------------------------------------------- 1 |  9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Compact/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | 3 | [assembly: ThemeInfo( 4 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located 5 | //(used if a resource is not found in the page, 6 | // or application resource dictionaries) 7 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located 8 | //(used if a resource is not found in the page, 9 | // app, or any theme specific resource dictionaries) 10 | )] 11 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Compact/Assets/wpfui-icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Extension.Template.Compact/Assets/wpfui-icon-1024.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Compact/Assets/wpfui-icon-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Extension.Template.Compact/Assets/wpfui-icon-256.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Compact/Models/AppConfig.cs: -------------------------------------------------------------------------------- 1 | namespace $safeprojectname$.Models 2 | { 3 | public class AppConfig 4 | { 5 | public string ConfigurationsFolder { get; set; } 6 | 7 | public string AppPropertiesFileName { get; set; } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Compact/Models/DataColor.cs: -------------------------------------------------------------------------------- 1 | using System.Windows.Media; 2 | 3 | namespace $safeprojectname$.Models 4 | { 5 | public struct DataColor 6 | { 7 | public Brush Color { get; set; } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Compact/Resources/Translations.cs: -------------------------------------------------------------------------------- 1 | namespace $safeprojectname$.Resources 2 | { 3 | public partial class Translations 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Compact/Usings.cs: -------------------------------------------------------------------------------- 1 | global using System; 2 | global using System.Windows; 3 | global using CommunityToolkit.Mvvm.ComponentModel; 4 | global using CommunityToolkit.Mvvm.Input; 5 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Compact/ViewModels/Pages/DashboardViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace $safeprojectname$.ViewModels.Pages 2 | { 3 | public partial class DashboardViewModel : ObservableObject 4 | { 5 | [ObservableProperty] 6 | private int _counter = 0; 7 | 8 | [RelayCommand] 9 | private void OnCounterIncrement() 10 | { 11 | Counter++; 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Compact/Views/Pages/DashboardPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using $safeprojectname$.ViewModels.Pages; 2 | using Wpf.Ui.Abstractions.Controls; 3 | 4 | namespace $safeprojectname$.Views.Pages 5 | { 6 | public partial class DashboardPage : INavigableView 7 | { 8 | public DashboardViewModel ViewModel { get; } 9 | 10 | public DashboardPage(DashboardViewModel viewModel) 11 | { 12 | ViewModel = viewModel; 13 | DataContext = this; 14 | 15 | InitializeComponent(); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Compact/Views/Pages/DataPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using $safeprojectname$.ViewModels.Pages; 2 | using Wpf.Ui.Abstractions.Controls; 3 | 4 | namespace $safeprojectname$.Views.Pages 5 | { 6 | public partial class DataPage : INavigableView 7 | { 8 | public DataViewModel ViewModel { get; } 9 | 10 | public DataPage(DataViewModel viewModel) 11 | { 12 | ViewModel = viewModel; 13 | DataContext = this; 14 | 15 | InitializeComponent(); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Compact/Views/Pages/SettingsPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using $safeprojectname$.ViewModels.Pages; 2 | using Wpf.Ui.Abstractions.Controls; 3 | 4 | namespace $safeprojectname$.Views.Pages 5 | { 6 | public partial class SettingsPage : INavigableView 7 | { 8 | public SettingsViewModel ViewModel { get; } 9 | 10 | public SettingsPage(SettingsViewModel viewModel) 11 | { 12 | ViewModel = viewModel; 13 | DataContext = this; 14 | 15 | InitializeComponent(); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Compact/__PreviewImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Extension.Template.Compact/__PreviewImage.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Compact/__TemplateIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Extension.Template.Compact/__TemplateIcon.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Compact/wpfui-icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Extension.Template.Compact/wpfui-icon.ico -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Fluent/App.xaml: -------------------------------------------------------------------------------- 1 |  9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Fluent/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | 3 | [assembly: ThemeInfo( 4 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located 5 | //(used if a resource is not found in the page, 6 | // or application resource dictionaries) 7 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located 8 | //(used if a resource is not found in the page, 9 | // app, or any theme specific resource dictionaries) 10 | )] 11 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Fluent/Assets/wpfui-icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Extension.Template.Fluent/Assets/wpfui-icon-1024.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Fluent/Assets/wpfui-icon-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Extension.Template.Fluent/Assets/wpfui-icon-256.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Fluent/Models/AppConfig.cs: -------------------------------------------------------------------------------- 1 | namespace $safeprojectname$.Models 2 | { 3 | public class AppConfig 4 | { 5 | public string ConfigurationsFolder { get; set; } 6 | 7 | public string AppPropertiesFileName { get; set; } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Fluent/Models/DataColor.cs: -------------------------------------------------------------------------------- 1 | using System.Windows.Media; 2 | 3 | namespace $safeprojectname$.Models 4 | { 5 | public struct DataColor 6 | { 7 | public Brush Color { get; set; } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Fluent/Resources/Translations.cs: -------------------------------------------------------------------------------- 1 | namespace $safeprojectname$.Resources 2 | { 3 | public partial class Translations 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Fluent/Usings.cs: -------------------------------------------------------------------------------- 1 | global using System; 2 | global using System.Windows; 3 | global using CommunityToolkit.Mvvm.ComponentModel; 4 | global using CommunityToolkit.Mvvm.Input; 5 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Fluent/ViewModels/Pages/DashboardViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace $safeprojectname$.ViewModels.Pages 2 | { 3 | public partial class DashboardViewModel : ObservableObject 4 | { 5 | [ObservableProperty] 6 | private int _counter = 0; 7 | 8 | [RelayCommand] 9 | private void OnCounterIncrement() 10 | { 11 | Counter++; 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Fluent/Views/Pages/DashboardPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using $safeprojectname$.ViewModels.Pages; 2 | using Wpf.Ui.Abstractions.Controls; 3 | 4 | namespace $safeprojectname$.Views.Pages 5 | { 6 | public partial class DashboardPage : INavigableView 7 | { 8 | public DashboardViewModel ViewModel { get; } 9 | 10 | public DashboardPage(DashboardViewModel viewModel) 11 | { 12 | ViewModel = viewModel; 13 | DataContext = this; 14 | 15 | InitializeComponent(); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Fluent/Views/Pages/DataPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using $safeprojectname$.ViewModels.Pages; 2 | using Wpf.Ui.Abstractions.Controls; 3 | 4 | namespace $safeprojectname$.Views.Pages 5 | { 6 | public partial class DataPage : INavigableView 7 | { 8 | public DataViewModel ViewModel { get; } 9 | 10 | public DataPage(DataViewModel viewModel) 11 | { 12 | ViewModel = viewModel; 13 | DataContext = this; 14 | 15 | InitializeComponent(); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Fluent/Views/Pages/SettingsPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using $safeprojectname$.ViewModels.Pages; 2 | using Wpf.Ui.Abstractions.Controls; 3 | 4 | namespace $safeprojectname$.Views.Pages 5 | { 6 | public partial class SettingsPage : INavigableView 7 | { 8 | public SettingsViewModel ViewModel { get; } 9 | 10 | public SettingsPage(SettingsViewModel viewModel) 11 | { 12 | ViewModel = viewModel; 13 | DataContext = this; 14 | 15 | InitializeComponent(); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Fluent/__PreviewImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Extension.Template.Fluent/__PreviewImage.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Fluent/__TemplateIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Extension.Template.Fluent/__TemplateIcon.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension.Template.Fluent/wpfui-icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Extension.Template.Fluent/wpfui-icon.ico -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension/preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Extension/preview.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Extension/wpfui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Extension/wpfui.png -------------------------------------------------------------------------------- /src/Wpf.Ui.FontMapper/GitTag.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.FontMapper; 7 | 8 | record GitTag(string Ref, string Node_Id, string Url); 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.FontMapper/GlobalUsings.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | global using System; 7 | global using System.Collections.Generic; 8 | global using System.IO; 9 | global using System.Linq; 10 | global using System.Text; 11 | global using System.Threading.Tasks; 12 | -------------------------------------------------------------------------------- /src/Wpf.Ui.FontMapper/Wpf.Ui.FontMapper.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Exe 5 | net9.0 6 | 7 | 8 | 9 | 10 | Always 11 | 12 | 13 | Always 14 | 15 | 16 | PreserveNewest 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/LargeTile.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/LargeTile.scale-100.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/LargeTile.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/LargeTile.scale-125.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/LargeTile.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/LargeTile.scale-150.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/LargeTile.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/LargeTile.scale-200.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/LargeTile.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/LargeTile.scale-400.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/SmallTile.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/SmallTile.scale-100.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/SmallTile.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/SmallTile.scale-125.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/SmallTile.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/SmallTile.scale-150.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/SmallTile.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/SmallTile.scale-200.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/SmallTile.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/SmallTile.scale-400.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/SplashScreen.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/SplashScreen.scale-100.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/SplashScreen.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/SplashScreen.scale-125.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/SplashScreen.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/SplashScreen.scale-150.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/SplashScreen.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/SplashScreen.scale-400.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square150x150Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square150x150Logo.scale-100.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square150x150Logo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square150x150Logo.scale-125.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square150x150Logo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square150x150Logo.scale-150.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square150x150Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square150x150Logo.scale-400.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.altform-lightunplated_targetsize-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.altform-lightunplated_targetsize-16.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.altform-lightunplated_targetsize-24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.altform-lightunplated_targetsize-24.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.altform-lightunplated_targetsize-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.altform-lightunplated_targetsize-256.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.altform-lightunplated_targetsize-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.altform-lightunplated_targetsize-32.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.altform-lightunplated_targetsize-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.altform-lightunplated_targetsize-48.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.altform-unplated_targetsize-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.altform-unplated_targetsize-16.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.altform-unplated_targetsize-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.altform-unplated_targetsize-256.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.altform-unplated_targetsize-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.altform-unplated_targetsize-32.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.altform-unplated_targetsize-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.altform-unplated_targetsize-48.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.scale-100.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.scale-125.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.scale-150.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.scale-400.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.targetsize-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.targetsize-16.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.targetsize-24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.targetsize-24.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.targetsize-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.targetsize-256.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.targetsize-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.targetsize-32.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.targetsize-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Square44x44Logo.targetsize-48.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/StoreLogo.backup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/StoreLogo.backup.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/StoreLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/StoreLogo.scale-100.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/StoreLogo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/StoreLogo.scale-125.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/StoreLogo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/StoreLogo.scale-150.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/StoreLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/StoreLogo.scale-200.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/StoreLogo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/StoreLogo.scale-400.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Wide310x150Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Wide310x150Logo.scale-100.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Wide310x150Logo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Wide310x150Logo.scale-125.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Wide310x150Logo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Wide310x150Logo.scale-150.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery.Package/Images/Wide310x150Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery.Package/Images/Wide310x150Logo.scale-400.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | [assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)] 7 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Assets/Monaco/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | 12 | 13 | 14 |
15 | 16 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Assets/Monaco/min/vs/base/browser/ui/codicons/codicon/codicon.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery/Assets/Monaco/min/vs/base/browser/ui/codicons/codicon/codicon.ttf -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Assets/Monaco/min/vs/base/common/worker/simpleWorker.nls.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/vscode/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------*/define("vs/base/common/worker/simpleWorker.nls",{"vs/base/common/platform":["_"],"vs/editor/common/languages":["array","boolean","class","constant","constructor","enumeration","enumeration member","event","field","file","function","interface","key","method","module","namespace","null","number","object","operator","package","property","string","struct","type parameter","variable","{0} ({1})"]}); 7 | 8 | //# sourceMappingURL=../../../../../min-maps/vs/base/common/worker/simpleWorker.nls.js.map -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Assets/WinUiGallery/Button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery/Assets/WinUiGallery/Button.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Assets/WinUiGallery/Flyout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery/Assets/WinUiGallery/Flyout.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Assets/WinUiGallery/MenuBar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery/Assets/WinUiGallery/MenuBar.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Assets/geo_icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery/Assets/geo_icons.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Assets/octonaut.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery/Assets/octonaut.jpg -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Assets/pexels-johannes-plenio-1103970.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery/Assets/pexels-johannes-plenio-1103970.jpg -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Assets/wpfui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery/Assets/wpfui.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Assets/wpfui_full.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery/Assets/wpfui_full.png -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/CodeSamples/Typography/TypographySample_xaml.txt: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ControlsLookup/GalleryPage.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | 8 | namespace Wpf.Ui.Gallery.ControlsLookup; 9 | 10 | internal record GalleryPage(string Name, string Description, SymbolRegular Icon, Type PageType); 11 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ControlsLookup/GalleryPageAttribute.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | 8 | namespace Wpf.Ui.Gallery.ControlsLookup; 9 | 10 | [AttributeUsage(AttributeTargets.Class)] 11 | internal sealed class GalleryPageAttribute(string description, SymbolRegular icon) : Attribute 12 | { 13 | public string Description { get; } = description; 14 | 15 | public SymbolRegular Icon { get; } = icon; 16 | } 17 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/GalleryAssembly.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery; 7 | 8 | public class GalleryAssembly 9 | { 10 | public static Assembly Asssembly => Assembly.GetExecutingAssembly(); 11 | } 12 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Helpers/NullToVisibilityConverter.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.Helpers; 7 | 8 | internal sealed class NullToVisibilityConverter : IValueConverter 9 | { 10 | public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture) 11 | { 12 | return value is null ? Visibility.Collapsed : Visibility.Visible; 13 | } 14 | 15 | public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) 16 | { 17 | throw new NotImplementedException(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/License - Images.txt: -------------------------------------------------------------------------------- 1 | pexels-johannes-plenio-1103970.jpg - Johannes Plenio 2018 2 | https://www.pexels.com/photo/gray-and-white-wallpaper-1103970/ 3 | 4 | octonoaut.jpg - Cameron McEfee 5 | https://octodex.github.com/ -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Models/DisplayableIcon.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | 8 | namespace Wpf.Ui.Gallery.Models; 9 | 10 | public struct DisplayableIcon 11 | { 12 | public int Id { get; set; } 13 | 14 | public string Name { get; set; } 15 | 16 | public string Code { get; set; } 17 | 18 | public string Symbol { get; set; } 19 | 20 | public SymbolRegular Icon { get; set; } 21 | } 22 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Models/Folder.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.Models; 7 | 8 | public record Folder 9 | { 10 | public string Name { get; init; } 11 | 12 | public Folder(string name) 13 | { 14 | Name = name; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Models/Monaco/MonacoTheme.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.Models.Monaco; 7 | 8 | [Serializable] 9 | public record MonacoTheme 10 | { 11 | public string? Base { get; init; } 12 | 13 | public bool Inherit { get; init; } 14 | 15 | public IDictionary? Rules { get; init; } 16 | 17 | public IDictionary? Colors { get; init; } 18 | } 19 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Models/NavigationCard.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | 8 | namespace Wpf.Ui.Gallery.Models; 9 | 10 | public record NavigationCard 11 | { 12 | public string? Name { get; init; } 13 | 14 | public SymbolRegular Icon { get; init; } 15 | 16 | public string? Description { get; init; } 17 | 18 | public Type? PageType { get; init; } 19 | } 20 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Models/Person.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.Models; 7 | 8 | public record Person 9 | { 10 | public string FirstName { get; init; } 11 | 12 | public string LastName { get; init; } 13 | 14 | public string Name => $"{FirstName} {LastName}"; 15 | 16 | public string Company { get; init; } 17 | 18 | public Person(string firstName, string lastName, string company) 19 | { 20 | FirstName = firstName; 21 | LastName = lastName; 22 | Company = company; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Models/Product.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.Models; 7 | 8 | public class Product 9 | { 10 | public int ProductId { get; set; } 11 | 12 | public int ProductCode { get; set; } 13 | 14 | public string? ProductName { get; set; } 15 | 16 | public string? QuantityPerUnit { get; set; } 17 | 18 | public Unit Unit { get; set; } 19 | 20 | public double UnitPrice { get; set; } 21 | 22 | public string UnitPriceString => UnitPrice.ToString("F2"); 23 | 24 | public int UnitsInStock { get; set; } 25 | 26 | public bool IsVirtual { get; set; } 27 | } 28 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Models/Unit.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.Models; 7 | 8 | public enum Unit 9 | { 10 | Grams, 11 | Kilograms, 12 | Milliliters, 13 | } 14 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Models/WindowCard.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | 8 | namespace Wpf.Ui.Gallery.Models; 9 | 10 | public record WindowCard 11 | { 12 | public string Name { get; set; } 13 | 14 | public string Description { get; init; } 15 | 16 | public SymbolRegular Icon { get; init; } 17 | 18 | public string Value { get; set; } 19 | 20 | public WindowCard(string name, string description, SymbolRegular icon, string value) 21 | { 22 | Name = name; 23 | Description = description; 24 | Icon = icon; 25 | Value = value; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Resources/Translations.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.Resources; 7 | 8 | public partial class Translations; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Services/Contracts/IWindow.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.Services.Contracts; 7 | 8 | public interface IWindow 9 | { 10 | event RoutedEventHandler Loaded; 11 | 12 | void Show(); 13 | } 14 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/BasicInput/AnchorViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using System.Windows.Controls; 7 | 8 | namespace Wpf.Ui.Gallery.ViewModels.Pages.BasicInput; 9 | 10 | public partial class AnchorViewModel : ViewModel 11 | { 12 | [ObservableProperty] 13 | private bool _isAnchorEnabled = true; 14 | 15 | [RelayCommand] 16 | private void OnAnchorCheckboxChecked(object sender) 17 | { 18 | if (sender is not CheckBox checkbox) 19 | { 20 | return; 21 | } 22 | 23 | IsAnchorEnabled = !(checkbox?.IsChecked ?? false); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/BasicInput/DropDownButtonViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.BasicInput; 7 | 8 | public partial class DropDownButtonViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/BasicInput/HyperlinkButtonViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using System.Windows.Controls; 7 | 8 | namespace Wpf.Ui.Gallery.ViewModels.Pages.BasicInput; 9 | 10 | public partial class HyperlinkButtonViewModel : ViewModel 11 | { 12 | [ObservableProperty] 13 | private bool _isHyperlinkEnabled = true; 14 | 15 | [RelayCommand] 16 | private void OnHyperlinkCheckboxChecked(object sender) 17 | { 18 | if (sender is not CheckBox checkbox) 19 | { 20 | return; 21 | } 22 | 23 | IsHyperlinkEnabled = !(checkbox?.IsChecked ?? false); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/BasicInput/RadioButtonViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using System.Windows.Controls; 7 | 8 | namespace Wpf.Ui.Gallery.ViewModels.Pages.BasicInput; 9 | 10 | public partial class RadioButtonViewModel : ViewModel 11 | { 12 | [ObservableProperty] 13 | private bool _isRadioButtonEnabled = true; 14 | 15 | [RelayCommand] 16 | private void OnRadioButtonCheckboxChecked(object sender) 17 | { 18 | if (sender is not CheckBox checkbox) 19 | { 20 | return; 21 | } 22 | 23 | IsRadioButtonEnabled = !(checkbox?.IsChecked ?? false); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/BasicInput/SliderViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.BasicInput; 7 | 8 | public partial class SliderViewModel : ViewModel 9 | { 10 | [ObservableProperty] 11 | private int _simpleSliderValue = 0; 12 | 13 | [ObservableProperty] 14 | private int _rangeSliderValue = 500; 15 | 16 | [ObservableProperty] 17 | private int _marksSliderValue = 0; 18 | 19 | [ObservableProperty] 20 | private int _verticalSliderValue = 0; 21 | } 22 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/BasicInput/SplitButtonViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.BasicInput; 7 | 8 | public partial class SplitButtonViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/BasicInput/ToggleButtonViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using System.Windows.Controls; 7 | 8 | namespace Wpf.Ui.Gallery.ViewModels.Pages.BasicInput; 9 | 10 | public partial class ToggleButtonViewModel : ViewModel 11 | { 12 | [ObservableProperty] 13 | private bool _isToggleButtonEnabled = true; 14 | 15 | [RelayCommand] 16 | private void OnToggleButtonCheckboxChecked(object sender) 17 | { 18 | if (sender is not CheckBox checkbox) 19 | { 20 | return; 21 | } 22 | 23 | IsToggleButtonEnabled = !(checkbox?.IsChecked ?? false); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/BasicInput/ToggleSwitchViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using System.Windows.Controls; 7 | 8 | namespace Wpf.Ui.Gallery.ViewModels.Pages.BasicInput; 9 | 10 | public partial class ToggleSwitchViewModel : ViewModel 11 | { 12 | [ObservableProperty] 13 | private bool _isToggleSwitchEnabled = true; 14 | 15 | [RelayCommand] 16 | private void OnToggleSwitchCheckboxChecked(object sender) 17 | { 18 | if (sender is not CheckBox checkbox) 19 | { 20 | return; 21 | } 22 | 23 | IsToggleSwitchEnabled = !(checkbox?.IsChecked ?? false); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/Collections/ListBoxViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.Collections; 7 | 8 | public partial class ListBoxViewModel : ViewModel 9 | { 10 | [ObservableProperty] 11 | private ObservableCollection _listBoxItems = 12 | [ 13 | "Arial", 14 | "Comic Sans MS", 15 | "Courier New", 16 | "Segoe UI", 17 | "Times New Roman", 18 | ]; 19 | } 20 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/Collections/TreeListViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.Collections; 7 | 8 | public partial class TreeListViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/Collections/TreeViewViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.Collections; 7 | 8 | public partial class TreeViewViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/DateAndTime/CalendarDatePickerViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.DateAndTime; 7 | 8 | public partial class CalendarDatePickerViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/DateAndTime/CalendarViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.DateAndTime; 7 | 8 | public partial class CalendarViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/DateAndTime/DatePickerViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.DateAndTime; 7 | 8 | public partial class DatePickerViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/DateAndTime/TimePickerViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.DateAndTime; 7 | 8 | public partial class TimePickerViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/DesignGuidance/ColorsViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.DesignGuidance; 7 | 8 | public partial class ColorsViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/DesignGuidance/TypographyViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.DesignGuidance; 7 | 8 | public partial class TypographyViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/DialogsAndFlyouts/FlyoutViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.DialogsAndFlyouts; 7 | 8 | public partial class FlyoutViewModel : ViewModel 9 | { 10 | [ObservableProperty] 11 | private bool _isFlyoutOpen = false; 12 | 13 | [RelayCommand] 14 | private void OnButtonClick(object sender) 15 | { 16 | if (!IsFlyoutOpen) 17 | { 18 | IsFlyoutOpen = true; 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/Layout/CardActionViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.Layout; 7 | 8 | public partial class CardActionViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/Layout/CardControlViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.Layout; 7 | 8 | public partial class CardControlViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/Layout/ExpanderViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.Layout; 7 | 8 | public partial class ExpanderViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/Media/CanvasViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.Media; 7 | 8 | public partial class CanvasViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/Media/ImageViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.Media; 7 | 8 | public partial class ImageViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/Media/WebBrowserViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.Media; 7 | 8 | public partial class WebBrowserViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/Media/WebViewViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.Media; 7 | 8 | public partial class WebViewViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/Navigation/MenuViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.Navigation; 7 | 8 | public partial class MenuViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/Navigation/MultilevelNavigationSample.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.Navigation; 7 | 8 | public partial class MultilevelNavigationSample(INavigationService navigationService) 9 | { 10 | [RelayCommand] 11 | private void NavigateForward(Type type) 12 | { 13 | _ = navigationService.NavigateWithHierarchy(type); 14 | } 15 | 16 | [RelayCommand] 17 | private void NavigateBack() 18 | { 19 | _ = navigationService.GoBack(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/Navigation/NavigationViewViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.Navigation; 7 | 8 | public partial class NavigationViewViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/Navigation/TabControlViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.Navigation; 7 | 8 | public partial class TabControlViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/Navigation/TabViewViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.Navigation; 7 | 8 | public partial class TabViewViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/StatusAndInfo/ProgressBarViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.StatusAndInfo; 7 | 8 | public partial class ProgressBarViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/StatusAndInfo/ProgressRingViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.StatusAndInfo; 7 | 8 | public partial class ProgressRingViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/StatusAndInfo/ToolTipViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.StatusAndInfo; 7 | 8 | public partial class ToolTipViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/Text/AutoSuggestBoxViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.Text; 7 | 8 | public partial class AutoSuggestBoxViewModel : ViewModel 9 | { 10 | [ObservableProperty] 11 | private List _autoSuggestBoxSuggestions = new() 12 | { 13 | "John", 14 | "Winston", 15 | "Adrianna", 16 | "Spencer", 17 | "Phoebe", 18 | "Lucas", 19 | "Carl", 20 | "Marissa", 21 | "Brandon", 22 | "Antoine", 23 | "Arielle", 24 | "Arielle", 25 | "Jamie", 26 | "Alexzander", 27 | }; 28 | } 29 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/Text/LabelViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.Text; 7 | 8 | public partial class LabelViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/Text/NumberBoxViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.Text; 7 | 8 | public partial class NumberBoxViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/Text/PasswordBoxViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.Text; 7 | 8 | public partial class PasswordBoxViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/Text/RichTextBoxViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.Text; 7 | 8 | public partial class RichTextBoxViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/Text/TextBlockViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.Text; 7 | 8 | public partial class TextBlockViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Pages/Text/TextBoxViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Pages.Text; 7 | 8 | public partial class TextBoxViewModel : ViewModel; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/ViewModels/Windows/SandboxWindowViewModel.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.ViewModels.Windows; 7 | 8 | public partial class SandboxWindowViewModel : ViewModel 9 | { 10 | [ObservableProperty] 11 | private string? _autoSuggestBoxText; 12 | } 13 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/AllControlsPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Gallery.ViewModels.Pages; 7 | 8 | namespace Wpf.Ui.Gallery.Views.Pages; 9 | 10 | public partial class AllControlsPage : INavigableView 11 | { 12 | public AllControlsViewModel ViewModel { get; } 13 | 14 | public AllControlsPage(AllControlsViewModel viewModel) 15 | { 16 | ViewModel = viewModel; 17 | DataContext = this; 18 | 19 | InitializeComponent(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/BasicInput/AnchorPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ControlsLookup; 8 | using Wpf.Ui.Gallery.ViewModels.Pages.BasicInput; 9 | 10 | namespace Wpf.Ui.Gallery.Views.Pages.BasicInput; 11 | 12 | [GalleryPage("Button which opens a link.", SymbolRegular.CubeLink20)] 13 | public partial class AnchorPage : INavigableView 14 | { 15 | public AnchorViewModel ViewModel { get; init; } 16 | 17 | public AnchorPage(AnchorViewModel viewModel) 18 | { 19 | ViewModel = viewModel; 20 | DataContext = this; 21 | 22 | InitializeComponent(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/BasicInput/ButtonPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ControlsLookup; 8 | using Wpf.Ui.Gallery.ViewModels.Pages.BasicInput; 9 | 10 | namespace Wpf.Ui.Gallery.Views.Pages.BasicInput; 11 | 12 | [GalleryPage("Simple button.", SymbolRegular.ControlButton24)] 13 | public partial class ButtonPage : INavigableView 14 | { 15 | public ButtonViewModel ViewModel { get; } 16 | 17 | public ButtonPage(ButtonViewModel viewModel) 18 | { 19 | ViewModel = viewModel; 20 | DataContext = this; 21 | 22 | InitializeComponent(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/BasicInput/ComboBoxPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ControlsLookup; 8 | using Wpf.Ui.Gallery.ViewModels.Pages.BasicInput; 9 | 10 | namespace Wpf.Ui.Gallery.Views.Pages.BasicInput; 11 | 12 | [GalleryPage("Button with binary choice.", SymbolRegular.Filter16)] 13 | public partial class ComboBoxPage : INavigableView 14 | { 15 | public ComboBoxViewModel ViewModel { get; } 16 | 17 | public ComboBoxPage(ComboBoxViewModel viewModel) 18 | { 19 | ViewModel = viewModel; 20 | DataContext = this; 21 | 22 | InitializeComponent(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/BasicInput/RatingPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ControlsLookup; 8 | using Wpf.Ui.Gallery.ViewModels.Pages.BasicInput; 9 | 10 | namespace Wpf.Ui.Gallery.Views.Pages.BasicInput; 11 | 12 | [GalleryPage("Rating using stars.", SymbolRegular.Star24)] 13 | public partial class RatingPage : INavigableView 14 | { 15 | public RatingViewModel ViewModel { get; } 16 | 17 | public RatingPage(RatingViewModel viewModel) 18 | { 19 | ViewModel = viewModel; 20 | DataContext = this; 21 | 22 | InitializeComponent(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/BasicInput/SliderPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ControlsLookup; 8 | using Wpf.Ui.Gallery.ViewModels.Pages.BasicInput; 9 | 10 | namespace Wpf.Ui.Gallery.Views.Pages.BasicInput; 11 | 12 | [GalleryPage("Sliding control.", SymbolRegular.HandDraw24)] 13 | public partial class SliderPage : INavigableView 14 | { 15 | public SliderViewModel ViewModel { get; } 16 | 17 | public SliderPage(SliderViewModel viewModel) 18 | { 19 | ViewModel = viewModel; 20 | DataContext = this; 21 | 22 | InitializeComponent(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/BasicInput/ThumbRatePage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ControlsLookup; 8 | using Wpf.Ui.Gallery.ViewModels.Pages.BasicInput; 9 | 10 | namespace Wpf.Ui.Gallery.Views.Pages.BasicInput; 11 | 12 | [GalleryPage("Like or dislike.", SymbolRegular.ThumbLike24)] 13 | public partial class ThumbRatePage : INavigableView 14 | { 15 | public ThumbRateViewModel ViewModel { get; } 16 | 17 | public ThumbRatePage(ThumbRateViewModel viewModel) 18 | { 19 | ViewModel = viewModel; 20 | DataContext = this; 21 | 22 | InitializeComponent(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/Collections/ListBoxPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ControlsLookup; 8 | using Wpf.Ui.Gallery.ViewModels.Pages.Collections; 9 | 10 | namespace Wpf.Ui.Gallery.Views.Pages.Collections; 11 | 12 | [GalleryPage("Selectable list.", SymbolRegular.AppsListDetail24)] 13 | public partial class ListBoxPage : INavigableView 14 | { 15 | public ListBoxViewModel ViewModel { get; } 16 | 17 | public ListBoxPage(ListBoxViewModel viewModel) 18 | { 19 | ViewModel = viewModel; 20 | DataContext = this; 21 | 22 | InitializeComponent(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/Collections/ListViewPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ControlsLookup; 8 | using Wpf.Ui.Gallery.ViewModels.Pages.Collections; 9 | 10 | namespace Wpf.Ui.Gallery.Views.Pages.Collections; 11 | 12 | [GalleryPage("Selectable list.", SymbolRegular.GroupList24)] 13 | public partial class ListViewPage : INavigableView 14 | { 15 | public ListViewViewModel ViewModel { get; } 16 | 17 | public ListViewPage(ListViewViewModel viewModel) 18 | { 19 | ViewModel = viewModel; 20 | DataContext = this; 21 | 22 | InitializeComponent(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/DashboardPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ViewModels.Pages; 8 | 9 | namespace Wpf.Ui.Gallery.Views.Pages; 10 | 11 | public partial class DashboardPage : INavigableView 12 | { 13 | public DashboardViewModel ViewModel { get; } 14 | 15 | public DashboardPage(DashboardViewModel viewModel) 16 | { 17 | ViewModel = viewModel; 18 | DataContext = this; 19 | 20 | InitializeComponent(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/DesignGuidance/ColorsPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ViewModels.Pages.DesignGuidance; 8 | 9 | namespace Wpf.Ui.Gallery.Views.Pages.DesignGuidance; 10 | 11 | /// 12 | /// Interaction logic for ColorsPage.xaml 13 | /// 14 | public partial class ColorsPage : INavigableView 15 | { 16 | public ColorsViewModel ViewModel { get; } 17 | 18 | public ColorsPage(ColorsViewModel viewModel) 19 | { 20 | ViewModel = viewModel; 21 | DataContext = this; 22 | 23 | InitializeComponent(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/DesignGuidance/IconsPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ViewModels.Pages.DesignGuidance; 8 | 9 | namespace Wpf.Ui.Gallery.Views.Pages.DesignGuidance; 10 | 11 | /// 12 | /// Interaction logic for IconsPage.xaml 13 | /// 14 | public partial class IconsPage : INavigableView 15 | { 16 | public IconsViewModel ViewModel { get; } 17 | 18 | public IconsPage(IconsViewModel viewModel) 19 | { 20 | ViewModel = viewModel; 21 | DataContext = this; 22 | 23 | InitializeComponent(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/DesignGuidance/TypographyPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ViewModels.Pages.DesignGuidance; 8 | 9 | namespace Wpf.Ui.Gallery.Views.Pages.DesignGuidance; 10 | 11 | public partial class TypographyPage : INavigableView 12 | { 13 | public TypographyViewModel ViewModel { get; } 14 | 15 | public TypographyPage(TypographyViewModel viewModel) 16 | { 17 | ViewModel = viewModel; 18 | DataContext = this; 19 | 20 | InitializeComponent(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/DialogsAndFlyouts/FlyoutPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ControlsLookup; 8 | using Wpf.Ui.Gallery.ViewModels.Pages.DialogsAndFlyouts; 9 | 10 | namespace Wpf.Ui.Gallery.Views.Pages.DialogsAndFlyouts; 11 | 12 | [GalleryPage("Contextual popup.", SymbolRegular.AppTitle24)] 13 | public partial class FlyoutPage : INavigableView 14 | { 15 | public FlyoutViewModel ViewModel { get; } 16 | 17 | public FlyoutPage(FlyoutViewModel viewModel) 18 | { 19 | ViewModel = viewModel; 20 | DataContext = this; 21 | 22 | InitializeComponent(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/DialogsAndFlyouts/SnackbarPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ViewModels.Pages.DialogsAndFlyouts; 8 | 9 | namespace Wpf.Ui.Gallery.Views.Pages.DialogsAndFlyouts; 10 | 11 | public partial class SnackbarPage : INavigableView 12 | { 13 | public SnackbarViewModel ViewModel { get; } 14 | 15 | public SnackbarPage(SnackbarViewModel viewModel) 16 | { 17 | ViewModel = viewModel; 18 | DataContext = this; 19 | 20 | InitializeComponent(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/Layout/ExpanderPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ControlsLookup; 8 | using Wpf.Ui.Gallery.ViewModels.Pages.Layout; 9 | 10 | namespace Wpf.Ui.Gallery.Views.Pages.Layout; 11 | 12 | [GalleryPage("Expander control.", SymbolRegular.Code24)] 13 | public partial class ExpanderPage : INavigableView 14 | { 15 | public ExpanderPage(ExpanderViewModel viewModel) 16 | { 17 | InitializeComponent(); 18 | ViewModel = viewModel; 19 | } 20 | 21 | public ExpanderViewModel ViewModel { get; } 22 | } 23 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/Media/CanvasPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ControlsLookup; 8 | using Wpf.Ui.Gallery.ViewModels.Pages.Media; 9 | 10 | namespace Wpf.Ui.Gallery.Views.Pages.Media; 11 | 12 | [GalleryPage("Canvas presenter.", SymbolRegular.InkStroke24)] 13 | public partial class CanvasPage : INavigableView 14 | { 15 | public CanvasViewModel ViewModel { get; } 16 | 17 | public CanvasPage(CanvasViewModel viewModel) 18 | { 19 | ViewModel = viewModel; 20 | DataContext = this; 21 | 22 | InitializeComponent(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/Media/ImagePage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ControlsLookup; 8 | using Wpf.Ui.Gallery.ViewModels.Pages.Media; 9 | 10 | namespace Wpf.Ui.Gallery.Views.Pages.Media; 11 | 12 | [GalleryPage("Image presenter.", SymbolRegular.ImageMultiple24)] 13 | public partial class ImagePage : INavigableView 14 | { 15 | public ImageViewModel ViewModel { get; } 16 | 17 | public ImagePage(ImageViewModel viewModel) 18 | { 19 | ViewModel = viewModel; 20 | DataContext = this; 21 | 22 | InitializeComponent(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/Media/WebViewPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ControlsLookup; 8 | using Wpf.Ui.Gallery.ViewModels.Pages.Media; 9 | 10 | namespace Wpf.Ui.Gallery.Views.Pages.Media; 11 | 12 | [GalleryPage("Embedded browser window.", SymbolRegular.GlobeDesktop24)] 13 | public partial class WebViewPage : INavigableView 14 | { 15 | public WebViewViewModel ViewModel { get; } 16 | 17 | public WebViewPage(WebViewViewModel viewModel) 18 | { 19 | ViewModel = viewModel; 20 | DataContext = this; 21 | 22 | InitializeComponent(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/Navigation/MenuPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ControlsLookup; 8 | using Wpf.Ui.Gallery.ViewModels.Pages.Navigation; 9 | 10 | namespace Wpf.Ui.Gallery.Views.Pages.Navigation; 11 | 12 | [GalleryPage("Contains a collection of MenuItem elements.", SymbolRegular.RowTriple24)] 13 | public partial class MenuPage : INavigableView 14 | { 15 | public MenuViewModel ViewModel { get; } 16 | 17 | public MenuPage(MenuViewModel viewModel) 18 | { 19 | ViewModel = viewModel; 20 | DataContext = this; 21 | 22 | InitializeComponent(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/Navigation/TabViewPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ControlsLookup; 8 | using Wpf.Ui.Gallery.ViewModels.Pages.Navigation; 9 | 10 | namespace Wpf.Ui.Gallery.Views.Pages.Navigation; 11 | 12 | [GalleryPage("Display a set of tabs.", SymbolRegular.TabDesktop24)] 13 | public partial class TabViewPage : INavigableView 14 | { 15 | public TabViewViewModel ViewModel { get; } 16 | 17 | public TabViewPage(TabViewViewModel viewModel) 18 | { 19 | ViewModel = viewModel; 20 | DataContext = this; 21 | 22 | InitializeComponent(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/OpSystem/ClipboardPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ControlsLookup; 8 | using Wpf.Ui.Gallery.ViewModels.Pages.OpSystem; 9 | 10 | namespace Wpf.Ui.Gallery.Views.Pages.OpSystem; 11 | 12 | [GalleryPage("System clipboard.", SymbolRegular.Desktop24)] 13 | public partial class ClipboardPage : INavigableView 14 | { 15 | public ClipboardViewModel ViewModel { get; } 16 | 17 | public ClipboardPage(ClipboardViewModel viewModel) 18 | { 19 | ViewModel = viewModel; 20 | DataContext = this; 21 | 22 | InitializeComponent(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/Samples/MultilevelNavigationSamplePage1.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ViewModels.Pages.Navigation; 8 | 9 | namespace Wpf.Ui.Gallery.Views.Pages.Samples; 10 | 11 | public partial class MultilevelNavigationSamplePage1 : INavigableView 12 | { 13 | public MultilevelNavigationSamplePage1(MultilevelNavigationSample viewModel) 14 | { 15 | ViewModel = viewModel; 16 | DataContext = viewModel; 17 | 18 | InitializeComponent(); 19 | } 20 | 21 | public MultilevelNavigationSample ViewModel { get; } 22 | } 23 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/Samples/MultilevelNavigationSamplePage2.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ViewModels.Pages.Navigation; 8 | 9 | namespace Wpf.Ui.Gallery.Views.Pages.Samples; 10 | 11 | public partial class MultilevelNavigationSamplePage2 : INavigableView 12 | { 13 | public MultilevelNavigationSamplePage2(MultilevelNavigationSample viewModel) 14 | { 15 | ViewModel = viewModel; 16 | DataContext = viewModel; 17 | 18 | InitializeComponent(); 19 | } 20 | 21 | public MultilevelNavigationSample ViewModel { get; } 22 | } 23 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/Samples/MultilevelNavigationSamplePage3.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ViewModels.Pages.Navigation; 8 | 9 | namespace Wpf.Ui.Gallery.Views.Pages.Samples; 10 | 11 | public partial class MultilevelNavigationSamplePage3 : INavigableView 12 | { 13 | public MultilevelNavigationSamplePage3(MultilevelNavigationSample viewModel) 14 | { 15 | ViewModel = viewModel; 16 | DataContext = viewModel; 17 | 18 | InitializeComponent(); 19 | } 20 | 21 | public MultilevelNavigationSample ViewModel { get; } 22 | } 23 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/Samples/SamplePage1.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using System.Windows.Controls; 7 | 8 | namespace Wpf.Ui.Gallery.Views.Pages.Samples; 9 | 10 | public partial class SamplePage1 : Page 11 | { 12 | public SamplePage1() 13 | { 14 | InitializeComponent(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/Samples/SamplePage2.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using System.Windows.Controls; 7 | 8 | namespace Wpf.Ui.Gallery.Views.Pages.Samples; 9 | 10 | public partial class SamplePage2 : Page 11 | { 12 | public SamplePage2() 13 | { 14 | InitializeComponent(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/Samples/SamplePage3.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using System.Windows.Controls; 7 | 8 | namespace Wpf.Ui.Gallery.Views.Pages.Samples; 9 | 10 | public partial class SamplePage3 : Page 11 | { 12 | public SamplePage3() 13 | { 14 | InitializeComponent(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/SettingsPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ViewModels.Pages; 8 | 9 | namespace Wpf.Ui.Gallery.Views.Pages; 10 | 11 | public partial class SettingsPage : INavigableView 12 | { 13 | public SettingsViewModel ViewModel { get; } 14 | 15 | public SettingsPage(SettingsViewModel viewModel) 16 | { 17 | ViewModel = viewModel; 18 | DataContext = this; 19 | 20 | InitializeComponent(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/StatusAndInfo/InfoBarPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ControlsLookup; 8 | using Wpf.Ui.Gallery.ViewModels.Pages.StatusAndInfo; 9 | 10 | namespace Wpf.Ui.Gallery.Views.Pages.StatusAndInfo; 11 | 12 | [GalleryPage("Inline message card.", SymbolRegular.ErrorCircle24)] 13 | public partial class InfoBarPage : INavigableView 14 | { 15 | public InfoBarViewModel ViewModel { get; } 16 | 17 | public InfoBarPage(InfoBarViewModel viewModel) 18 | { 19 | ViewModel = viewModel; 20 | DataContext = this; 21 | 22 | InitializeComponent(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/Text/LabelPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ControlsLookup; 8 | using Wpf.Ui.Gallery.ViewModels.Pages.Text; 9 | 10 | namespace Wpf.Ui.Gallery.Views.Pages.Text; 11 | 12 | [GalleryPage("Caption of an item.", SymbolRegular.TextBaseline20)] 13 | public partial class LabelPage : INavigableView 14 | { 15 | public LabelViewModel ViewModel { get; } 16 | 17 | public LabelPage(LabelViewModel viewModel) 18 | { 19 | ViewModel = viewModel; 20 | DataContext = this; 21 | 22 | InitializeComponent(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/Text/NumberBoxPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ControlsLookup; 8 | using Wpf.Ui.Gallery.ViewModels.Pages.Text; 9 | 10 | namespace Wpf.Ui.Gallery.Views.Pages.Text; 11 | 12 | [GalleryPage("Control for numeric input.", SymbolRegular.NumberSymbol24)] 13 | public partial class NumberBoxPage : INavigableView 14 | { 15 | public NumberBoxViewModel ViewModel { get; } 16 | 17 | public NumberBoxPage(NumberBoxViewModel viewModel) 18 | { 19 | ViewModel = viewModel; 20 | DataContext = this; 21 | 22 | InitializeComponent(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/Text/RichTextBoxPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ControlsLookup; 8 | using Wpf.Ui.Gallery.ViewModels.Pages.Text; 9 | 10 | namespace Wpf.Ui.Gallery.Views.Pages.Text; 11 | 12 | [GalleryPage("A rich editing control.", SymbolRegular.DrawText24)] 13 | public partial class RichTextBoxPage : INavigableView 14 | { 15 | public RichTextBoxViewModel ViewModel { get; } 16 | 17 | public RichTextBoxPage(RichTextBoxViewModel viewModel) 18 | { 19 | ViewModel = viewModel; 20 | DataContext = this; 21 | 22 | InitializeComponent(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/Text/TextBoxPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ControlsLookup; 8 | using Wpf.Ui.Gallery.ViewModels.Pages.Text; 9 | 10 | namespace Wpf.Ui.Gallery.Views.Pages.Text; 11 | 12 | [GalleryPage("Plain text field.", SymbolRegular.TextColor24)] 13 | public partial class TextBoxPage : INavigableView 14 | { 15 | public TextBoxViewModel ViewModel { get; } 16 | 17 | public TextBoxPage(TextBoxViewModel viewModel) 18 | { 19 | ViewModel = viewModel; 20 | DataContext = this; 21 | 22 | InitializeComponent(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Pages/Windows/WindowsPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | using Wpf.Ui.Gallery.ViewModels.Pages.Windows; 8 | 9 | namespace Wpf.Ui.Gallery.Views.Pages.Windows; 10 | 11 | public partial class WindowsPage : INavigableView 12 | { 13 | public WindowsViewModel ViewModel { get; } 14 | 15 | public WindowsPage(WindowsViewModel viewModel) 16 | { 17 | ViewModel = viewModel; 18 | DataContext = this; 19 | 20 | InitializeComponent(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/Views/Windows/MonacoWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Gallery.ViewModels.Windows; 7 | 8 | namespace Wpf.Ui.Gallery.Views.Windows; 9 | 10 | public partial class MonacoWindow 11 | { 12 | public MonacoWindowViewModel ViewModel { get; init; } 13 | 14 | public MonacoWindow(MonacoWindowViewModel viewModel) 15 | { 16 | ViewModel = viewModel; 17 | DataContext = this; 18 | 19 | InitializeComponent(); 20 | 21 | ViewModel.SetWebView(WebView); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Gallery/wpfui.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Gallery/wpfui.ico -------------------------------------------------------------------------------- /src/Wpf.Ui.SyntaxHighlight/Controls/CodeBlock.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.SyntaxHighlight/Controls/CodeBlock.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui.SyntaxHighlight/Fonts/FiraCode-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.SyntaxHighlight/Fonts/FiraCode-Regular.ttf -------------------------------------------------------------------------------- /src/Wpf.Ui.SyntaxHighlight/SyntaxHighlight.xaml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | pack://application:,,,/Wpf.Ui;component/Fonts/#Fira Code 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/Wpf.Ui.SyntaxHighlight/SyntaxLanguage.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.SyntaxHighlight; 7 | 8 | /// 9 | /// Supported languages for syntax highlighting. 10 | /// 11 | internal enum SyntaxLanguage 12 | { 13 | Autodetect, 14 | XAML, 15 | CSHARP, 16 | } 17 | -------------------------------------------------------------------------------- /src/Wpf.Ui.ToastNotifications/GlobalUsings.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | global using System; 7 | global using System.Runtime.InteropServices; 8 | global using System.Windows; 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.ToastNotifications/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using System.Windows.Markup; 7 | 8 | [assembly: ComVisible(false)] 9 | [assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)] 10 | [assembly: Guid("5743d2fa-4da8-4f29-a6dd-fda19c01c38e")] 11 | 12 | [assembly: XmlnsPrefix("http://schemas.lepo.co/wpfui/2022/xaml/toast", "toast")] 13 | [assembly: XmlnsDefinition("http://schemas.lepo.co/wpfui/2022/xaml/toast", "Wpf.Ui.ToastNotifications")] 14 | -------------------------------------------------------------------------------- /src/Wpf.Ui.ToastNotifications/Toast.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.ToastNotifications; 7 | 8 | /// 9 | /// Represents a toast notification. 10 | /// 11 | public class Toast 12 | { 13 | /// 14 | /// Displays the toast notification. 15 | /// 16 | public void Show() 17 | { 18 | // TODO: Implement native Toast without external libraries 19 | throw new NotImplementedException(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Wpf.Ui.ToastNotifications/VisualStudioToolsManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Tray/Controls/NotifyIcon.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui.Tray/Controls/NotifyIcon.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui.Tray/GlobalUsings.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | global using System; 7 | global using System.Collections.Generic; 8 | global using System.ComponentModel; 9 | global using System.Diagnostics; 10 | global using System.Diagnostics.CodeAnalysis; 11 | global using System.Runtime.InteropServices; 12 | global using System.Windows.Interop; 13 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Tray/Interop/Libraries.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Tray.Interop; 7 | 8 | /// 9 | /// Windows kernel module. 10 | /// 11 | internal static class Libraries 12 | { 13 | public const string User32 = "user32.dll"; 14 | public const string Shell32 = "shell32.dll"; 15 | } 16 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Tray/NotifyIconEventHandler.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Tray; 7 | 8 | internal delegate void NotifyIconEventHandler(); 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Tray/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using System.Runtime.InteropServices; 7 | using System.Windows; 8 | using System.Windows.Markup; 9 | 10 | [assembly: ComVisible(false)] 11 | [assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)] 12 | [assembly: Guid("34110309-22b4-4fc0-9461-606cd63fb1fc")] 13 | 14 | [assembly: XmlnsPrefix("http://schemas.lepo.co/wpfui/2022/xaml/tray", "tray")] 15 | [assembly: XmlnsDefinition("http://schemas.lepo.co/wpfui/2022/xaml/tray", "Wpf.Ui.Tray.Controls")] 16 | [assembly: XmlnsDefinition("http://schemas.lepo.co/wpfui/2022/xaml/tray", "Wpf.Ui.Tray")] 17 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Tray/TrayData.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Tray; 7 | 8 | /// 9 | /// Singleton containing persistent information about icons in the tray menu for application session. 10 | /// 11 | internal static class TrayData 12 | { 13 | /// 14 | /// Gets or sets the collection of registered tray icons. 15 | /// 16 | public static List NotifyIcons { get; set; } = new(); 17 | } 18 | -------------------------------------------------------------------------------- /src/Wpf.Ui.Tray/VisualStudioToolsManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Appearance/ThemeChangedEvent.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Appearance; 7 | 8 | /// 9 | /// Event triggered when application theme is updated. 10 | /// 11 | /// Current application . 12 | /// Current base system accent . 13 | public delegate void ThemeChangedEvent(ApplicationTheme currentApplicationTheme, Color systemAccent); 14 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/Anchor/Anchor.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Controls/Anchor/Anchor.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/Anchor/Anchor.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | // https://docs.microsoft.com/en-us/fluent-ui/web-components/components/anchor 7 | 8 | // ReSharper disable once CheckNamespace 9 | namespace Wpf.Ui.Controls; 10 | 11 | /// 12 | /// Creates a hyperlink to web pages, files, email addresses, locations in the same page, or anything else a URL can address. 13 | /// 14 | /// 15 | /// 16 | /// <ui:Anchor 17 | /// NavigateUri="https://lepo.co/" /> 18 | /// 19 | /// 20 | public class Anchor : Wpf.Ui.Controls.HyperlinkButton { } 21 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/Arc/Arc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Controls/Arc/Arc.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/AutoSuggestBox/AutoSuggestBox.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Controls/AutoSuggestBox/AutoSuggestBox.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/AutoSuggestBox/AutoSuggestBoxQuerySubmittedEventArgs.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | // ReSharper disable once CheckNamespace 7 | namespace Wpf.Ui.Controls; 8 | 9 | /// 10 | /// Provides event data for the event. 11 | /// 12 | public sealed class AutoSuggestBoxQuerySubmittedEventArgs : RoutedEventArgs 13 | { 14 | public AutoSuggestBoxQuerySubmittedEventArgs(RoutedEvent eventArgs, object sender) 15 | : base(eventArgs, sender) { } 16 | 17 | public required string QueryText { get; init; } 18 | } 19 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/AutoSuggestBox/AutoSuggestBoxSuggestionChosenEventArgs.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | // ReSharper disable once CheckNamespace 7 | namespace Wpf.Ui.Controls; 8 | 9 | /// 10 | /// Provides data for the event. 11 | /// 12 | public sealed class AutoSuggestBoxSuggestionChosenEventArgs : RoutedEventArgs 13 | { 14 | public AutoSuggestBoxSuggestionChosenEventArgs(RoutedEvent eventArgs, object sender) 15 | : base(eventArgs, sender) { } 16 | 17 | public required object SelectedItem { get; init; } 18 | } 19 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/AutoSuggestBox/AutoSuggestBoxTextChangedEventArgs.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | // ReSharper disable once CheckNamespace 7 | namespace Wpf.Ui.Controls; 8 | 9 | /// 10 | /// Provides data for the event. 11 | /// 12 | public sealed class AutoSuggestBoxTextChangedEventArgs : RoutedEventArgs 13 | { 14 | public AutoSuggestBoxTextChangedEventArgs(RoutedEvent eventArgs, object sender) 15 | : base(eventArgs, sender) { } 16 | 17 | public required string Text { get; init; } 18 | 19 | public required AutoSuggestionBoxTextChangeReason Reason { get; init; } 20 | } 21 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/Button/Badge.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Controls/Button/Badge.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/Card/Card.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Controls/Card/Card.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/CardAction/CardAction.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Controls/CardAction/CardAction.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/CardExpander/CardExpander.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Controls/CardExpander/CardExpander.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/ColorPicker/ColorPicker.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | // ReSharper disable once CheckNamespace 7 | namespace Wpf.Ui.Controls; 8 | 9 | /// 10 | /// Represents a control that lets a user pick a color using a color spectrum, sliders, and text input. 11 | /// 12 | internal class ColorPicker : System.Windows.Controls.Control { } 13 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/ColorPicker/ColorPicker.xaml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 17 | 18 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/ContentDialog/EventArgs/ContentDialogButtonClickEventArgs.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | // ReSharper disable once CheckNamespace 7 | namespace Wpf.Ui.Controls; 8 | 9 | public class ContentDialogButtonClickEventArgs : RoutedEventArgs 10 | { 11 | public ContentDialogButtonClickEventArgs(RoutedEvent routedEvent, object source) 12 | : base(routedEvent, source) { } 13 | 14 | public required ContentDialogButton Button { get; init; } 15 | } 16 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/ContentDialog/EventArgs/ContentDialogClosedEventArgs.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | // ReSharper disable once CheckNamespace 7 | namespace Wpf.Ui.Controls; 8 | 9 | public class ContentDialogClosedEventArgs : RoutedEventArgs 10 | { 11 | public ContentDialogClosedEventArgs(RoutedEvent routedEvent, object source) 12 | : base(routedEvent, source) { } 13 | 14 | public required ContentDialogResult Result { get; init; } 15 | } 16 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/ContentDialog/EventArgs/ContentDialogClosingEventArgs.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | // ReSharper disable once CheckNamespace 7 | namespace Wpf.Ui.Controls; 8 | 9 | public class ContentDialogClosingEventArgs : RoutedEventArgs 10 | { 11 | public ContentDialogClosingEventArgs(RoutedEvent routedEvent, object source) 12 | : base(routedEvent, source) { } 13 | 14 | public required ContentDialogResult Result { get; init; } 15 | 16 | public bool Cancel { get; set; } 17 | } 18 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/ContextMenu/ContextMenuLoader.xaml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 12 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/DynamicScrollBar/DynamicScrollBar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Controls/DynamicScrollBar/DynamicScrollBar.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/DynamicScrollViewer/DynamicScrollViewer.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Controls/DynamicScrollViewer/DynamicScrollViewer.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/ElementPlacement.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Controls; 7 | 8 | /// 9 | /// Decides where to put the element. 10 | /// 11 | public enum ElementPlacement 12 | { 13 | /// 14 | /// Puts the control element on the left. 15 | /// 16 | Left, 17 | 18 | /// 19 | /// Puts the control element on the right. 20 | /// 21 | Right, 22 | } 23 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/FluentWindow/FluentWindow.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Controls/FluentWindow/FluentWindow.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/FontTypography.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Controls; 7 | 8 | /// 9 | /// Defines several predefined text styles that you can apply to some elements responsible for displaying it. 10 | /// 11 | /// 12 | public enum FontTypography 13 | { 14 | Caption, 15 | Body, 16 | BodyStrong, 17 | Subtitle, 18 | Title, 19 | TitleLarge, 20 | Display, 21 | } 22 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/IAppearanceControl.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Controls; 7 | 8 | /// 9 | /// UI with attributes. 10 | /// 11 | public interface IAppearanceControl 12 | { 13 | /// 14 | /// Gets or sets the of the control, if available. 15 | /// 16 | public ControlAppearance Appearance { get; set; } 17 | } 18 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/IDpiAwareControl.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Controls; 7 | 8 | /// 9 | /// The control that should react to changes in the screen DPI. 10 | /// 11 | public interface IDpiAwareControl 12 | { 13 | Hardware.DisplayDpi CurrentWindowDisplayDpi { get; } 14 | } 15 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/IIconControl.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Controls; 7 | 8 | /// 9 | /// Control that allows you to set an icon in it with an . 10 | /// 11 | public interface IIconControl 12 | { 13 | /// 14 | /// Gets or sets displayed . 15 | /// 16 | IconElement? Icon { get; set; } 17 | } 18 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/IThemeControl.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Controls; 7 | 8 | /// 9 | /// Control changing its properties or appearance depending on the theme. 10 | /// 11 | public interface IThemeControl 12 | { 13 | /// 14 | /// Gets the theme that is currently set. 15 | /// 16 | public Appearance.ApplicationTheme ApplicationTheme { get; } 17 | } 18 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/IconElement/FontIcon.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Controls/IconElement/FontIcon.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/IconElement/SymbolIcon.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Controls/IconElement/SymbolIcon.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/Label/Label.xaml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/ListView/ListViewItem.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Controls; 7 | 8 | public class ListViewItem : System.Windows.Controls.ListViewItem { } 9 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/ListView/ListViewViewState.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Controls; 7 | 8 | public enum ListViewViewState 9 | { 10 | Default, 11 | GridView, 12 | } 13 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/LoadingScreen/LoadingScreen.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | // ReSharper disable once CheckNamespace 7 | namespace Wpf.Ui.Controls; 8 | 9 | /// 10 | /// Prestyled loading screen with . 11 | /// 12 | public class LoadingScreen : System.Windows.Controls.ContentControl { } 13 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/Menu/MenuLoader.xaml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 13 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/MessageBox/MessageBox.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Controls/MessageBox/MessageBox.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/MessageBox/MessageBoxButton.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | // ReSharper disable once CheckNamespace 7 | namespace Wpf.Ui.Controls; 8 | 9 | /// 10 | /// Defines constants that specify the default button on a . 11 | /// 12 | public enum MessageBoxButton 13 | { 14 | /// 15 | /// The primary button 16 | /// 17 | Primary, 18 | 19 | /// 20 | /// The secondary button 21 | /// 22 | Secondary, 23 | 24 | /// 25 | /// The close button 26 | /// 27 | Close, 28 | } 29 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/NavigationView/NavigatedEventArgs.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | /* Based on Windows UI Library 7 | Copyright(c) Microsoft Corporation.All rights reserved. */ 8 | 9 | // ReSharper disable once CheckNamespace 10 | namespace Wpf.Ui.Controls; 11 | 12 | public class NavigatedEventArgs : RoutedEventArgs 13 | { 14 | public NavigatedEventArgs(RoutedEvent routedEvent, object source) 15 | : base(routedEvent, source) { } 16 | 17 | public required object Page { get; init; } 18 | } 19 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/NavigationView/NavigatingCancelEventArgs.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | // Based on Windows UI Library 7 | // Copyright(c) Microsoft Corporation.All rights reserved. 8 | 9 | // ReSharper disable once CheckNamespace 10 | namespace Wpf.Ui.Controls; 11 | 12 | public class NavigatingCancelEventArgs : RoutedEventArgs 13 | { 14 | public NavigatingCancelEventArgs(RoutedEvent routedEvent, object source) 15 | : base(routedEvent, source) { } 16 | 17 | public required object Page { get; init; } 18 | 19 | public bool Cancel { get; set; } 20 | } 21 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/NavigationView/NavigationView.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Controls/NavigationView/NavigationView.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/NavigationView/NavigationViewBreadcrumbItem.xaml: -------------------------------------------------------------------------------- 1 |  7 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/NavigationView/NavigationViewItem.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Controls/NavigationView/NavigationViewItem.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/NavigationView/NavigationViewItemSeparator.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | // Based on Windows UI Library 7 | // Copyright(c) Microsoft Corporation.All rights reserved. 8 | 9 | // ReSharper disable once CheckNamespace 10 | namespace Wpf.Ui.Controls; 11 | 12 | // https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.navigationviewitemseparator?view=winrt-22621 13 | 14 | /// 15 | /// Represents a line that separates menu items in a NavigationMenu. 16 | /// 17 | public class NavigationViewItemSeparator : System.Windows.Controls.Separator { } 18 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/NumberBox/NumberBox.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Controls/NumberBox/NumberBox.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/ProgressRing/ProgressRing.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Controls/ProgressRing/ProgressRing.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/RatingControl/RatingControl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Controls/RatingControl/RatingControl.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/TabView/TabView.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | // ReSharper disable once CheckNamespace 7 | namespace Wpf.Ui.Controls; 8 | 9 | /// 10 | /// The TabView control is a way to display a set of tabs and their respective content. 11 | /// Tab controls are useful for displaying several pages (or documents) of content while 12 | /// giving a user the capability to rearrange, open, or close new tabs. 13 | /// 14 | public class TabView : System.Windows.Controls.TabControl { } 15 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/TabView/TabViewItem.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | // ReSharper disable once CheckNamespace 7 | namespace Wpf.Ui.Controls; 8 | 9 | /// 10 | /// Represents a single tab within a . 11 | /// 12 | public class TabViewItem : System.Windows.Controls.TabItem { } 13 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/TextColor.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Controls; 7 | 8 | /// 9 | /// Colors for UI labels and static text 10 | /// 11 | public enum TextColor 12 | { 13 | /// 14 | /// Rest or Hover 15 | /// 16 | Primary, 17 | 18 | /// 19 | /// Rest or Hover 20 | /// 21 | Secondary, 22 | 23 | /// 24 | /// Pressed only (not accessible) 25 | /// 26 | Tertiary, 27 | 28 | /// 29 | /// Disabled only (not accessible) 30 | /// 31 | Disabled, 32 | } 33 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/ThumbRate/ThumbRate.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Controls/ThumbRate/ThumbRate.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/ThumbRate/ThumbRateState.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | // ReSharper disable once CheckNamespace 7 | namespace Wpf.Ui.Controls; 8 | 9 | /// 10 | /// States of the control. 11 | /// 12 | public enum ThumbRateState 13 | { 14 | /// 15 | /// No thumb has been clicked. 16 | /// 17 | None, 18 | 19 | /// 20 | /// The thumb up has been clicked. 21 | /// 22 | Liked, 23 | 24 | /// 25 | /// The thumb down has been clicked. 26 | /// 27 | Disliked, 28 | } 29 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/TimePicker/ClockIdentifier.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | // ReSharper disable once CheckNamespace 7 | namespace Wpf.Ui.Controls; 8 | 9 | /// 10 | /// Clock system. 11 | /// 12 | public enum ClockIdentifier 13 | { 14 | Clock12Hour, 15 | Clock24Hour, 16 | } 17 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/ToggleSwitch/ToggleSwitch.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Controls/ToggleSwitch/ToggleSwitch.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/TreeGrid/TreeGridItem.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | // ReSharper disable once CheckNamespace 7 | namespace Wpf.Ui.Controls; 8 | 9 | /// 10 | /// Work in progress. 11 | /// 12 | public class TreeGridItem : System.Windows.Controls.Control { } 13 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/VirtualizingItemsControl/VirtualizingItemsControl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Controls/VirtualizingItemsControl/VirtualizingItemsControl.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/VirtualizingUniformGrid/VirtualizingUniformGrid.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | /* Based on VirtualizingWrapPanel created by S. Bäumlisberger licensed under MIT license. 7 | https://github.com/sbaeumlisberger/VirtualizingWrapPanel 8 | 9 | Copyright (C) S. Bäumlisberger 10 | All Rights Reserved. */ 11 | 12 | // ReSharper disable once CheckNamespace 13 | namespace Wpf.Ui.Controls; 14 | 15 | /// 16 | /// Work in progress. 17 | /// 18 | [Obsolete] 19 | internal class VirtualizingUniformGrid : System.Windows.Controls.Control { } 20 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Controls/VirtualizingWrapPanel/VirtualizingWrapPanel.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Controls/VirtualizingWrapPanel/VirtualizingWrapPanel.bmp -------------------------------------------------------------------------------- /src/Wpf.Ui/Converters/BoolToVisibilityConverter.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using System.Windows.Data; 7 | 8 | namespace Wpf.Ui.Converters; 9 | 10 | internal class BoolToVisibilityConverter : IValueConverter 11 | { 12 | public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture) 13 | { 14 | return value is true ? Visibility.Visible : Visibility.Collapsed; 15 | } 16 | 17 | public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) 18 | { 19 | throw new NotImplementedException(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Converters/ContentDialogButtonEnumToBoolConverter.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using Wpf.Ui.Controls; 7 | 8 | namespace Wpf.Ui.Converters; 9 | 10 | internal class ContentDialogButtonEnumToBoolConverter : EnumToBoolConverter { } 11 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Converters/NullToVisibilityConverter.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using System.Windows.Data; 7 | 8 | namespace Wpf.Ui.Converters; 9 | 10 | internal class NullToVisibilityConverter : IValueConverter 11 | { 12 | public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture) 13 | { 14 | return value is null ? Visibility.Collapsed : Visibility.Visible; 15 | } 16 | 17 | public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) 18 | { 19 | throw new NotImplementedException(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Converters/TextToAsteriskConverter.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using System.Windows.Data; 7 | 8 | namespace Wpf.Ui.Converters; 9 | 10 | internal class TextToAsteriskConverter : IValueConverter 11 | { 12 | public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture) 13 | { 14 | return new string('*', value?.ToString()?.Length ?? 0); 15 | } 16 | 17 | public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) 18 | { 19 | throw new NotImplementedException(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Wpf.Ui/GlobalUsings.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | global using System; 7 | global using System.Collections.Generic; 8 | global using System.ComponentModel; 9 | global using System.Globalization; 10 | global using System.Linq; 11 | global using System.Threading; 12 | global using System.Threading.Tasks; 13 | global using System.Windows; 14 | global using System.Windows.Interop; 15 | global using System.Windows.Media; 16 | global using Wpf.Ui.Extensions; 17 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Hardware/HardwareAcceleration.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Hardware; 7 | 8 | /// 9 | /// Set of tools for hardware acceleration. 10 | /// 11 | public static class HardwareAcceleration 12 | { 13 | /// 14 | /// Determines whether the provided rendering tier is supported. 15 | /// 16 | /// Hardware acceleration rendering tier to check. 17 | /// if tier is supported. 18 | public static bool IsSupported(RenderingTier tier) 19 | { 20 | return RenderCapability.Tier >> 16 >= (int)tier; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Resources/DefaultContextMenu.xaml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/Wpf.Ui/Resources/Fonts/FluentSystemIcons-Filled.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Resources/Fonts/FluentSystemIcons-Filled.ttf -------------------------------------------------------------------------------- /src/Wpf.Ui/Resources/Fonts/FluentSystemIcons-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lepoco/wpfui/6252303dcb8f944fd1511b105c409be21bc98c56/src/Wpf.Ui/Resources/Fonts/FluentSystemIcons-Regular.ttf -------------------------------------------------------------------------------- /src/Wpf.Ui/UiAssembly.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | using System.Reflection; 7 | 8 | namespace Wpf.Ui; 9 | 10 | /// 11 | /// Allows to get the WPF UI assembly through . 12 | /// 13 | public static class UiAssembly 14 | { 15 | /// 16 | /// Gets the WPF UI assembly. 17 | /// 18 | public static Assembly Assembly => Assembly.GetExecutingAssembly(); 19 | } 20 | -------------------------------------------------------------------------------- /tests/Wpf.Ui.Gallery.UnitTests/UnitTest1.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | namespace Wpf.Ui.Gallery.UnitTests; 7 | 8 | public class UnitTest1 9 | { 10 | [Fact] 11 | public void Test1() { } 12 | } 13 | -------------------------------------------------------------------------------- /tests/Wpf.Ui.Gallery.UnitTests/Usings.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | global using Xunit; 7 | -------------------------------------------------------------------------------- /tests/Wpf.Ui.UnitTests/Usings.cs: -------------------------------------------------------------------------------- 1 | // This Source Code Form is subject to the terms of the MIT License. 2 | // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. 3 | // Copyright (C) Leszek Pomianowski and WPF UI Contributors. 4 | // All Rights Reserved. 5 | 6 | global using System; 7 | global using System.Windows; 8 | global using NSubstitute; 9 | global using Xunit; 10 | --------------------------------------------------------------------------------