Skip to content

Commit 9cd306f

Browse files
committed
Renamed component to ColorAnalyzer, clean up sample UX
1 parent 8486c9b commit 9cd306f

22 files changed

+44
-34
lines changed
File renamed without changes.

components/AccentAnalyzer/samples/AccentAnalyzerSample.xaml renamed to components/ColorAnalyzer/samples/AccentAnalyzerSample.xaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
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="AccentAnalyzerExperiment.Samples.AccentAnalyzerSample"
2+
<Page x:Class="ColorAnalyzerExperiment.Samples.AccentAnalyzerSample"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
55
xmlns:behaviors="using:CommunityToolkit.WinUI.Behaviors"
66
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
77
xmlns:helpers="using:CommunityToolkit.WinUI.Helpers"
88
xmlns:interactivity="using:Microsoft.Xaml.Interactivity"
9-
xmlns:local="using:AccentAnalyzerExperiment.Samples"
9+
xmlns:local="using:ColorAnalyzerExperiment.Samples"
1010
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
1111
mc:Ignorable="d">
1212

@@ -21,13 +21,11 @@
2121
<ColumnDefinition Width="*" />
2222
</Grid.ColumnDefinitions>
2323

24-
<StackPanel VerticalAlignment="Center">
24+
<StackPanel VerticalAlignment="Center"
25+
Padding="20">
2526
<Image x:Name="AccentedImage"
26-
MaxWidth="256"
27-
MaxHeight="256"
28-
Margin="20"
2927
HorizontalAlignment="Center"
30-
Source="/Helpers.AccentAnalyzerExperiment.Samples/Assets/StockImages/Bloom.jpg"
28+
Source="/ColorAnalyzerExperiment.Samples/Assets/StockImages/Bloom.jpg"
3129
Stretch="Uniform">
3230
<interactivity:Interaction.Behaviors>
3331
<interactivity:EventTriggerBehavior EventName="ImageOpened">

components/AccentAnalyzer/samples/AccentAnalyzerSample.xaml.cs renamed to components/ColorAnalyzer/samples/AccentAnalyzerSample.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
namespace AccentAnalyzerExperiment.Samples;
5+
namespace ColorAnalyzerExperiment.Samples;
66

77
/// <summary>
88
/// An example sample page of a custom control inheriting from Panel.

components/AccentAnalyzer/samples/AccentAnalyzer.Samples.csproj renamed to components/ColorAnalyzer/samples/ColorAnalyzer.Samples.csproj

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,19 @@
22
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.props))" Condition="Exists('$([MSBuild]::GetPathOfFileAbove(Directory.Build.props))')" />
33

44
<PropertyGroup>
5-
<ToolkitComponentName>Helpers.AccentAnalyzer</ToolkitComponentName>
5+
<ToolkitComponentName>ColorAnalyzer</ToolkitComponentName>
66
</PropertyGroup>
77

88
<!-- Sets this up as a toolkit component's sample project -->
99
<Import Project="$(ToolingDirectory)\ToolkitComponent.SampleProject.props" />
1010
<ItemGroup>
11-
<None Remove="Assets\StockImages\Bloom.jpg" />
12-
<None Remove="Assets\StockImages\Headphones.jpg" />
13-
<None Remove="Assets\StockImages\Paint.jpg" />
14-
</ItemGroup>
15-
<ItemGroup>
16-
<Content Update="Assets\StockImages\Bloom.jpg">
11+
<Content Include="Assets\StockImages\Bloom.jpg">
1712
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
1813
</Content>
19-
<Content Update="Assets\StockImages\Headphones.jpg">
14+
<Content Include="Assets\StockImages\Headphones.jpg">
2015
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
2116
</Content>
22-
<Content Update="Assets\StockImages\Paint.jpg">
17+
<Content Include="Assets\StockImages\Paint.jpg">
2318
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
2419
</Content>
2520
</ItemGroup>

0 commit comments

Comments
 (0)