| 
1 |  | -<!--  Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information.  -->  | 
 | 1 | +<!--  Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information.  -->  | 
2 | 2 | <Page x:Class="MarqueeExperiment.Samples.MarqueeSample"  | 
3 | 3 |       xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  | 
4 | 4 |       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  | 
 | 
10 | 10 | 
 
  | 
11 | 11 |     <StackPanel Padding="16">  | 
12 | 12 |         <controls:Marquee Behavior="{x:Bind ConvertStringToMarqueeBehavior(MQBehavior), Mode=OneWay}"  | 
 | 13 | +                          Content="{x:Bind Data}"  | 
13 | 14 |                           Direction="{x:Bind ConvertStringToMarqueeDirection(MQDirection), Mode=OneWay}"  | 
14 | 15 |                           FontSize="18"  | 
15 | 16 |                           RepeatBehavior="Forever"  | 
16 |  | -                          Speed="{x:Bind MQSpeed, Mode=OneWay}"  | 
17 |  | -                          Content="{x:Bind Data}">  | 
 | 17 | +                          Speed="{x:Bind MQSpeed, Mode=OneWay}">  | 
18 | 18 |             <controls:Marquee.ContentTemplate>  | 
19 | 19 |                 <DataTemplate x:DataType="local:MarqueeSampleItems">  | 
20 | 20 |                     <ItemsRepeater ItemsSource="{x:Bind Items}">  | 
21 | 21 |                         <ItemsRepeater.Layout>  | 
22 |  | -                            <StackLayout Orientation="Horizontal" Spacing="8"/>  | 
 | 22 | +                            <StackLayout Orientation="Horizontal"  | 
 | 23 | +                                         Spacing="8" />  | 
23 | 24 |                         </ItemsRepeater.Layout>  | 
24 | 25 |                         <ItemsRepeater.ItemTemplate>  | 
25 | 26 |                             <DataTemplate x:DataType="local:MarqueeSampleItem">  | 
26 |  | -                                <Border Width="100" Height="48" Background="{x:Bind Brush}">  | 
 | 27 | +                                <Border Width="100"  | 
 | 28 | +                                        Height="48"  | 
 | 29 | +                                        Background="{x:Bind Brush}">  | 
27 | 30 |                                     <TextBlock Text="{x:Bind Name}" />  | 
28 | 31 |                                 </Border>  | 
29 | 32 |                             </DataTemplate>  | 
 | 
32 | 35 |                 </DataTemplate>  | 
33 | 36 |             </controls:Marquee.ContentTemplate>  | 
34 | 37 |         </controls:Marquee>  | 
35 |  | -          | 
36 |  | -        <Button Content="Add something" Click="AddItem_Click"/>  | 
 | 38 | + | 
 | 39 | +        <Button Click="AddItem_Click"  | 
 | 40 | +                Content="Add something" />  | 
37 | 41 |     </StackPanel>  | 
38 | 42 | </Page>  | 
0 commit comments