-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2342 from unoplatform/mergify/bp/release/beta/2.0…
…/pr-2316 iOS image alignment were incorrect when size was specified directly on the <Image> control (bp #2316)
- Loading branch information
Showing
30 changed files
with
435 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
...sts.Shared/Windows_UI_Xaml_Controls/ImageTests/Image_Stretch_Alignment_SizeOnControl.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<Page | ||
x:Class="UITests.Shared.Windows_UI_Xaml_Controls.ImageTests.Image_Stretch_Alignment_SizeOnControl" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:win="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:not_win="http://uno.ui/" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:local="using:Uno.UI.Samples.UITests.Image" | ||
mc:Ignorable="d not_win" | ||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> | ||
|
||
<Grid HorizontalAlignment="Center"> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto" /> | ||
<RowDefinition Height="*" /> | ||
</Grid.RowDefinitions> | ||
<local:Image_Stretch_Modes_Picker x:Name="modesPicker" /> | ||
<ScrollViewer Grid.Row="1"> | ||
<ItemsControl ItemsSource="{Binding Items, ElementName=modesPicker}"> | ||
<ItemsControl.ItemsPanel> | ||
<ItemsPanelTemplate> | ||
<win:VariableSizedWrapGrid Orientation="Horizontal" /> | ||
<not_win:WrapPanel Orientation="Horizontal" /> | ||
</ItemsPanelTemplate> | ||
</ItemsControl.ItemsPanel> | ||
<ItemsControl.ItemTemplate> | ||
<DataTemplate> | ||
<StackPanel Width="150" Padding="5" Background="LightGreen" Margin="5"> | ||
<TextBlock FontSize="12"> | ||
<Run Text="{Binding Index}" />) s=<Run Text="{Binding Stretch}" FontWeight="Bold" /> | ||
<LineBreak />h=<Run Text="{Binding HorizontalAlignment}" FontWeight="Bold" /> | ||
<LineBreak />v=<Run Text="{Binding VerticalAlignment}" FontWeight="Bold" /> | ||
</TextBlock> | ||
<Border BorderThickness="1" | ||
Width="127" | ||
Height="152" | ||
BorderBrush="Black" | ||
Background="DeepPink"> | ||
<Image Stretch="{Binding Stretch}" | ||
VerticalAlignment="{Binding VerticalAlignment}" | ||
HorizontalAlignment="{Binding HorizontalAlignment}" | ||
Width="125" | ||
Height="150" | ||
Source="ms-appx:///Assets/test_image_100_100.png" /> | ||
</Border> | ||
</StackPanel> | ||
</DataTemplate> | ||
</ItemsControl.ItemTemplate> | ||
</ItemsControl> | ||
</ScrollViewer> | ||
</Grid> | ||
</Page> |
14 changes: 14 additions & 0 deletions
14
....Shared/Windows_UI_Xaml_Controls/ImageTests/Image_Stretch_Alignment_SizeOnControl.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Windows.UI.Xaml.Controls; | ||
using Uno.UI.Samples.Controls; | ||
|
||
namespace UITests.Shared.Windows_UI_Xaml_Controls.ImageTests | ||
{ | ||
[SampleControlInfo("Image")] | ||
public sealed partial class Image_Stretch_Alignment_SizeOnControl : Page | ||
{ | ||
public Image_Stretch_Alignment_SizeOnControl() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
...ITests.Shared/Windows_UI_Xaml_Controls/ImageTests/Image_Stretch_Alignment_Smaller.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.