File tree Expand file tree Collapse file tree 4 files changed +23
-21
lines changed
UITests.Tests.Shared/Controls Expand file tree Collapse file tree 4 files changed +23
-21
lines changed Original file line number Diff line number Diff line change 227
227
<Project >{e9faabfb-d726-42c1-83c1-cb46a29fea81}</Project >
228
228
<Name >Microsoft.Toolkit.Uwp.UI.Controls.Core</Name >
229
229
</ProjectReference >
230
+ <ProjectReference Include =" ..\..\Microsoft.Toolkit.Uwp.UI.Controls.Primitives\Microsoft.Toolkit.Uwp.UI.Controls.Primitives.csproj" >
231
+ <Project >{84ab7dc5-95c9-4cf8-a370-d077e9e9ef1a}</Project >
232
+ <Name >Microsoft.Toolkit.Uwp.UI.Controls.Primitives</Name >
233
+ </ProjectReference >
234
+ <ProjectReference Include =" ..\..\Microsoft.Toolkit.Uwp.UI.Controls\Microsoft.Toolkit.Uwp.UI.Controls.csproj" >
235
+ <Project >{099b60fd-dad6-4648-9de2-8dbf9dcd9557}</Project >
236
+ <Name >Microsoft.Toolkit.Uwp.UI.Controls</Name >
237
+ </ProjectReference >
230
238
<ProjectReference Include =" ..\..\Microsoft.Toolkit.Uwp.UI.Media\Microsoft.Toolkit.Uwp.UI.Media.csproj" >
231
239
<Project >{75f9ee44-3efa-47bc-aedd-351b9834a0af}</Project >
232
240
<Name >Microsoft.Toolkit.Uwp.UI.Media</Name >
Original file line number Diff line number Diff line change @@ -32,21 +32,11 @@ public static void ClassInitialize(TestContext testContext)
32
32
33
33
[ TestMethod ]
34
34
[ TestPage ( "ConstrainedBoxTestPage" ) ]
35
- public void SimpleTestMethod ( )
35
+ public void Test_AspectRatioBoundToInteger_Placeholder ( )
36
36
{
37
- //ConstrainedBox cb;
38
- //var button = new Button(FindElement.ByName("Click Me"));
39
- //var textBlock = new TextBlock(FindElement.ById("textBlock"));
40
-
41
- //Verify.IsNotNull(button);
42
-
43
- //Verify.AreEqual(string.Empty, textBlock.GetText());
44
-
45
- //button.Click();
46
-
47
- //Wait.ForIdle();
48
-
49
- //Verify.AreEqual("Clicked", textBlock.GetText());
37
+ // The test is if the AspectRatio can be bound to integer
38
+ // This test method acts as a placeholder, to spawn the XAML test page
39
+ // and test the binding to an integer
50
40
}
51
41
}
52
42
}
Original file line number Diff line number Diff line change 1
1
<Page x : Class =" UITests.App.Pages.ConstrainedBoxTestPage"
2
2
xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
3
xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
4
+ xmlns : controls =" using:Microsoft.Toolkit.Uwp.UI.Controls"
4
5
xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
5
6
xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
6
- xmlns : controls =" using:Microsoft.Toolkit.Uwp.UI.Controls"
7
7
Background =" {ThemeResource ApplicationPageBackgroundThemeBrush}"
8
8
mc : Ignorable =" d" >
9
- <Grid >
10
- <controls : ConstrainedBox />
11
- </Grid >
12
-
13
-
14
- <!-- <controls:ConstrainedBox />-->
9
+ <controls : ConstrainedBox x : Name =" ConstrainedBox"
10
+ Height =" 100"
11
+ AspectRatio =" {x:Bind IntegerWidth}" >
12
+ <Border HorizontalAlignment =" Stretch"
13
+ VerticalAlignment =" Stretch"
14
+ Background =" Red" />
15
+ </controls : ConstrainedBox >
15
16
</Page >
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ namespace UITests.App.Pages
10
10
{
11
11
public sealed partial class ConstrainedBoxTestPage : Page
12
12
{
13
+ public int IntegerWidth { get ; set ; } = 2 ;
14
+
15
+
13
16
public ConstrainedBoxTestPage ( )
14
17
{
15
18
this . InitializeComponent ( ) ;
You can’t perform that action at this time.
0 commit comments