Skip to content

Commit adb79b4

Browse files
committed
Renamed AccentExtractor to AccentAnalyzer
1 parent d0e7290 commit adb79b4

18 files changed

+60
-60
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<Project>
2+
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.props))" Condition="Exists('$([MSBuild]::GetPathOfFileAbove(Directory.Build.props))')" />
3+
4+
<PropertyGroup>
5+
<ToolkitComponentName>Helpers.AccentAnalyzer</ToolkitComponentName>
6+
</PropertyGroup>
7+
8+
<!-- Sets this up as a toolkit component's sample project -->
9+
<Import Project="$(ToolingDirectory)\ToolkitComponent.SampleProject.props" />
10+
<ItemGroup>
11+
<Compile Update="AccentAnalyzerSample.xaml.cs">
12+
<DependentUpon>AccentAnalyzerSample.xaml</DependentUpon>
13+
</Compile>
14+
<Compile Update="AccentAnalyzerSampleOptionsPane.xaml.cs">
15+
<DependentUpon>AccentAnalyzerSampleOptionsPane.xaml</DependentUpon>
16+
</Compile>
17+
</ItemGroup>
18+
</Project>
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
title: Extensions.AccentExtractor
3-
author: githubaccount
2+
title: AccentAnalyzer
3+
author: Avid29
44
description: TODO: Your experiment's description here
5-
keywords: Extensions.AccentExtractor, Control, Layout
5+
keywords: Accents, Color, Helpers
66
dev_langs:
77
- csharp
8-
category: Controls
9-
subcategory: Layout
8+
category: Helpers
9+
subcategory: Miscellaneous
1010
discussion-id: 0
1111
issue-id: 0
1212
icon: assets/icon.png
@@ -20,7 +20,7 @@ icon: assets/icon.png
2020

2121
<!-- Be sure to update the discussion/issue numbers above with your Labs discussion/issue id numbers in order for UI links to them from the sample app to work. -->
2222

23-
# Extensions.AccentExtractor
23+
# AccentAnalyzer
2424

2525
TODO: Fill in information about this experiment and how to get started here...
2626

@@ -29,4 +29,4 @@ TODO: Fill in information about this experiment and how to get started here...
2929
You can inherit from an existing component as well, like `Panel`, this example shows a control without a
3030
XAML Style that will be more light-weight to consume by an app developer:
3131

32-
> [!Sample AccentExtractorSample]
32+
> [!Sample AccentAnalyzerSample]

components/Extensions.AccentExtractor/samples/AccentExtractorSample.xaml renamed to components/AccentAnalyzer/samples/AccentAnalyzerSample.xaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<!-- 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. -->
2-
<Page x:Class="Extensions.AccentExtractorExperiment.Samples.AccentExtractorSample"
2+
<Page x:Class="AccentAnalyzerExperiment.Samples.AccentAnalyzerSample"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
55
xmlns:extensions="using:CommunityToolkit.WinUI.Extensions"
66
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
7-
xmlns:local="using:Extensions.AccentExtractorExperiment.Samples"
7+
xmlns:local="using:AccentAnalyzerExperiment.Samples"
88
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
99
xmlns:behaviors="using:CommunityToolkit.WinUI.Behaviors"
1010
xmlns:interactivity="using:Microsoft.Xaml.Interactivity"
@@ -20,12 +20,11 @@
2020
<ColumnDefinition Width="*" />
2121
</Grid.ColumnDefinitions>
2222

23-
<StackPanel>
23+
<StackPanel VerticalAlignment="Center">
2424
<Image x:Name="AccentedImage"
25-
Source="/Extensions.AccentExtractorExperiment.Samples/Assets/icon.png"
25+
Source="/Helpers.AccentAnalyzerExperiment.Samples/Assets/icon.png"
2626
Stretch="UniformToFill"
2727
HorizontalAlignment="Center"
28-
VerticalAlignment="Center"
2928
Width="200"
3029
Height="200"
3130
Margin="20">
@@ -35,7 +34,8 @@
3534
</interactivity:EventTriggerBehavior>
3635
</interactivity:Interaction.Behaviors>
3736
</Image>
38-
<TextBlock Text="{x:Bind AccentAnalyzer.Colorfulness, Mode=OneWay}"/>
37+
<TextBlock Text="{x:Bind AccentAnalyzer.Colorfulness, Mode=OneWay}"
38+
HorizontalAlignment="Center"/>
3939
</StackPanel>
4040

4141
<Grid Grid.Column="1" Height="400" Width="400">
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
using Microsoft.UI.Xaml.Media.Imaging;
66

7-
namespace Extensions.AccentExtractorExperiment.Samples;
7+
namespace AccentAnalyzerExperiment.Samples;
88

99
/// <summary>
1010
/// An example sample page of a custom control inheriting from Panel.
1111
/// </summary>
12-
[ToolkitSample(id: nameof(AccentExtractorSample), "Accent Extractor Extensions", description: $"A sample for showing how the accent extractor can be used.")]
13-
public sealed partial class AccentExtractorSample : Page
12+
[ToolkitSample(id: nameof(AccentAnalyzerSample), "AccentAnalyzer helper", description: $"A sample for showing how the accent analyzer can be used.")]
13+
public sealed partial class AccentAnalyzerSample : Page
1414
{
15-
public AccentExtractorSample()
15+
public AccentAnalyzerSample()
1616
{
1717
this.InitializeComponent();
1818
}
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<UserControl
2-
x:Class="Extensions.AccentExtractorExperiment.Samples.AccentExtractorSampleOptionsPane"
2+
x:Class="AccentAnalyzerExperiment.Samples.AccentAnalyzerSampleOptionsPane"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5-
xmlns:local="using:Extensions.AccentExtractorExperiment.Samples"
5+
xmlns:local="using:AccentAnalyzerExperiment.Samples"
66
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
77
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
88
mc:Ignorable="d">
99

1010
<StackPanel Orientation="Horizontal">
11-
<TextBox x:Name="UrlTextbox" PlaceholderText="Enter a url"/>
11+
<TextBox x:Name="UrlTextbox" PlaceholderText="Enter a url" MaxWidth="300"/>
1212
<Button Content="Set Image" Click="Button_Click"/>
1313
</StackPanel>
1414
</UserControl>
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44

55
using Microsoft.UI.Xaml.Media.Imaging;
66

7-
namespace Extensions.AccentExtractorExperiment.Samples;
7+
namespace AccentAnalyzerExperiment.Samples;
88

9-
[ToolkitSampleOptionsPane(nameof(AccentExtractorSample))]
10-
public partial class AccentExtractorSampleOptionsPane : UserControl
9+
[ToolkitSampleOptionsPane(nameof(AccentAnalyzerSample))]
10+
public partial class AccentAnalyzerSampleOptionsPane : UserControl
1111
{
12-
private AccentExtractorSample.XamlNamedPropertyRelay _sample;
12+
private AccentAnalyzerSample.XamlNamedPropertyRelay _sample;
1313

14-
public AccentExtractorSampleOptionsPane(AccentExtractorSample sample)
14+
public AccentAnalyzerSampleOptionsPane(AccentAnalyzerSample sample)
1515
{
1616
this.InitializeComponent();
1717

18-
_sample = new AccentExtractorSample.XamlNamedPropertyRelay(sample);
18+
_sample = new AccentAnalyzerSample.XamlNamedPropertyRelay(sample);
1919
}
2020

2121
private void Button_Click(object sender, RoutedEventArgs e)

0 commit comments

Comments
 (0)