Skip to content

Commit 3037a05

Browse files
committed
Adjusted samples so image is fitted to view
1 parent 3f29381 commit 3037a05

File tree

4 files changed

+16
-19
lines changed

4 files changed

+16
-19
lines changed

components/ColorAnalyzer/samples/ColorPaletteSampler/AccentColorSample.xaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- 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. -->
1+
<!-- 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. -->
22
<local:ColorPaletteSamplerToolkitSampleBase x:Class="ColorAnalyzerExperiment.Samples.AccentColorSample"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
@@ -29,8 +29,8 @@
2929
<ColumnDefinition Width="*" />
3030
</Grid.ColumnDefinitions>
3131

32-
<StackPanel MaxHeight="250"
33-
VerticalAlignment="Center">
32+
<Grid Margin="20"
33+
VerticalAlignment="Center">
3434
<Image x:Name="SampledImage"
3535
HorizontalAlignment="Center"
3636
Source="{x:Bind SelectedImage, Mode=OneWay}"
@@ -42,7 +42,7 @@
4242
</interactivity:EventTriggerBehavior>
4343
</interactivity:Interaction.Behaviors>
4444
</Image>
45-
</StackPanel>
45+
</Grid>
4646

4747
<Grid Grid.Column="1"
4848
MaxWidth="400"

components/ColorAnalyzer/samples/ColorPaletteSampler/BaseColorSample.xaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- 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. -->
1+
<!-- 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. -->
22
<local:ColorPaletteSamplerToolkitSampleBase x:Class="ColorAnalyzerExperiment.Samples.BaseColorSample"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
@@ -29,9 +29,8 @@
2929
<ColumnDefinition Width="*" />
3030
</Grid.ColumnDefinitions>
3131

32-
<StackPanel MaxHeight="250"
33-
Padding="20"
34-
VerticalAlignment="Center">
32+
<Grid Margin="20"
33+
VerticalAlignment="Center">
3534
<Image x:Name="SampledImage"
3635
HorizontalAlignment="Center"
3736
Source="{x:Bind SelectedImage, Mode=OneWay}"
@@ -43,7 +42,7 @@
4342
</interactivity:EventTriggerBehavior>
4443
</interactivity:Interaction.Behaviors>
4544
</Image>
46-
</StackPanel>
45+
</Grid>
4746

4847
<Grid Grid.Column="1"
4948
MaxWidth="400"

components/ColorAnalyzer/samples/ColorPaletteSampler/ColorWeightSample.xaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- 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. -->
1+
<!-- 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. -->
22
<local:ColorPaletteSamplerToolkitSampleBase x:Class="ColorAnalyzerExperiment.Samples.ColorWeightSample"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
@@ -29,9 +29,8 @@
2929
<ColumnDefinition Width="*" />
3030
</Grid.ColumnDefinitions>
3131

32-
<StackPanel MaxHeight="250"
33-
Padding="20"
34-
VerticalAlignment="Center">
32+
<Grid Margin="20"
33+
VerticalAlignment="Center">
3534
<Image x:Name="SampledImage"
3635
HorizontalAlignment="Center"
3736
Source="{x:Bind SelectedImage, Mode=OneWay}"
@@ -43,7 +42,7 @@
4342
</interactivity:EventTriggerBehavior>
4443
</interactivity:Interaction.Behaviors>
4544
</Image>
46-
</StackPanel>
45+
</Grid>
4746

4847
<Grid Grid.Column="1"
4948
MaxWidth="400"

components/ColorAnalyzer/samples/ColorPaletteSampler/MultiplePaletteSelectorSample.xaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- 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. -->
1+
<!-- 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. -->
22
<local:ColorPaletteSamplerToolkitSampleBase x:Class="ColorAnalyzerExperiment.Samples.MultiplePaletteSelectorSample"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
@@ -33,9 +33,8 @@
3333
<ColumnDefinition Width="*" />
3434
</Grid.ColumnDefinitions>
3535

36-
<StackPanel MaxHeight="250"
37-
Padding="20"
38-
VerticalAlignment="Center">
36+
<Grid Margin="20"
37+
VerticalAlignment="Center">
3938
<Image x:Name="SampledImage"
4039
HorizontalAlignment="Center"
4140
Source="{x:Bind SelectedImage, Mode=OneWay}"
@@ -47,7 +46,7 @@
4746
</interactivity:EventTriggerBehavior>
4847
</interactivity:Interaction.Behaviors>
4948
</Image>
50-
</StackPanel>
49+
</Grid>
5150

5251
<Grid Grid.Column="1"
5352
MaxWidth="400"

0 commit comments

Comments
 (0)