-
Notifications
You must be signed in to change notification settings - Fork 730
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94087ae
commit 2dbf18a
Showing
3 changed files
with
37 additions
and
0 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
15 changes: 15 additions & 0 deletions
15
src/SamplesApp/UITests.Shared/Windows_UI_Xaml/Properties/DataContextProperty.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,15 @@ | ||
<Page | ||
x:Class="UITests.Shared.Windows_UI_Xaml.Properties.DataContextProperty" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> | ||
|
||
<Page.DataContext> | ||
<x:String>YES It's working!</x:String> | ||
</Page.DataContext> | ||
|
||
<Page.Content> | ||
<TextBlock>Is it working: <Run Text="{Binding}" /></TextBlock> | ||
</Page.Content> | ||
|
||
</Page> |
14 changes: 14 additions & 0 deletions
14
src/SamplesApp/UITests.Shared/Windows_UI_Xaml/Properties/DataContextProperty.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.Properties | ||
{ | ||
[SampleControlInfo("XAML", "DataContextProperty")] | ||
public sealed partial class DataContextProperty : Page | ||
{ | ||
public DataContextProperty() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
} | ||
} |