FindDayButtonFromDay() private method

Inherited code: Requires comment.
private FindDayButtonFromDay ( DateTime day ) : CalendarDayButton
day DateTime Inherited code: Requires comment 1.
return WinRTXamlToolkit.Controls.Primitives.CalendarDayButton
コード例 #1
0
 /// <summary>
 /// Raise an automation peer event for the selection of a day button.
 /// </summary>
 /// <param name="calendar">
 /// The Calendar associated with this automation peer.
 /// </param>
 /// <param name="date">The selected date.</param>
 /// <param name="eventToRaise">The selection event to raise.</param>
 private static void RaiseDayButtonSelectionEvent(Calendar calendar, DateTime date, AutomationEvents eventToRaise)
 {
     CalendarDayButton button = calendar.FindDayButtonFromDay(date);
     if (button != null)
     {
         AutomationPeer peer = FrameworkElementAutomationPeer.FromElement(button);
         if (peer != null)
         {
             peer.RaiseAutomationEvent(eventToRaise);
         }
     }
 }