|
7 | 7 | xmlns:i="using:Microsoft.Xaml.Interactivity" |
8 | 8 | xmlns:icore="using:Microsoft.Xaml.Interactions.Core" |
9 | 9 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
10 | | - Title="{Binding TitleText, Mode=OneWay}" |
| 10 | + Title="{x:Bind ViewModel.TitleText, Mode=OneWay}" |
11 | 11 | CloseButtonClick="ContentDialog_CloseButtonClick" |
12 | | - CloseButtonText="{Binding CloseButtonText, Mode=OneWay}" |
| 12 | + CloseButtonText="{x:Bind ViewModel.CloseButtonText, Mode=OneWay}" |
13 | 13 | CornerRadius="{StaticResource OverlayCornerRadius}" |
14 | 14 | DefaultButton="Primary" |
15 | | - IsPrimaryButtonEnabled="{Binding IsPrimaryButtonEnabled, Mode=OneWay}" |
16 | | - IsSecondaryButtonEnabled="{Binding IsSecondaryButtonEnabled, Mode=OneWay}" |
| 15 | + IsPrimaryButtonEnabled="{x:Bind ViewModel.IsPrimaryButtonEnabled, Mode=OneWay}" |
| 16 | + IsSecondaryButtonEnabled="{x:Bind ViewModel.IsSecondaryButtonEnabled, Mode=OneWay}" |
17 | 17 | KeyDown="ContentDialog_KeyDown" |
18 | 18 | PrimaryButtonClick="ContentDialog_PrimaryButtonClick" |
19 | | - PrimaryButtonText="{Binding PrimaryButtonText, Mode=OneWay}" |
| 19 | + PrimaryButtonText="{x:Bind ViewModel.PrimaryButtonText, Mode=OneWay}" |
20 | 20 | RequestedTheme="{x:Bind helpers:ThemeHelper.RootTheme}" |
21 | 21 | SecondaryButtonClick="ContentDialog_SecondaryButtonClick" |
22 | | - SecondaryButtonText="{Binding SecondaryButtonText, Mode=OneWay}" |
| 22 | + SecondaryButtonText="{x:Bind ViewModel.SecondaryButtonText, Mode=OneWay}" |
23 | 23 | Style="{StaticResource DefaultContentDialogStyle}" |
24 | 24 | mc:Ignorable="d"> |
25 | 25 |
|
|
36 | 36 | HorizontalAlignment="Left" |
37 | 37 | VerticalAlignment="Center" |
38 | 38 | x:Load="{x:Bind ViewModel.SubtitleLoad, Mode=OneWay}" |
39 | | - Text="{Binding SubtitleText, Mode=OneWay}" |
| 39 | + Text="{x:Bind ViewModel.SubtitleText, Mode=OneWay}" |
40 | 40 | TextWrapping="WrapWholeWords" /> |
41 | 41 |
|
42 | 42 | <!-- The dynamic content control --> |
|
48 | 48 | HorizontalContentAlignment="Stretch" |
49 | 49 | VerticalContentAlignment="Stretch" |
50 | 50 | x:Load="{x:Bind ViewModel.DisplayControlLoad, Mode=OneWay}" |
51 | | - Content="{Binding DisplayControl, Mode=OneWay}"> |
| 51 | + Content="{x:Bind ViewModel.DisplayControl, Mode=OneWay}"> |
52 | 52 | <i:Interaction.Behaviors> |
53 | 53 | <!-- No need to specify CommandParameter - `e` is passed by default --> |
54 | 54 | <icore:EventTriggerBehavior EventName="Loaded"> |
55 | | - <icore:InvokeCommandAction Command="{Binding DisplayControlOnLoadedCommand, Mode=OneWay}" /> |
| 55 | + <icore:InvokeCommandAction Command="{x:Bind ViewModel.DisplayControlOnLoadedCommand, Mode=OneWay}" /> |
56 | 56 | </icore:EventTriggerBehavior> |
57 | 57 | </i:Interaction.Behaviors> |
58 | 58 | </ContentControl> |
|
0 commit comments