- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Making the Clock Tick - Lets Make a Binary Clock - Part 4
Let's make our binary clock tick! In this video we're going to put the pieces we've developed over the previous episodes together and actually make our clock. By the end of this we'll have a fully functioning binary clock. Granted it still needs some UI tweaks before it's totally ready to ship but we're getting there. At least it will count.
To do that we'll implement a DispatcherTimer which we'll use to trigger an update every second so our clock stays correct. A DispatcherTimer fires off a "Tick" periodically as a C# event which occurs on the UI thread. This allows us to do UI updates periodically. Think of it as a better solution to our previous duct taped solution using a Task and Task.Delay(). This solution is better and also simpler to write. All good in my book!
After that it's just a quick modification of our UI and View Model to get all our new data exposed as well as some quick arithmetic to convert our hours, minutes and seconds to their component digits. Once that's done our binary clock is ready to fly. Or... at the very least... count.
Check out the code on GitHub and play with it yourself: https://github.com/WorldOfZero/BinaryClock
Видео Making the Clock Tick - Lets Make a Binary Clock - Part 4 канала World of Zero
To do that we'll implement a DispatcherTimer which we'll use to trigger an update every second so our clock stays correct. A DispatcherTimer fires off a "Tick" periodically as a C# event which occurs on the UI thread. This allows us to do UI updates periodically. Think of it as a better solution to our previous duct taped solution using a Task and Task.Delay(). This solution is better and also simpler to write. All good in my book!
After that it's just a quick modification of our UI and View Model to get all our new data exposed as well as some quick arithmetic to convert our hours, minutes and seconds to their component digits. Once that's done our binary clock is ready to fly. Or... at the very least... count.
Check out the code on GitHub and play with it yourself: https://github.com/WorldOfZero/BinaryClock
Видео Making the Clock Tick - Lets Make a Binary Clock - Part 4 канала World of Zero
world of zero runewake2 lets make a binary clock binary clock lets make making the clock tick DispatcherTimer lets make a UWP app how to use a dispatcher timer what is a dispatcher timer dispatcher timer C# dispatcher uwp timer C# readonly what does readonly in c# do readonly c# lambda expression c# lets make a uwp app uwp universal windows platform c# app binary clock c# c# list shortcut c# nameof nameof nameof refactoring attach lambda to c# event
Комментарии отсутствуют
Информация о видео
16 января 2017 г. 19:00:05
00:34:15
Другие видео канала




















