private void UpdateVisualTree() { container = GetTemplateChild(PART_MonthDays) as FXMonthViewContainer; if (container != null) { container.ItemsSource = CalendarDays; container.SelectionChanged += OnContainerSelectionChanged; //container.LayoutUpdated += OnContainerLayoutUpdated; RefreshDaysTemplate(); } }
private void UpdateVisualTree() { container = GetTemplateChild(PART_MonthDays) as FXMonthViewContainer; if(container != null) { container.ItemsSource = CalendarDays; container.SelectionChanged += OnContainerSelectionChanged; //container.LayoutUpdated += OnContainerLayoutUpdated; RefreshDaysTemplate(); } }