├── Source
├── ClipboardStudio
│ ├── NativeMethods.txt
│ ├── Assets
│ │ ├── icon.ico
│ │ ├── LargeTile.scale-100.png
│ │ ├── LargeTile.scale-125.png
│ │ ├── LargeTile.scale-150.png
│ │ ├── LargeTile.scale-200.png
│ │ ├── LargeTile.scale-400.png
│ │ ├── SmallTile.scale-100.png
│ │ ├── SmallTile.scale-125.png
│ │ ├── SmallTile.scale-150.png
│ │ ├── SmallTile.scale-200.png
│ │ ├── SmallTile.scale-400.png
│ │ ├── StoreLogo.scale-100.png
│ │ ├── StoreLogo.scale-125.png
│ │ ├── StoreLogo.scale-150.png
│ │ ├── StoreLogo.scale-200.png
│ │ ├── StoreLogo.scale-400.png
│ │ ├── LockScreenLogo.scale-200.png
│ │ ├── SplashScreen.scale-100.png
│ │ ├── SplashScreen.scale-125.png
│ │ ├── SplashScreen.scale-150.png
│ │ ├── SplashScreen.scale-200.png
│ │ ├── SplashScreen.scale-400.png
│ │ ├── Square44x44Logo.scale-100.png
│ │ ├── Square44x44Logo.scale-125.png
│ │ ├── Square44x44Logo.scale-150.png
│ │ ├── Square44x44Logo.scale-200.png
│ │ ├── Square44x44Logo.scale-400.png
│ │ ├── Wide310x150Logo.scale-100.png
│ │ ├── Wide310x150Logo.scale-125.png
│ │ ├── Wide310x150Logo.scale-150.png
│ │ ├── Wide310x150Logo.scale-200.png
│ │ ├── Wide310x150Logo.scale-400.png
│ │ ├── Square150x150Logo.scale-100.png
│ │ ├── Square150x150Logo.scale-125.png
│ │ ├── Square150x150Logo.scale-150.png
│ │ ├── Square150x150Logo.scale-200.png
│ │ ├── Square150x150Logo.scale-400.png
│ │ ├── Square44x44Logo.targetsize-16.png
│ │ ├── Square44x44Logo.targetsize-24.png
│ │ ├── Square44x44Logo.targetsize-32.png
│ │ ├── Square44x44Logo.targetsize-48.png
│ │ ├── Square44x44Logo.targetsize-256.png
│ │ ├── Square44x44Logo.altform-unplated_targetsize-16.png
│ │ ├── Square44x44Logo.altform-unplated_targetsize-32.png
│ │ ├── Square44x44Logo.altform-unplated_targetsize-48.png
│ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png
│ │ ├── Square44x44Logo.altform-unplated_targetsize-256.png
│ │ ├── Square44x44Logo.altform-lightunplated_targetsize-16.png
│ │ ├── Square44x44Logo.altform-lightunplated_targetsize-24.png
│ │ ├── Square44x44Logo.altform-lightunplated_targetsize-32.png
│ │ ├── Square44x44Logo.altform-lightunplated_targetsize-48.png
│ │ └── Square44x44Logo.altform-lightunplated_targetsize-256.png
│ ├── Data
│ │ ├── Models
│ │ │ ├── Entry.cs
│ │ │ └── BaseEntity.cs
│ │ ├── DatabaseContext.cs
│ │ ├── DatabaseContextFactory.cs
│ │ ├── Migrations
│ │ │ ├── 20240407222457_Initial.cs
│ │ │ ├── DatabaseContextModelSnapshot.cs
│ │ │ └── 20240407222457_Initial.Designer.cs
│ │ └── Interceptors
│ │ │ └── DateTimeInterceptor.cs
│ ├── Properties
│ │ └── launchSettings.json
│ ├── ViewModels
│ │ ├── EntryViewModel.cs
│ │ ├── SettingsViewModel.cs
│ │ └── MainViewModel.cs
│ ├── Providers
│ │ ├── SettingsKeys.cs
│ │ └── SettingsProvider.cs
│ ├── App.xaml
│ ├── Extensions
│ │ ├── EntryExtensions.cs
│ │ ├── NativeMethods.cs
│ │ └── DataExtensions.cs
│ ├── app.manifest
│ ├── MainWindow.xaml
│ ├── Pages
│ │ ├── SettingsPage.xaml.cs
│ │ ├── MainPage.xaml.cs
│ │ ├── SettingsPage.xaml
│ │ └── MainPage.xaml
│ ├── Package.appxmanifest
│ ├── MainWindow.xaml.cs
│ ├── ClipboardStudio.csproj
│ └── App.xaml.cs
├── ClipboardStudio.slnx
└── .editorconfig
├── PRIVACY.md
├── README.md
├── LICENSE
├── .gitattributes
└── .gitignore
/Source/ClipboardStudio/NativeMethods.txt:
--------------------------------------------------------------------------------
1 | GetDpiForWindow
2 | FlashWindowEx
--------------------------------------------------------------------------------
/PRIVACY.md:
--------------------------------------------------------------------------------
1 | # Privacy Policy
2 |
3 | Clipboard Studio does not collect any user data beyond the data collected by Microsoft Store.
4 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/icon.ico
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/LargeTile.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/LargeTile.scale-100.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/LargeTile.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/LargeTile.scale-125.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/LargeTile.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/LargeTile.scale-150.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/LargeTile.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/LargeTile.scale-200.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/LargeTile.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/LargeTile.scale-400.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/SmallTile.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/SmallTile.scale-100.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/SmallTile.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/SmallTile.scale-125.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/SmallTile.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/SmallTile.scale-150.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/SmallTile.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/SmallTile.scale-200.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/SmallTile.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/SmallTile.scale-400.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/StoreLogo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/StoreLogo.scale-100.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/StoreLogo.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/StoreLogo.scale-125.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/StoreLogo.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/StoreLogo.scale-150.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/StoreLogo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/StoreLogo.scale-200.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/StoreLogo.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/StoreLogo.scale-400.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/LockScreenLogo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/LockScreenLogo.scale-200.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/SplashScreen.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/SplashScreen.scale-100.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/SplashScreen.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/SplashScreen.scale-125.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/SplashScreen.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/SplashScreen.scale-150.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/SplashScreen.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/SplashScreen.scale-200.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/SplashScreen.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/SplashScreen.scale-400.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square44x44Logo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square44x44Logo.scale-100.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square44x44Logo.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square44x44Logo.scale-125.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square44x44Logo.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square44x44Logo.scale-150.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square44x44Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square44x44Logo.scale-200.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square44x44Logo.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square44x44Logo.scale-400.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Wide310x150Logo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Wide310x150Logo.scale-100.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Wide310x150Logo.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Wide310x150Logo.scale-125.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Wide310x150Logo.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Wide310x150Logo.scale-150.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Wide310x150Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Wide310x150Logo.scale-200.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Wide310x150Logo.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Wide310x150Logo.scale-400.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square150x150Logo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square150x150Logo.scale-100.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square150x150Logo.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square150x150Logo.scale-125.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square150x150Logo.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square150x150Logo.scale-150.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square150x150Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square150x150Logo.scale-200.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square150x150Logo.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square150x150Logo.scale-400.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square44x44Logo.targetsize-16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square44x44Logo.targetsize-16.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square44x44Logo.targetsize-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square44x44Logo.targetsize-24.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square44x44Logo.targetsize-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square44x44Logo.targetsize-32.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square44x44Logo.targetsize-48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square44x44Logo.targetsize-48.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square44x44Logo.targetsize-256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square44x44Logo.targetsize-256.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Data/Models/Entry.cs:
--------------------------------------------------------------------------------
1 | namespace ClipboardStudio.Data.Models
2 | {
3 | public class Entry : BaseEntity
4 | {
5 | public string Text { get; set; }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square44x44Logo.altform-unplated_targetsize-16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square44x44Logo.altform-unplated_targetsize-16.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square44x44Logo.altform-unplated_targetsize-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square44x44Logo.altform-unplated_targetsize-32.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square44x44Logo.altform-unplated_targetsize-48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square44x44Logo.altform-unplated_targetsize-48.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square44x44Logo.targetsize-24_altform-unplated.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square44x44Logo.targetsize-24_altform-unplated.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square44x44Logo.altform-unplated_targetsize-256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square44x44Logo.altform-unplated_targetsize-256.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square44x44Logo.altform-lightunplated_targetsize-16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square44x44Logo.altform-lightunplated_targetsize-16.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square44x44Logo.altform-lightunplated_targetsize-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square44x44Logo.altform-lightunplated_targetsize-24.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square44x44Logo.altform-lightunplated_targetsize-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square44x44Logo.altform-lightunplated_targetsize-32.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square44x44Logo.altform-lightunplated_targetsize-48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square44x44Logo.altform-lightunplated_targetsize-48.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Assets/Square44x44Logo.altform-lightunplated_targetsize-256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peymanr34/clipboard-studio/HEAD/Source/ClipboardStudio/Assets/Square44x44Logo.altform-lightunplated_targetsize-256.png
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "profiles": {
3 | "ClipboardStudio (Package)": {
4 | "commandName": "MsixPackage"
5 | },
6 | "ClipboardStudio (Unpackaged)": {
7 | "commandName": "Project"
8 | }
9 | }
10 | }
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Data/Models/BaseEntity.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel.DataAnnotations;
3 |
4 | namespace ClipboardStudio.Data.Models
5 | {
6 | public abstract class BaseEntity
7 | {
8 | [Key]
9 | public int Id { get; set; }
10 |
11 | public DateTime CreatedDateUtc { get; set; }
12 |
13 | public DateTime ModifyDateUtc { get; set; }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/ViewModels/EntryViewModel.cs:
--------------------------------------------------------------------------------
1 | using MvvmGen;
2 |
3 | namespace ClipboardStudio.ViewModels
4 | {
5 | [ViewModel]
6 | public partial class EntryViewModel
7 | {
8 | [Property]
9 | private int _id;
10 |
11 | [Property]
12 | private string _title;
13 |
14 | [Property]
15 | private string _text;
16 |
17 | public bool HasTitle
18 | => !string.IsNullOrEmpty(Title);
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Providers/SettingsKeys.cs:
--------------------------------------------------------------------------------
1 | namespace ClipboardStudio
2 | {
3 | public static class SettingsKeys
4 | {
5 | public const string CaptureAllowed = "CaptureAllowed";
6 |
7 | public const string NotificationAllowed = "NotificationAllowed";
8 |
9 | public const string TrayIconEnabled = "TrayIconEnabled";
10 |
11 | public const string CloseToTrayEnabled = "CloseToTrayEnabled";
12 |
13 | public const string LaunchToTrayEnabled = "LaunchToTrayEnabled";
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio.slnx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Data/DatabaseContext.cs:
--------------------------------------------------------------------------------
1 | using ClipboardStudio.Data.Interceptors;
2 | using ClipboardStudio.Data.Models;
3 | using Microsoft.EntityFrameworkCore;
4 |
5 | namespace ClipboardStudio.Data
6 | {
7 | public class DatabaseContext(DbContextOptions options)
8 | : DbContext(options)
9 | {
10 | public DbSet Entries { get; set; }
11 |
12 | protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
13 | {
14 | optionsBuilder?.AddInterceptors(new DateTimeInterceptor());
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Data/DatabaseContextFactory.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.EntityFrameworkCore;
2 | using Microsoft.EntityFrameworkCore.Design;
3 |
4 | namespace ClipboardStudio.Data
5 | {
6 | public class DatabaseContextFactory : IDesignTimeDbContextFactory
7 | {
8 | public DatabaseContext CreateDbContext(string[] args)
9 | {
10 | var optionsBuilder = new DbContextOptionsBuilder();
11 | optionsBuilder.UseSqlite("Data Source=data.db");
12 |
13 | return new DatabaseContext(optionsBuilder.Options);
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/App.xaml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Clipboard Studio
2 |
3 | Clipboard Studio is an open-source clipboard management application to help you keep track of your clipboard text history.
4 |
5 | ## Features
6 |
7 | - Import from Windows Clipboard History
8 | - Automatic Clipboard Capture
9 | - System Tray Support
10 | - Unlimited History
11 | - Export to File
12 |
13 | ## Installation
14 |
15 | You can install Clipboard Studio via the Microsoft Store.
16 |
17 |
18 |
19 |
20 |
21 | ## License
22 |
23 | This project is licensed under the [MIT License](LICENSE).
24 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Extensions/EntryExtensions.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 | using System.Web;
4 | using ClipboardStudio.Data.Models;
5 |
6 | namespace ClipboardStudio
7 | {
8 | public static class EntryExtensions
9 | {
10 | public static string GetTitle(this Entry entry)
11 | {
12 | if (Uri.TryCreate(entry.Text, UriKind.Absolute, out var uri))
13 | {
14 | var path = HttpUtility.UrlDecode(uri.AbsolutePath);
15 |
16 | if (Path.HasExtension(path))
17 | {
18 | return Path.GetFileName(path);
19 | }
20 | }
21 |
22 | return string.Empty;
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Providers/SettingsProvider.cs:
--------------------------------------------------------------------------------
1 | using Windows.Storage;
2 |
3 | namespace ClipboardStudio.Providers
4 | {
5 | public class SettingsProvider(ApplicationDataContainer settings)
6 | {
7 | private readonly ApplicationDataContainer _settings = settings;
8 |
9 | public void SetValue(string key, T value)
10 | {
11 | _settings.Values[key] = value;
12 | }
13 |
14 | public T GetValue(string key, T defaultValue)
15 | {
16 | var value = _settings.Values[key];
17 |
18 | if (value is null)
19 | {
20 | return defaultValue;
21 | }
22 |
23 | return (T)value;
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/app.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | PerMonitorV2
17 |
18 |
19 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2024 Peyman Mohammadi
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Extensions/NativeMethods.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Runtime.InteropServices;
3 | using Windows.Win32;
4 | using Windows.Win32.Foundation;
5 | using Windows.Win32.UI.WindowsAndMessaging;
6 |
7 | namespace ClipboardStudio
8 | {
9 | internal static partial class NativeMethods
10 | {
11 | public static uint GetDpiForWindow(nint hwnd)
12 | {
13 | return PInvoke.GetDpiForWindow(new HWND(hwnd));
14 | }
15 |
16 | public static bool FlashWindowEx(nint hwnd, bool start = true)
17 | {
18 | var fInfo = new FLASHWINFO();
19 |
20 | fInfo.cbSize = Convert.ToUInt32(Marshal.SizeOf(fInfo));
21 | fInfo.hwnd = new HWND(hwnd);
22 |
23 | if (start)
24 | {
25 | fInfo.dwFlags = FLASHWINFO_FLAGS.FLASHW_ALL;
26 | fInfo.uCount = 2;
27 | }
28 | else
29 | {
30 | fInfo.dwFlags = FLASHWINFO_FLAGS.FLASHW_STOP;
31 | fInfo.uCount = 0;
32 | }
33 |
34 | fInfo.dwTimeout = 0;
35 |
36 | return PInvoke.FlashWindowEx(in fInfo);
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/MainWindow.xaml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
14 |
15 |
16 |
22 |
23 |
24 |
25 |
26 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Pages/SettingsPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using ClipboardStudio.ViewModels;
3 | using Microsoft.UI.Xaml;
4 | using Microsoft.UI.Xaml.Controls;
5 | using Microsoft.UI.Xaml.Navigation;
6 | using Windows.Services.Store;
7 | using WinRT.Interop;
8 |
9 | namespace ClipboardStudio.Pages
10 | {
11 | public sealed partial class SettingsPage : Page
12 | {
13 | public SettingsPage()
14 | {
15 | InitializeComponent();
16 | }
17 |
18 | public SettingsViewModel ViewModel { get; private set; }
19 |
20 | protected override void OnNavigatedTo(NavigationEventArgs e)
21 | {
22 | ViewModel = new SettingsViewModel();
23 | ViewModel.Load();
24 |
25 | base.OnNavigatedTo(e);
26 | }
27 |
28 | private void ImportButton_Click(object sender, RoutedEventArgs e)
29 | {
30 | ImportFlyout.Hide();
31 | }
32 |
33 | private async void RateAndReview_Click(object sender, RoutedEventArgs e)
34 | {
35 | var context = StoreContext.GetDefault();
36 |
37 | var hwnd = WindowNative.GetWindowHandle(App.MainWindow);
38 | InitializeWithWindow.Initialize(context, hwnd);
39 |
40 | await context.RequestRateAndReviewAppAsync();
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Data/Migrations/20240407222457_Initial.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using Microsoft.EntityFrameworkCore.Migrations;
3 |
4 | #nullable disable
5 |
6 | namespace ClipboardStudio.Data.Migrations
7 | {
8 | ///
9 | public partial class Initial : Migration
10 | {
11 | ///
12 | protected override void Up(MigrationBuilder migrationBuilder)
13 | {
14 | migrationBuilder.CreateTable(
15 | name: "Entries",
16 | columns: table => new
17 | {
18 | Id = table.Column(type: "INTEGER", nullable: false)
19 | .Annotation("Sqlite:Autoincrement", true),
20 | Text = table.Column(type: "TEXT", nullable: true),
21 | CreatedDateUtc = table.Column(type: "TEXT", nullable: false),
22 | ModifyDateUtc = table.Column(type: "TEXT", nullable: false)
23 | },
24 | constraints: table =>
25 | {
26 | table.PrimaryKey("PK_Entries", x => x.Id);
27 | });
28 | }
29 |
30 | ///
31 | protected override void Down(MigrationBuilder migrationBuilder)
32 | {
33 | migrationBuilder.DropTable(
34 | name: "Entries");
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Extensions/DataExtensions.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Linq;
3 | using System.Threading.Tasks;
4 | using ClipboardStudio.Data;
5 | using ClipboardStudio.Data.Models;
6 | using Microsoft.EntityFrameworkCore;
7 | using Windows.ApplicationModel.DataTransfer;
8 |
9 | namespace ClipboardStudio
10 | {
11 | public static class DataExtensions
12 | {
13 | public static async Task AddOrUpdateEntryAsync(this DatabaseContext context, DataPackageView package)
14 | {
15 | bool? result = null;
16 |
17 | if (package.Contains(StandardDataFormats.Text))
18 | {
19 | var text = await package.GetTextAsync();
20 |
21 | var entry = context.Entries
22 | .FirstOrDefault(x => EF.Functions.Collate(x.Text, "NOCASE") == text);
23 |
24 | if (entry is null)
25 | {
26 | entry = new Entry
27 | {
28 | Text = text,
29 | };
30 |
31 | context.Entries.Add(entry);
32 | result = true;
33 | }
34 | else
35 | {
36 | entry.ModifyDateUtc = DateTime.UtcNow;
37 | result = false;
38 | }
39 |
40 | context.SaveChanges();
41 | }
42 |
43 | return result;
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Data/Migrations/DatabaseContextModelSnapshot.cs:
--------------------------------------------------------------------------------
1 | //
2 | using System;
3 | using ClipboardStudio.Data;
4 | using Microsoft.EntityFrameworkCore;
5 | using Microsoft.EntityFrameworkCore.Infrastructure;
6 | using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
7 |
8 | #nullable disable
9 |
10 | namespace ClipboardStudio.Data.Migrations
11 | {
12 | [DbContext(typeof(DatabaseContext))]
13 | partial class DatabaseContextModelSnapshot : ModelSnapshot
14 | {
15 | protected override void BuildModel(ModelBuilder modelBuilder)
16 | {
17 | #pragma warning disable 612, 618
18 | modelBuilder.HasAnnotation("ProductVersion", "8.0.3");
19 |
20 | modelBuilder.Entity("ClipboardStudio.Data.Models.Entry", b =>
21 | {
22 | b.Property("Id")
23 | .ValueGeneratedOnAdd()
24 | .HasColumnType("INTEGER");
25 |
26 | b.Property("CreatedDateUtc")
27 | .HasColumnType("TEXT");
28 |
29 | b.Property("ModifyDateUtc")
30 | .HasColumnType("TEXT");
31 |
32 | b.Property("Text")
33 | .HasColumnType("TEXT");
34 |
35 | b.HasKey("Id");
36 |
37 | b.ToTable("Entries");
38 | });
39 | #pragma warning restore 612, 618
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Data/Migrations/20240407222457_Initial.Designer.cs:
--------------------------------------------------------------------------------
1 | //
2 | using System;
3 | using ClipboardStudio.Data;
4 | using Microsoft.EntityFrameworkCore;
5 | using Microsoft.EntityFrameworkCore.Infrastructure;
6 | using Microsoft.EntityFrameworkCore.Migrations;
7 | using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
8 |
9 | #nullable disable
10 |
11 | namespace ClipboardStudio.Data.Migrations
12 | {
13 | [DbContext(typeof(DatabaseContext))]
14 | [Migration("20240407222457_Initial")]
15 | partial class Initial
16 | {
17 | ///
18 | protected override void BuildTargetModel(ModelBuilder modelBuilder)
19 | {
20 | #pragma warning disable 612, 618
21 | modelBuilder.HasAnnotation("ProductVersion", "8.0.3");
22 |
23 | modelBuilder.Entity("ClipboardStudio.Data.Models.Entry", b =>
24 | {
25 | b.Property("Id")
26 | .ValueGeneratedOnAdd()
27 | .HasColumnType("INTEGER");
28 |
29 | b.Property("CreatedDateUtc")
30 | .HasColumnType("TEXT");
31 |
32 | b.Property("ModifyDateUtc")
33 | .HasColumnType("TEXT");
34 |
35 | b.Property("Text")
36 | .HasColumnType("TEXT");
37 |
38 | b.HasKey("Id");
39 |
40 | b.ToTable("Entries");
41 | });
42 | #pragma warning restore 612, 618
43 | }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Data/Interceptors/DateTimeInterceptor.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Threading;
3 | using System.Threading.Tasks;
4 | using ClipboardStudio.Data.Models;
5 | using Microsoft.EntityFrameworkCore;
6 | using Microsoft.EntityFrameworkCore.Diagnostics;
7 |
8 | namespace ClipboardStudio.Data.Interceptors
9 | {
10 | public class DateTimeInterceptor : SaveChangesInterceptor
11 | {
12 | public override InterceptionResult SavingChanges(DbContextEventData eventData, InterceptionResult result)
13 | {
14 | SetDateTimeValues(eventData?.Context);
15 | return base.SavingChanges(eventData!, result);
16 | }
17 |
18 | public override ValueTask> SavingChangesAsync(DbContextEventData eventData, InterceptionResult result, CancellationToken cancellationToken = default)
19 | {
20 | SetDateTimeValues(eventData?.Context);
21 | return base.SavingChangesAsync(eventData!, result, cancellationToken);
22 | }
23 |
24 | private static void SetDateTimeValues(DbContext context)
25 | {
26 | if (context is null)
27 | {
28 | return;
29 | }
30 |
31 | foreach (var entry in context.ChangeTracker.Entries())
32 | {
33 | if (entry.Entity is BaseEntity entity)
34 | {
35 | var now = DateTime.UtcNow;
36 |
37 | if (entry.State == EntityState.Added)
38 | {
39 | entity.CreatedDateUtc = now;
40 | entity.ModifyDateUtc = now;
41 | }
42 | else if (entry.State == EntityState.Modified)
43 | {
44 | entity.ModifyDateUtc = now;
45 | }
46 | }
47 | }
48 | }
49 | }
50 | }
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Package.appxmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
10 |
11 |
15 |
16 |
17 |
18 |
19 | ClipboardStudio
20 | Peyman
21 | Assets\StoreLogo.png
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
37 |
43 |
44 |
45 |
46 |
47 |
48 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/MainWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | using System.Linq;
2 | using ClipboardStudio.Pages;
3 | using Microsoft.UI.Composition.SystemBackdrops;
4 | using Microsoft.UI.Xaml;
5 | using Microsoft.UI.Xaml.Controls;
6 | using Microsoft.UI.Xaml.Media;
7 | using Microsoft.UI.Xaml.Navigation;
8 | using Windows.Graphics;
9 | using WinRT.Interop;
10 |
11 | namespace ClipboardStudio
12 | {
13 | public sealed partial class MainWindow : Window
14 | {
15 | public MainWindow()
16 | {
17 | InitializeComponent();
18 | InitializeSystemBackdrop();
19 |
20 | Title = "Clipboard Studio";
21 | ExtendsContentIntoTitleBar = true;
22 |
23 | var size = GetScaledWindowSize(400, 700);
24 |
25 | AppWindow.Resize(size);
26 | AppWindow.SetIcon("Assets\\icon.ico");
27 |
28 | contentFrame.Navigate(typeof(MainPage));
29 | }
30 |
31 | private void InitializeSystemBackdrop()
32 | {
33 | if (MicaController.IsSupported())
34 | {
35 | SystemBackdrop = new MicaBackdrop()
36 | {
37 | Kind = MicaKind.BaseAlt,
38 | };
39 | }
40 | else if (DesktopAcrylicController.IsSupported())
41 | {
42 | SystemBackdrop = new DesktopAcrylicBackdrop();
43 | }
44 | }
45 |
46 | private SizeInt32 GetScaledWindowSize(int height, int width)
47 | {
48 | var hwnd = WindowNative.GetWindowHandle(this);
49 | var dpi = NativeMethods.GetDpiForWindow(hwnd);
50 |
51 | var scale = dpi / 96d;
52 |
53 | return new SizeInt32
54 | {
55 | Height = (int)(height * scale),
56 | Width = (int)(width * scale),
57 | };
58 | }
59 |
60 | private void ContentFrame_Navigated(object sender, NavigationEventArgs e)
61 | {
62 | var allowed = new[]
63 | {
64 | typeof(SettingsPage),
65 | };
66 |
67 | titleBar.IsBackButtonVisible = contentFrame.CanGoBack && allowed.Contains(e.SourcePageType);
68 | }
69 |
70 | private void TitleBar_BackRequested(TitleBar sender, object args)
71 | {
72 | if (contentFrame.CanGoBack)
73 | {
74 | contentFrame.GoBack();
75 | }
76 | }
77 | }
78 | }
79 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/ClipboardStudio.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | WinExe
5 | ClipboardStudio
6 | net8.0-windows10.0.22621.0
7 | 10.0.17763.0
8 |
9 |
10 |
11 | x86;x64;ARM64
12 | win-$(Platform).pubxml
13 | win-x86;win-x64;win-arm64
14 |
15 |
16 |
17 | true
18 | true
19 | app.manifest
20 |
21 |
22 |
23 | true
24 | true
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | all
42 |
43 |
44 |
45 | all
46 | runtime; build; native; contentfiles; analyzers; buildtransitive
47 |
48 |
49 | all
50 | runtime; build; native; contentfiles; analyzers; buildtransitive
51 |
52 |
53 |
54 |
59 |
60 |
61 |
62 |
63 |
68 |
69 | true
70 |
71 |
72 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Pages/MainPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Linq;
3 | using System.Threading.Tasks;
4 | using ClipboardStudio.ViewModels;
5 | using Microsoft.UI.Xaml;
6 | using Microsoft.UI.Xaml.Controls;
7 | using Microsoft.Windows.AppNotifications;
8 | using Microsoft.Windows.Storage.Pickers;
9 | using Windows.ApplicationModel.DataTransfer;
10 | using Windows.Storage;
11 | using Windows.Storage.Provider;
12 | using WinRT.Interop;
13 |
14 | namespace ClipboardStudio.Pages
15 | {
16 | public sealed partial class MainPage : Page
17 | {
18 | public MainPage()
19 | {
20 | InitializeComponent();
21 |
22 | ViewModel = new MainViewModel(App.Context, AppNotificationManager.Default);
23 | ViewModel.Load();
24 |
25 | Clipboard.ContentChanged += Clipboard_ContentChanged;
26 | }
27 |
28 | public MainViewModel ViewModel { get; private set; }
29 |
30 | private async void Clipboard_ContentChanged(object sender, object e)
31 | {
32 | if (ViewModel.CaptureAllowed)
33 | {
34 | if (await ViewModel.Paste())
35 | {
36 | var hwnd = WindowNative.GetWindowHandle(App.MainWindow);
37 |
38 | NativeMethods.FlashWindowEx(hwnd);
39 | await Task.Delay(1500);
40 | NativeMethods.FlashWindowEx(hwnd, false);
41 | }
42 | }
43 | }
44 |
45 | private void AutoSuggestBox_TextChanged(AutoSuggestBox sender, AutoSuggestBoxTextChangedEventArgs args)
46 | {
47 | if (args.Reason == AutoSuggestionBoxTextChangeReason.UserInput)
48 | {
49 | ViewModel.Load(sender.Text);
50 | }
51 | }
52 |
53 | private void Settings_Click(object sender, RoutedEventArgs e)
54 | {
55 | Frame.Navigate(typeof(SettingsPage));
56 | }
57 |
58 | private async void Save_Click(object sender, RoutedEventArgs e)
59 | {
60 | var savePicker = new FileSavePicker(App.MainWindow.AppWindow.Id)
61 | {
62 | SuggestedFileName = "list",
63 | SuggestedStartLocation = PickerLocationId.Desktop,
64 | };
65 |
66 | savePicker.FileTypeChoices.Add("Text File", [".txt"]);
67 |
68 | var file = await savePicker.PickSaveFileAsync();
69 |
70 | if (file is null)
71 | {
72 | return;
73 | }
74 |
75 | var storageFile = await StorageFile.GetFileFromPathAsync(file.Path);
76 |
77 | CachedFileManager.DeferUpdates(storageFile);
78 |
79 | var items = ViewModel.Items.Select(x => x.Text);
80 | await FileIO.WriteLinesAsync(storageFile, items);
81 |
82 | var status = await CachedFileManager.CompleteUpdatesAsync(storageFile);
83 |
84 | if (status == FileUpdateStatus.Complete ||
85 | status == FileUpdateStatus.CompleteAndRenamed)
86 | {
87 | ViewModel.ShowNotificationOrDefault("File has been saved.", storageFile.Name);
88 | return;
89 | }
90 |
91 | ViewModel.ShowNotificationOrDefault("File has not been saved.", storageFile.Name);
92 | }
93 |
94 | private void Clear_Click(object sender, RoutedEventArgs e)
95 | {
96 | clearFlyout.Hide();
97 | }
98 | }
99 | }
100 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Linq;
3 | using System.Threading.Tasks;
4 | using ClipboardStudio.Data;
5 | using ClipboardStudio.Providers;
6 | using Microsoft.EntityFrameworkCore;
7 | using Microsoft.UI.Windowing;
8 | using Microsoft.UI.Xaml;
9 | using Microsoft.UI.Xaml.Controls;
10 | using Windows.Storage;
11 | using WinUIEx;
12 |
13 | namespace ClipboardStudio
14 | {
15 | public partial class App : Application
16 | {
17 | public App()
18 | {
19 | InitializeComponent();
20 | }
21 |
22 | public static MainWindow MainWindow { get; private set; }
23 |
24 | public static DatabaseContext Context { get; private set; }
25 |
26 | public static SettingsProvider Settings { get; private set; }
27 |
28 | public static TrayIcon TrayIcon { get; private set; }
29 |
30 | protected override async void OnLaunched(LaunchActivatedEventArgs args)
31 | {
32 | Context = await GetDatabaseContextAsync();
33 |
34 | var pending = await Context.Database.GetPendingMigrationsAsync();
35 |
36 | if (pending.Any())
37 | {
38 | await Context.Database.MigrateAsync();
39 | }
40 |
41 | Settings = new SettingsProvider(ApplicationData.Current.LocalSettings);
42 |
43 | MainWindow = new MainWindow();
44 | MainWindow.AppWindow.Closing += AppWindow_Closing;
45 |
46 | var launchToTray = LaunchedFromStartupTask() &&
47 | Settings.GetValue(SettingsKeys.LaunchToTrayEnabled, false);
48 |
49 | if (!launchToTray)
50 | {
51 | MainWindow.Activate();
52 | }
53 |
54 | TrayIcon = new TrayIcon(0, "Assets\\icon.ico", "Clipboard Studio");
55 | TrayIcon.Selected += TrayIcon_Selected;
56 | TrayIcon.ContextMenu += TrayIcon_ContextMenu;
57 |
58 | TrayIcon.IsVisible = Settings.GetValue(SettingsKeys.TrayIconEnabled, false);
59 | }
60 |
61 | private static async Task GetDatabaseContextAsync()
62 | {
63 | var file = await ApplicationData.Current.LocalFolder
64 | .CreateFileAsync("data.db", CreationCollisionOption.OpenIfExists);
65 |
66 | var optionsBuilder = new DbContextOptionsBuilder();
67 | optionsBuilder.UseSqlite($"Data Source={file.Path}");
68 |
69 | return new DatabaseContext(optionsBuilder.Options);
70 | }
71 |
72 | private static bool LaunchedFromStartupTask()
73 | {
74 | var args = Windows.ApplicationModel.AppInstance.GetActivatedEventArgs();
75 | return args?.Kind == Windows.ApplicationModel.Activation.ActivationKind.StartupTask;
76 | }
77 |
78 | private static void TrayIcon_ContextMenu(TrayIcon sender, TrayIconEventArgs e)
79 | {
80 | var flyout = new MenuFlyout();
81 |
82 | var show = new MenuFlyoutItem { Text = "Show" };
83 | show.Click += (s, e) =>
84 | {
85 | MainWindow.Activate();
86 | };
87 |
88 | var exit = new MenuFlyoutItem { Text = "Exit" };
89 | exit.Click += (s, e) =>
90 | {
91 | MainWindow.Close();
92 | TrayIcon.Dispose();
93 | };
94 |
95 | flyout.Items.Add(show);
96 | flyout.Items.Add(new MenuFlyoutSeparator());
97 | flyout.Items.Add(exit);
98 |
99 | e.Flyout = flyout;
100 | }
101 |
102 | private void TrayIcon_Selected(TrayIcon sender, TrayIconEventArgs e)
103 | {
104 | MainWindow.Activate();
105 | }
106 |
107 | private static void AppWindow_Closing(AppWindow sender, AppWindowClosingEventArgs e)
108 | {
109 | if (TrayIcon.IsVisible && Settings.GetValue(SettingsKeys.CloseToTrayEnabled, false))
110 | {
111 | e.Cancel = true;
112 | sender.Hide();
113 |
114 | return;
115 | }
116 |
117 | TrayIcon.Dispose();
118 | }
119 | }
120 | }
121 |
--------------------------------------------------------------------------------
/Source/.editorconfig:
--------------------------------------------------------------------------------
1 |
2 | [*.{cs,vb}]
3 | #### Naming styles ####
4 |
5 | # Naming rules
6 |
7 | dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
8 | dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
9 | dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
10 |
11 | dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
12 | dotnet_naming_rule.types_should_be_pascal_case.symbols = types
13 | dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
14 |
15 | dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
16 | dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
17 | dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
18 |
19 | # Symbol specifications
20 |
21 | dotnet_naming_symbols.interface.applicable_kinds = interface
22 | dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
23 | dotnet_naming_symbols.interface.required_modifiers =
24 |
25 | dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
26 | dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
27 | dotnet_naming_symbols.types.required_modifiers =
28 |
29 | dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
30 | dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
31 | dotnet_naming_symbols.non_field_members.required_modifiers =
32 |
33 | # Naming styles
34 |
35 | dotnet_naming_style.begins_with_i.required_prefix = I
36 | dotnet_naming_style.begins_with_i.required_suffix =
37 | dotnet_naming_style.begins_with_i.word_separator =
38 | dotnet_naming_style.begins_with_i.capitalization = pascal_case
39 |
40 | dotnet_naming_style.pascal_case.required_prefix =
41 | dotnet_naming_style.pascal_case.required_suffix =
42 | dotnet_naming_style.pascal_case.word_separator =
43 | dotnet_naming_style.pascal_case.capitalization = pascal_case
44 |
45 | dotnet_naming_style.pascal_case.required_prefix =
46 | dotnet_naming_style.pascal_case.required_suffix =
47 | dotnet_naming_style.pascal_case.word_separator =
48 | dotnet_naming_style.pascal_case.capitalization = pascal_case
49 | dotnet_style_operator_placement_when_wrapping = beginning_of_line
50 | tab_width = 4
51 | indent_size = 4
52 | end_of_line = crlf
53 | dotnet_style_coalesce_expression = true:suggestion
54 | dotnet_style_null_propagation = true:suggestion
55 | dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
56 | dotnet_style_prefer_auto_properties = true:silent
57 | dotnet_style_object_initializer = true:suggestion
58 | dotnet_style_prefer_collection_expression = when_types_exactly_match:suggestion
59 | dotnet_style_collection_initializer = true:suggestion
60 | dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
61 | dotnet_style_prefer_conditional_expression_over_assignment = true:silent
62 | dotnet_style_prefer_conditional_expression_over_return = true:silent
63 | dotnet_style_explicit_tuple_names = true:suggestion
64 | dotnet_style_prefer_inferred_tuple_names = true:suggestion
65 | dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
66 | dotnet_style_prefer_compound_assignment = true:suggestion
67 | dotnet_style_prefer_simplified_interpolation = true:suggestion
68 |
69 | [*.cs]
70 | csharp_indent_labels = one_less_than_current
71 | csharp_using_directive_placement = outside_namespace:silent
72 | csharp_prefer_simple_using_statement = true:suggestion
73 | csharp_prefer_braces = true:silent
74 | csharp_style_namespace_declarations = block_scoped:silent
75 | csharp_style_prefer_method_group_conversion = true:silent
76 | csharp_style_prefer_top_level_statements = true:silent
77 | csharp_style_prefer_primary_constructors = true:suggestion
78 | csharp_style_expression_bodied_methods = false:silent
79 | csharp_style_expression_bodied_constructors = false:silent
80 | csharp_style_expression_bodied_operators = false:silent
81 | csharp_style_expression_bodied_properties = true:silent
82 | csharp_style_expression_bodied_indexers = true:silent
83 | csharp_style_expression_bodied_accessors = true:silent
84 | csharp_style_expression_bodied_lambdas = true:silent
85 | csharp_style_expression_bodied_local_functions = false:silent
--------------------------------------------------------------------------------
/Source/ClipboardStudio/ViewModels/SettingsViewModel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Linq;
3 | using System.Threading.Tasks;
4 | using MvvmGen;
5 | using Windows.ApplicationModel;
6 | using Windows.ApplicationModel.DataTransfer;
7 |
8 | namespace ClipboardStudio.ViewModels
9 | {
10 | [ViewModel]
11 | public partial class SettingsViewModel
12 | {
13 | [Property]
14 | private StartupTask _startupTask;
15 |
16 | [Property]
17 | [PropertyCallMethod(nameof(StartupChanged))]
18 | private bool _startupEnabled;
19 |
20 | [Property]
21 | private bool _canToggleStartup;
22 |
23 | [Property]
24 | [PropertyCallMethod(nameof(SaveSettings))]
25 | private bool _trayIconEnabled;
26 |
27 | [Property]
28 | [PropertyCallMethod(nameof(SaveSettings))]
29 | private bool _closeToTrayEnabled;
30 |
31 | [Property]
32 | [PropertyCallMethod(nameof(SaveSettings))]
33 | private bool _launchToTrayEnabled;
34 |
35 | [Property]
36 | private bool _canImportHistory;
37 |
38 | [Property]
39 | private bool _importCompleted;
40 |
41 | [Command(CanExecuteMethod = nameof(CanImport))]
42 | public async Task Import()
43 | {
44 | var result = await Clipboard.GetHistoryItemsAsync();
45 |
46 | if (result.Status != ClipboardHistoryItemsResultStatus.Success)
47 | {
48 | return;
49 | }
50 |
51 | foreach (var item in result.Items.OrderBy(x => x.Timestamp))
52 | {
53 | await App.Context.AddOrUpdateEntryAsync(item.Content);
54 | }
55 |
56 | ImportCompleted = true;
57 | }
58 |
59 | [CommandInvalidate(nameof(ImportCompleted))]
60 | [CommandInvalidate(nameof(CanImportHistory))]
61 | public bool CanImport()
62 | {
63 | return CanImportHistory && !ImportCompleted;
64 | }
65 |
66 | public async void Load()
67 | {
68 | StartupTask = await StartupTask.GetAsync("ClipboardStudioStartupTask");
69 | SetStartupState(StartupTask.State);
70 |
71 | LoadSettings();
72 | LoadClipboardSettings();
73 |
74 | Clipboard.HistoryEnabledChanged += Clipboard_HistoryEnabledChanged;
75 | }
76 |
77 | private async Task StartupChanged()
78 | {
79 | if (!CanToggleStartup)
80 | {
81 | return;
82 | }
83 |
84 | if (StartupEnabled)
85 | {
86 | await StartupTask.RequestEnableAsync();
87 | return;
88 | }
89 |
90 | StartupTask.Disable();
91 | }
92 |
93 | private void SetStartupState(StartupTaskState state)
94 | {
95 | // Set via the fields to prevent executing the 'StartupChanged' method.
96 | _startupEnabled = state is StartupTaskState.Enabled or StartupTaskState.EnabledByPolicy;
97 | _canToggleStartup = state is StartupTaskState.Enabled or StartupTaskState.Disabled;
98 |
99 | OnPropertyChanged(nameof(StartupEnabled));
100 | OnPropertyChanged(nameof(CanToggleStartup));
101 | }
102 |
103 | private void LoadClipboardSettings()
104 | {
105 | CanImportHistory = Clipboard.IsHistoryEnabled();
106 | }
107 |
108 | private void Clipboard_HistoryEnabledChanged(object sender, object e)
109 | {
110 | LoadClipboardSettings();
111 | }
112 |
113 | private void LoadSettings()
114 | {
115 | // Set via the fields to avoid invoking the save method.
116 | _trayIconEnabled = App.Settings.GetValue(SettingsKeys.TrayIconEnabled, false);
117 | _closeToTrayEnabled = App.Settings.GetValue(SettingsKeys.CloseToTrayEnabled, false);
118 | _launchToTrayEnabled = App.Settings.GetValue(SettingsKeys.LaunchToTrayEnabled, false);
119 |
120 | OnPropertyChanged(nameof(TrayIconEnabled));
121 | OnPropertyChanged(nameof(CloseToTrayEnabled));
122 | OnPropertyChanged(nameof(LaunchToTrayEnabled));
123 | }
124 |
125 | private void SaveSettings()
126 | {
127 | App.Settings.SetValue(SettingsKeys.TrayIconEnabled, TrayIconEnabled);
128 | App.Settings.SetValue(SettingsKeys.CloseToTrayEnabled, CloseToTrayEnabled);
129 | App.Settings.SetValue(SettingsKeys.LaunchToTrayEnabled, LaunchToTrayEnabled);
130 |
131 | App.TrayIcon.IsVisible = TrayIconEnabled;
132 | }
133 | }
134 | }
135 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/ViewModels/MainViewModel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.ObjectModel;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using ClipboardStudio.Data;
6 | using Microsoft.EntityFrameworkCore;
7 | using Microsoft.Windows.AppNotifications;
8 | using Microsoft.Windows.AppNotifications.Builder;
9 | using MvvmGen;
10 | using Windows.ApplicationModel.DataTransfer;
11 |
12 | namespace ClipboardStudio.ViewModels
13 | {
14 | [ViewModel]
15 | [Inject(typeof(AppNotificationManager), PropertyName = "NotificationManager")]
16 | [Inject(typeof(DatabaseContext), PropertyName = "Context")]
17 | public partial class MainViewModel
18 | {
19 | partial void OnInitialize()
20 | {
21 | LoadSettings();
22 | }
23 |
24 | [Property]
25 | private ObservableCollection _items;
26 |
27 | [Property]
28 | private EntryViewModel _selectedItem;
29 |
30 | [Property]
31 | [PropertyCallMethod(nameof(SaveSettings))]
32 | private bool _captureAllowed;
33 |
34 | [Property]
35 | [PropertyCallMethod(nameof(SaveSettings))]
36 | private bool _notificationAllowed;
37 |
38 | [Command(CanExecuteMethod = nameof(CanRemove))]
39 | public void Remove()
40 | {
41 | var item = Context.Entries
42 | .First(x => x.Id == SelectedItem.Id);
43 |
44 | Context.Entries.Remove(item);
45 | Context.SaveChanges();
46 |
47 | Items.Remove(SelectedItem);
48 | OnPropertyChanged(nameof(Items));
49 | }
50 |
51 | [CommandInvalidate(nameof(SelectedItem))]
52 | public bool CanRemove()
53 | {
54 | return SelectedItem is not null;
55 | }
56 |
57 | [Command(CanExecuteMethod = nameof(CanCopy))]
58 | public void Copy()
59 | {
60 | var package = new DataPackage();
61 | package.SetText(SelectedItem.Text);
62 |
63 | Clipboard.SetContent(package);
64 | ShowNotificationOrDefault("Copied to Clipboard", SelectedItem.Text);
65 | }
66 |
67 | [CommandInvalidate(nameof(SelectedItem))]
68 | public bool CanCopy()
69 | {
70 | return SelectedItem is not null;
71 | }
72 |
73 | [Command(CanExecuteMethod = nameof(CanClear))]
74 | public void Clear()
75 | {
76 | Context.Entries.ExecuteDelete();
77 | Items.Clear();
78 |
79 | OnPropertyChanged(nameof(Items));
80 | }
81 |
82 | [CommandInvalidate(nameof(Items))]
83 | public bool CanClear()
84 | {
85 | return Items.Any();
86 | }
87 |
88 | [Command]
89 | public async Task Paste()
90 | {
91 | var package = Clipboard.GetContent();
92 | var result = await Context.AddOrUpdateEntryAsync(package);
93 |
94 | if (result is null)
95 | {
96 | return false;
97 | }
98 |
99 | Load();
100 | return true;
101 | }
102 |
103 | public void Load(string search = null)
104 | {
105 | var query = Context.Entries
106 | .AsQueryable();
107 |
108 | if (!string.IsNullOrEmpty(search))
109 | {
110 | query = query.Where(x => EF.Functions.Like(x.Text, $"%{search}%"));
111 | }
112 | else
113 | {
114 | query = query.OrderByDescending(x => x.ModifyDateUtc);
115 | }
116 |
117 | var items = query
118 | .Select(x => new EntryViewModel
119 | {
120 | Id = x.Id,
121 | Text = x.Text,
122 | Title = x.GetTitle(),
123 | }).ToList();
124 |
125 | Items ??= [];
126 | Items.Clear();
127 |
128 | foreach (var item in items)
129 | {
130 | Items.Add(item);
131 | }
132 |
133 | SelectedItem ??= Items.FirstOrDefault();
134 | OnPropertyChanged(nameof(Items));
135 | }
136 |
137 | public void ShowNotificationOrDefault(string title, string content)
138 | {
139 | if (!NotificationAllowed)
140 | {
141 | return;
142 | }
143 |
144 | var builder = new AppNotificationBuilder()
145 | .SetAttributionText(title)
146 | .AddText(content)
147 | .MuteAudio();
148 |
149 | var result = builder.BuildNotification();
150 |
151 | result.ExpiresOnReboot = true;
152 | result.Expiration = DateTime.Now.AddSeconds(5);
153 |
154 | NotificationManager.Show(result);
155 | }
156 |
157 | private void LoadSettings()
158 | {
159 | // Set via the fields to avoid invoking the save method.
160 | _captureAllowed = App.Settings.GetValue(SettingsKeys.CaptureAllowed, false);
161 | _notificationAllowed = App.Settings.GetValue(SettingsKeys.NotificationAllowed, false);
162 | }
163 |
164 | private void SaveSettings()
165 | {
166 | App.Settings.SetValue(SettingsKeys.CaptureAllowed, CaptureAllowed);
167 | App.Settings.SetValue(SettingsKeys.NotificationAllowed, NotificationAllowed);
168 | }
169 | }
170 | }
171 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Pages/SettingsPage.xaml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
20 |
21 |
22 |
26 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
48 |
49 |
50 |
54 |
55 |
56 |
57 |
58 |
62 |
63 |
64 |
65 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
--------------------------------------------------------------------------------
/Source/ClipboardStudio/Pages/MainPage.xaml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
28 |
33 |
34 |
35 |
39 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
59 |
60 |
61 |
65 |
66 |
67 |
71 |
72 |
73 |
74 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
91 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.rsuser
8 | *.suo
9 | *.user
10 | *.userosscache
11 | *.sln.docstates
12 |
13 | # User-specific files (MonoDevelop/Xamarin Studio)
14 | *.userprefs
15 |
16 | # Mono auto generated files
17 | mono_crash.*
18 |
19 | # Build results
20 | [Dd]ebug/
21 | [Dd]ebugPublic/
22 | [Rr]elease/
23 | [Rr]eleases/
24 | x64/
25 | x86/
26 | [Ww][Ii][Nn]32/
27 | [Aa][Rr][Mm]/
28 | [Aa][Rr][Mm]64/
29 | bld/
30 | [Bb]in/
31 | [Oo]bj/
32 | [Oo]ut/
33 | [Ll]og/
34 | [Ll]ogs/
35 |
36 | # Visual Studio 2015/2017 cache/options directory
37 | .vs/
38 | # Uncomment if you have tasks that create the project's static files in wwwroot
39 | #wwwroot/
40 |
41 | # Visual Studio 2017 auto generated files
42 | Generated\ Files/
43 |
44 | # MSTest test Results
45 | [Tt]est[Rr]esult*/
46 | [Bb]uild[Ll]og.*
47 |
48 | # NUnit
49 | *.VisualState.xml
50 | TestResult.xml
51 | nunit-*.xml
52 |
53 | # Build Results of an ATL Project
54 | [Dd]ebugPS/
55 | [Rr]eleasePS/
56 | dlldata.c
57 |
58 | # Benchmark Results
59 | BenchmarkDotNet.Artifacts/
60 |
61 | # .NET Core
62 | project.lock.json
63 | project.fragment.lock.json
64 | artifacts/
65 |
66 | # ASP.NET Scaffolding
67 | ScaffoldingReadMe.txt
68 |
69 | # StyleCop
70 | StyleCopReport.xml
71 |
72 | # Files built by Visual Studio
73 | *_i.c
74 | *_p.c
75 | *_h.h
76 | *.ilk
77 | *.meta
78 | *.obj
79 | *.iobj
80 | *.pch
81 | *.pdb
82 | *.ipdb
83 | *.pgc
84 | *.pgd
85 | *.rsp
86 | *.sbr
87 | *.tlb
88 | *.tli
89 | *.tlh
90 | *.tmp
91 | *.tmp_proj
92 | *_wpftmp.csproj
93 | *.log
94 | *.vspscc
95 | *.vssscc
96 | .builds
97 | *.pidb
98 | *.svclog
99 | *.scc
100 |
101 | # Chutzpah Test files
102 | _Chutzpah*
103 |
104 | # Visual C++ cache files
105 | ipch/
106 | *.aps
107 | *.ncb
108 | *.opendb
109 | *.opensdf
110 | *.sdf
111 | *.cachefile
112 | *.VC.db
113 | *.VC.VC.opendb
114 |
115 | # Visual Studio profiler
116 | *.psess
117 | *.vsp
118 | *.vspx
119 | *.sap
120 |
121 | # Visual Studio Trace Files
122 | *.e2e
123 |
124 | # TFS 2012 Local Workspace
125 | $tf/
126 |
127 | # Guidance Automation Toolkit
128 | *.gpState
129 |
130 | # ReSharper is a .NET coding add-in
131 | _ReSharper*/
132 | *.[Rr]e[Ss]harper
133 | *.DotSettings.user
134 |
135 | # TeamCity is a build add-in
136 | _TeamCity*
137 |
138 | # DotCover is a Code Coverage Tool
139 | *.dotCover
140 |
141 | # AxoCover is a Code Coverage Tool
142 | .axoCover/*
143 | !.axoCover/settings.json
144 |
145 | # Coverlet is a free, cross platform Code Coverage Tool
146 | coverage*.json
147 | coverage*.xml
148 | coverage*.info
149 |
150 | # Visual Studio code coverage results
151 | *.coverage
152 | *.coveragexml
153 |
154 | # NCrunch
155 | _NCrunch_*
156 | .*crunch*.local.xml
157 | nCrunchTemp_*
158 |
159 | # MightyMoose
160 | *.mm.*
161 | AutoTest.Net/
162 |
163 | # Web workbench (sass)
164 | .sass-cache/
165 |
166 | # Installshield output folder
167 | [Ee]xpress/
168 |
169 | # DocProject is a documentation generator add-in
170 | DocProject/buildhelp/
171 | DocProject/Help/*.HxT
172 | DocProject/Help/*.HxC
173 | DocProject/Help/*.hhc
174 | DocProject/Help/*.hhk
175 | DocProject/Help/*.hhp
176 | DocProject/Help/Html2
177 | DocProject/Help/html
178 |
179 | # Click-Once directory
180 | publish/
181 |
182 | # Publish Web Output
183 | *.[Pp]ublish.xml
184 | *.azurePubxml
185 | # Note: Comment the next line if you want to checkin your web deploy settings,
186 | # but database connection strings (with potential passwords) will be unencrypted
187 | *.pubxml
188 | *.publishproj
189 |
190 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
191 | # checkin your Azure Web App publish settings, but sensitive information contained
192 | # in these scripts will be unencrypted
193 | PublishScripts/
194 |
195 | # NuGet Packages
196 | *.nupkg
197 | # NuGet Symbol Packages
198 | *.snupkg
199 | # The packages folder can be ignored because of Package Restore
200 | **/[Pp]ackages/*
201 | # except build/, which is used as an MSBuild target.
202 | !**/[Pp]ackages/build/
203 | # Uncomment if necessary however generally it will be regenerated when needed
204 | #!**/[Pp]ackages/repositories.config
205 | # NuGet v3's project.json files produces more ignorable files
206 | *.nuget.props
207 | *.nuget.targets
208 |
209 | # Microsoft Azure Build Output
210 | csx/
211 | *.build.csdef
212 |
213 | # Microsoft Azure Emulator
214 | ecf/
215 | rcf/
216 |
217 | # Windows Store app package directories and files
218 | AppPackages/
219 | BundleArtifacts/
220 | Package.StoreAssociation.xml
221 | _pkginfo.txt
222 | *.appx
223 | *.appxbundle
224 | *.appxupload
225 |
226 | # Visual Studio cache files
227 | # files ending in .cache can be ignored
228 | *.[Cc]ache
229 | # but keep track of directories ending in .cache
230 | !?*.[Cc]ache/
231 |
232 | # Others
233 | ClientBin/
234 | ~$*
235 | *~
236 | *.dbmdl
237 | *.dbproj.schemaview
238 | *.jfm
239 | *.pfx
240 | *.publishsettings
241 | orleans.codegen.cs
242 |
243 | # Including strong name files can present a security risk
244 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
245 | #*.snk
246 |
247 | # Since there are multiple workflows, uncomment next line to ignore bower_components
248 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
249 | #bower_components/
250 |
251 | # RIA/Silverlight projects
252 | Generated_Code/
253 |
254 | # Backup & report files from converting an old project file
255 | # to a newer Visual Studio version. Backup files are not needed,
256 | # because we have git ;-)
257 | _UpgradeReport_Files/
258 | Backup*/
259 | UpgradeLog*.XML
260 | UpgradeLog*.htm
261 | ServiceFabricBackup/
262 | *.rptproj.bak
263 |
264 | # SQL Server files
265 | *.mdf
266 | *.ldf
267 | *.ndf
268 |
269 | # Business Intelligence projects
270 | *.rdl.data
271 | *.bim.layout
272 | *.bim_*.settings
273 | *.rptproj.rsuser
274 | *- [Bb]ackup.rdl
275 | *- [Bb]ackup ([0-9]).rdl
276 | *- [Bb]ackup ([0-9][0-9]).rdl
277 |
278 | # Microsoft Fakes
279 | FakesAssemblies/
280 |
281 | # GhostDoc plugin setting file
282 | *.GhostDoc.xml
283 |
284 | # Node.js Tools for Visual Studio
285 | .ntvs_analysis.dat
286 | node_modules/
287 |
288 | # Visual Studio 6 build log
289 | *.plg
290 |
291 | # Visual Studio 6 workspace options file
292 | *.opt
293 |
294 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
295 | *.vbw
296 |
297 | # Visual Studio LightSwitch build output
298 | **/*.HTMLClient/GeneratedArtifacts
299 | **/*.DesktopClient/GeneratedArtifacts
300 | **/*.DesktopClient/ModelManifest.xml
301 | **/*.Server/GeneratedArtifacts
302 | **/*.Server/ModelManifest.xml
303 | _Pvt_Extensions
304 |
305 | # Paket dependency manager
306 | .paket/paket.exe
307 | paket-files/
308 |
309 | # FAKE - F# Make
310 | .fake/
311 |
312 | # CodeRush personal settings
313 | .cr/personal
314 |
315 | # Python Tools for Visual Studio (PTVS)
316 | __pycache__/
317 | *.pyc
318 |
319 | # Cake - Uncomment if you are using it
320 | # tools/**
321 | # !tools/packages.config
322 |
323 | # Tabs Studio
324 | *.tss
325 |
326 | # Telerik's JustMock configuration file
327 | *.jmconfig
328 |
329 | # BizTalk build output
330 | *.btp.cs
331 | *.btm.cs
332 | *.odx.cs
333 | *.xsd.cs
334 |
335 | # OpenCover UI analysis results
336 | OpenCover/
337 |
338 | # Azure Stream Analytics local run output
339 | ASALocalRun/
340 |
341 | # MSBuild Binary and Structured Log
342 | *.binlog
343 |
344 | # NVidia Nsight GPU debugger configuration file
345 | *.nvuser
346 |
347 | # MFractors (Xamarin productivity tool) working folder
348 | .mfractor/
349 |
350 | # Local History for Visual Studio
351 | .localhistory/
352 |
353 | # BeatPulse healthcheck temp database
354 | healthchecksdb
355 |
356 | # Backup folder for Package Reference Convert tool in Visual Studio 2017
357 | MigrationBackup/
358 |
359 | # Ionide (cross platform F# VS Code tools) working folder
360 | .ionide/
361 |
362 | # Fody - auto-generated XML schema
363 | FodyWeavers.xsd
--------------------------------------------------------------------------------