Skip to content

Commit a8670cc

Browse files
Update Sample Pages
1 parent eb7423a commit a8670cc

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

SampleTest/MainPage.xaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
xmlns:Interactivity="using:Microsoft.Xaml.Interactivity"
1111
xmlns:providers="using:Microsoft.Toolkit.Graph.Providers"
1212
mc:Ignorable="d"
13-
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
13+
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
14+
xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls"><!-- Workaround for https://github.com/microsoft/microsoft-ui-xaml/issues/1286 -->
1415
<!--
1516
Initialize Graph Provider On Page Load
1617
@@ -29,14 +30,14 @@
2930
<StackPanel Margin="16,48">
3031
<wgt:PeoplePicker x:Name="PeopleChooser"/>
3132
<TextBlock Margin="0,8,0,0" FontWeight="Bold">Picked People:</TextBlock>
32-
<!--<ItemsControl ItemsSource="{x:Bind PeopleChooser.ItemsSource}"
33+
<ItemsControl ItemsSource="{x:Bind PeopleChooser.ItemsSource}"
3334
Margin="8,0,0,0">
3435
<ItemsControl.ItemTemplate>
3536
<DataTemplate x:DataType="graph:Person">
3637
<TextBlock Text="{x:Bind DisplayName}"/>
3738
</DataTemplate>
3839
</ItemsControl.ItemTemplate>
39-
</ItemsControl>-->
40+
</ItemsControl>
4041
</StackPanel>
4142
</Grid>
4243
</Page>

Samples/XAML Islands/UWP-XamlApplication/SamplePage.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
<StackPanel Margin="16,48">
1616
<wgt:PeoplePicker x:Name="PeopleChooser"/>
1717
<TextBlock Margin="0,8,0,0" FontWeight="Bold">Picked People:</TextBlock>
18-
<!--<ItemsControl ItemsSource="{x:Bind PeopleChooser.PickedPeople}"
18+
<ItemsControl ItemsSource="{x:Bind PeopleChooser.ItemsSource}"
1919
Margin="8,0,0,0">
2020
<ItemsControl.ItemTemplate>
2121
<DataTemplate x:DataType="graph:Person">
2222
<TextBlock Text="{x:Bind DisplayName}"/>
2323
</DataTemplate>
2424
</ItemsControl.ItemTemplate>
25-
</ItemsControl>-->
25+
</ItemsControl>
2626
</StackPanel>
2727
</Grid>
2828
</Page>

0 commit comments

Comments
 (0)