Пример #1
0
        private void InitializeTextBlocks(IFrameworkElement container)
        {
            var items            = GetOrderedTextBlocksForCulture(CultureInfo.CurrentCulture);
            var flyoutButtonGrid = container.GetTemplateChild(FlyoutButtonGridPartName) as Grid;

            Grid.SetColumn(items[0], GetColumnIndex(flyoutButtonGrid, DayColumnPartName));
            Grid.SetColumn(items[1], GetColumnIndex(flyoutButtonGrid, MonthColumnPartName));
            Grid.SetColumn(items[2], GetColumnIndex(flyoutButtonGrid, YearColumnPartName));
        }