WinRTXamlToolkit.Controls.Calendar.EnsureMonthStyle C# (CSharp) Метод

EnsureMonthStyle() приватный статический Метод

Inherited code: Requires comment.
private static EnsureMonthStyle ( CalendarItem month, Style oldMonthStyle, Style newMonthStyle ) : void
month WinRTXamlToolkit.Controls.Primitives.CalendarItem Inherited code: Requires comment 1 .
oldMonthStyle Windows.UI.Xaml.Style Inherited code: Requires comment 2 .
newMonthStyle Windows.UI.Xaml.Style Inherited code: Requires comment 3.
Результат void
        private static void EnsureMonthStyle(CalendarItem month, Style oldMonthStyle, Style newMonthStyle)
        {
            Debug.Assert(month != null, "month should not be null!");

            if (newMonthStyle != null)
            {
                // REMOVE_RTM: Remove null check when Silverlight allows us to re-apply styles
                // Apply the newMonthStyle if the Month was using the
                // oldMonthStyle before
                if (month != null && (month.Style == null || month.Style == oldMonthStyle))
                {
                    month.Style = newMonthStyle;
                }
            }
        }
        #endregion CalendarItemStyle