Trace:
Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
mvvm [2019/01/11 13:20] yura |
mvvm [2019/01/13 12:01] (current) yura |
||
|---|---|---|---|
| Line 8: | Line 8: | ||
| HorizontalContentAlignment="Center" Вірівнення по ширині | HorizontalContentAlignment="Center" Вірівнення по ширині | ||
| VerticalContentAlignment="Center" Вірівнення по висоті | VerticalContentAlignment="Center" Вірівнення по висоті | ||
| - | Content="{Binding Time}" Бінд який падає в клас StopwatchViewModel з інтерфейсом INotifyPropertyChanged | + | Margin="0, 0, 0, -200" Зсунути в низ на 200 px |
| - | Content="{Binding Time, TargetNullValue='00.00 UAH'}" TargetNullValue виводить введений текст зразу на екра | + | Content="{Binding Time}" Бінд який падає в клас StopwatchViewModel : INotifyPropertyChanged |
| + | Content="{Binding Time, TargetNullValue='00.00 UAH'}" TargetNullValue виводить введений текст зразу на екран (в деф позицію) | ||
| Command="{Binding StartStopwatch}" Біндить якусь дію (в нашому випадку це кнопка) | Command="{Binding StartStopwatch}" Біндить якусь дію (в нашому випадку це кнопка) | ||
| </Code> | </Code> | ||
| Line 44: | Line 46: | ||
| ---- | ---- | ||
| + | **Бінд кнопки виглядає наступним чином** | ||
| <Code:csharp> | <Code:csharp> | ||
| <Button Content="Click" Command="{Binding StartStopwatch}" Width="100" Height="25" HorizontalContentAlignment="Center" Margin="0, 0, 0, -200"></Button> | <Button Content="Click" Command="{Binding StartStopwatch}" Width="100" Height="25" HorizontalContentAlignment="Center" Margin="0, 0, 0, -200"></Button> | ||
| </Code> | </Code> | ||
| - | **Бінд кнопки виглядає наступним чином** | + | |
| **Реалізація класу ButtonCommand через інтерфейс ICommand** | **Реалізація класу ButtonCommand через інтерфейс ICommand** | ||
