mirror of
https://github.com/PacktPublishing/Learn-WinUI-3-Second-Edition.git
synced 2026-06-20 12:23:09 +00:00
Add ch11 samples
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Window
|
||||
x:Class="XamlDebugging.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:XamlDebugging"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d">
|
||||
|
||||
<StackPanel DataContext="Test"
|
||||
Background="LightGray">
|
||||
<TextBox x:Name="Text1"
|
||||
Text="{Binding Path=SomeText, Mode=TwoWay}"/>
|
||||
<TextBox Text="{Binding ElementName=Text1, Path=Text, Mode=OneWay}"/>
|
||||
</StackPanel>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user