diff --git a/components/ColorAnalyzer/OpenSolution.bat b/components/ColorAnalyzer/OpenSolution.bat new file mode 100644 index 000000000..814a56d4b --- /dev/null +++ b/components/ColorAnalyzer/OpenSolution.bat @@ -0,0 +1,3 @@ +@ECHO OFF + +powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %* \ No newline at end of file diff --git a/components/ColorAnalyzer/samples/AccentAnalyzer.md b/components/ColorAnalyzer/samples/AccentAnalyzer.md new file mode 100644 index 000000000..352ab7cb8 --- /dev/null +++ b/components/ColorAnalyzer/samples/AccentAnalyzer.md @@ -0,0 +1,19 @@ +--- +title: AccentAnalyzer Helper +author: Avid29 +description: A tool for extracting colors from an image +keywords: Accents, Color, Helpers +dev_langs: + - csharp +category: Helpers +subcategory: Miscellaneous +discussion-id: 254 +issue-id: 0 +icon: assets/icon.png +--- + +# AccentAnalyzer + +The AccentAnalyzer provides a pure XAML way to use the colors extracted from an image as a binding source for any `Color` property. + +> [!Sample AccentAnalyzerSample] diff --git a/components/ColorAnalyzer/samples/AccentAnalyzerSample.xaml b/components/ColorAnalyzer/samples/AccentAnalyzerSample.xaml new file mode 100644 index 000000000..3bcdb91fa --- /dev/null +++ b/components/ColorAnalyzer/samples/AccentAnalyzerSample.xaml @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/components/ColorAnalyzer/samples/AccentAnalyzerSample.xaml.cs b/components/ColorAnalyzer/samples/AccentAnalyzerSample.xaml.cs new file mode 100644 index 000000000..fca29f2c6 --- /dev/null +++ b/components/ColorAnalyzer/samples/AccentAnalyzerSample.xaml.cs @@ -0,0 +1,17 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace ColorAnalyzerExperiment.Samples; + +/// +/// An example sample page of a custom control inheriting from Panel. +/// +[ToolkitSample(id: nameof(AccentAnalyzerSample), "AccentAnalyzer helper", description: $"A sample for showing how the accent analyzer can be used.")] +public sealed partial class AccentAnalyzerSample : Page +{ + public AccentAnalyzerSample() + { + this.InitializeComponent(); + } +} diff --git a/components/ColorAnalyzer/samples/Assets/StockImages/Flowers.jpg b/components/ColorAnalyzer/samples/Assets/StockImages/Flowers.jpg new file mode 100644 index 000000000..1ff3e4f34 Binary files /dev/null and b/components/ColorAnalyzer/samples/Assets/StockImages/Flowers.jpg differ diff --git a/components/ColorAnalyzer/samples/Assets/StockImages/Headphones.jpg b/components/ColorAnalyzer/samples/Assets/StockImages/Headphones.jpg new file mode 100644 index 000000000..ee6fc7e91 Binary files /dev/null and b/components/ColorAnalyzer/samples/Assets/StockImages/Headphones.jpg differ diff --git a/components/ColorAnalyzer/samples/Assets/StockImages/Paint.jpg b/components/ColorAnalyzer/samples/Assets/StockImages/Paint.jpg new file mode 100644 index 000000000..66cb4173f Binary files /dev/null and b/components/ColorAnalyzer/samples/Assets/StockImages/Paint.jpg differ diff --git a/components/ColorAnalyzer/samples/Assets/icon.png b/components/ColorAnalyzer/samples/Assets/icon.png new file mode 100644 index 000000000..8435bcaa9 Binary files /dev/null and b/components/ColorAnalyzer/samples/Assets/icon.png differ diff --git a/components/ColorAnalyzer/samples/ColorAnalyzer.Samples.csproj b/components/ColorAnalyzer/samples/ColorAnalyzer.Samples.csproj new file mode 100644 index 000000000..57dfffe41 --- /dev/null +++ b/components/ColorAnalyzer/samples/ColorAnalyzer.Samples.csproj @@ -0,0 +1,21 @@ + + + + + ColorAnalyzer + + + + + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + diff --git a/components/ColorAnalyzer/samples/Dependencies.props b/components/ColorAnalyzer/samples/Dependencies.props new file mode 100644 index 000000000..9c82a5c18 --- /dev/null +++ b/components/ColorAnalyzer/samples/Dependencies.props @@ -0,0 +1,22 @@ + + + + + + + + + + + + + diff --git a/components/ColorAnalyzer/samples/ImageOptionsPane.xaml b/components/ColorAnalyzer/samples/ImageOptionsPane.xaml new file mode 100644 index 000000000..44227d2c9 --- /dev/null +++ b/components/ColorAnalyzer/samples/ImageOptionsPane.xaml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + +