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 |
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 |
--------------------------------------------------------------------------------