@@ -22,7 +22,7 @@ public static class GeneralEventDispatchExtensions
2222 /// </summary>
2323 /// <param name="element">The element to raise the event on.</param>
2424 /// <returns>A task that completes when the event handler is done.</returns>
25- private static Task ActivateAsync ( this IElement element ) => element . TriggerEventAsync ( "onactivate" , EventArgs . Empty ) ;
25+ public static Task ActivateAsync ( this IElement element ) => element . TriggerEventAsync ( "onactivate" , EventArgs . Empty ) ;
2626
2727 /// <summary>
2828 /// Raises the <c>@onbeforeactivate</c> event on <paramref name="element"/>, passing an empty (<see cref="EventArgs.Empty"/>)
@@ -37,7 +37,7 @@ public static class GeneralEventDispatchExtensions
3737 /// </summary>
3838 /// <param name="element">The element to raise the event on.</param>
3939 /// <returns>A task that completes when the event handler is done.</returns>
40- private static Task BeforeActivateAsync ( this IElement element ) => element . TriggerEventAsync ( "onbeforeactivate" , EventArgs . Empty ) ;
40+ public static Task BeforeActivateAsync ( this IElement element ) => element . TriggerEventAsync ( "onbeforeactivate" , EventArgs . Empty ) ;
4141
4242 /// <summary>
4343 /// Raises the <c>@onbeforedeactivate</c> event on <paramref name="element"/>, passing an empty (<see cref="EventArgs.Empty"/>)
@@ -52,7 +52,7 @@ public static class GeneralEventDispatchExtensions
5252 /// </summary>
5353 /// <param name="element">The element to raise the event on.</param>
5454 /// <returns>A task that completes when the event handler is done.</returns>
55- private static Task BeforeDeactivateAsync ( this IElement element ) => element . TriggerEventAsync ( "onbeforedeactivate" , EventArgs . Empty ) ;
55+ public static Task BeforeDeactivateAsync ( this IElement element ) => element . TriggerEventAsync ( "onbeforedeactivate" , EventArgs . Empty ) ;
5656
5757 /// <summary>
5858 /// Raises the <c>@ondeactivate</c> event on <paramref name="element"/>, passing an empty (<see cref="EventArgs.Empty"/>)
@@ -67,7 +67,7 @@ public static class GeneralEventDispatchExtensions
6767 /// </summary>
6868 /// <param name="element">The element to raise the event on.</param>
6969 /// <returns>A task that completes when the event handler is done.</returns>
70- private static Task DeactivateAsync ( this IElement element ) => element . TriggerEventAsync ( "ondeactivate" , EventArgs . Empty ) ;
70+ public static Task DeactivateAsync ( this IElement element ) => element . TriggerEventAsync ( "ondeactivate" , EventArgs . Empty ) ;
7171
7272 /// <summary>
7373 /// Raises the <c>@onended</c> event on <paramref name="element"/>, passing an empty (<see cref="EventArgs.Empty"/>)
@@ -82,7 +82,7 @@ public static class GeneralEventDispatchExtensions
8282 /// </summary>
8383 /// <param name="element">The element to raise the event on.</param>
8484 /// <returns>A task that completes when the event handler is done.</returns>
85- private static Task EndedAsync ( this IElement element ) => element . TriggerEventAsync ( "onended" , EventArgs . Empty ) ;
85+ public static Task EndedAsync ( this IElement element ) => element . TriggerEventAsync ( "onended" , EventArgs . Empty ) ;
8686
8787 /// <summary>
8888 /// Raises the <c>@onfullscreenchange</c> event on <paramref name="element"/>, passing an empty (<see cref="EventArgs.Empty"/>)
@@ -97,7 +97,7 @@ public static class GeneralEventDispatchExtensions
9797 /// </summary>
9898 /// <param name="element">The element to raise the event on.</param>
9999 /// <returns>A task that completes when the event handler is done.</returns>
100- private static Task FullscreenChangeAsync ( this IElement element ) => element . TriggerEventAsync ( "onfullscreenchange" , EventArgs . Empty ) ;
100+ public static Task FullscreenChangeAsync ( this IElement element ) => element . TriggerEventAsync ( "onfullscreenchange" , EventArgs . Empty ) ;
101101
102102 /// <summary>
103103 /// Raises the <c>@onfullscreenerror</c> event on <paramref name="element"/>, passing an empty (<see cref="EventArgs.Empty"/>)
@@ -112,7 +112,7 @@ public static class GeneralEventDispatchExtensions
112112 /// </summary>
113113 /// <param name="element">The element to raise the event on.</param>
114114 /// <returns>A task that completes when the event handler is done.</returns>
115- private static Task FullscreenErrorAsync ( this IElement element ) => element . TriggerEventAsync ( "onfullscreenerror" , EventArgs . Empty ) ;
115+ public static Task FullscreenErrorAsync ( this IElement element ) => element . TriggerEventAsync ( "onfullscreenerror" , EventArgs . Empty ) ;
116116
117117 /// <summary>
118118 /// Raises the <c>@onloadeddata</c> event on <paramref name="element"/>, passing an empty (<see cref="EventArgs.Empty"/>)
@@ -127,7 +127,7 @@ public static class GeneralEventDispatchExtensions
127127 /// </summary>
128128 /// <param name="element">The element to raise the event on.</param>
129129 /// <returns>A task that completes when the event handler is done.</returns>
130- private static Task LoadedDataAsync ( this IElement element ) => element . TriggerEventAsync ( "onloadeddata" , EventArgs . Empty ) ;
130+ public static Task LoadedDataAsync ( this IElement element ) => element . TriggerEventAsync ( "onloadeddata" , EventArgs . Empty ) ;
131131
132132 /// <summary>
133133 /// Raises the <c>@onloadedmetadata</c> event on <paramref name="element"/>, passing an empty (<see cref="EventArgs.Empty"/>)
@@ -142,7 +142,7 @@ public static class GeneralEventDispatchExtensions
142142 /// </summary>
143143 /// <param name="element">The element to raise the event on.</param>
144144 /// <returns>A task that completes when the event handler is done.</returns>
145- private static Task LoadedMetadataAsync ( this IElement element ) => element . TriggerEventAsync ( "onloadedmetadata" , EventArgs . Empty ) ;
145+ public static Task LoadedMetadataAsync ( this IElement element ) => element . TriggerEventAsync ( "onloadedmetadata" , EventArgs . Empty ) ;
146146
147147 /// <summary>
148148 /// Raises the <c>@onpointerlockchange</c> event on <paramref name="element"/>, passing an empty (<see cref="EventArgs.Empty"/>)
@@ -157,7 +157,7 @@ public static class GeneralEventDispatchExtensions
157157 /// </summary>
158158 /// <param name="element">The element to raise the event on.</param>
159159 /// <returns>A task that completes when the event handler is done.</returns>
160- private static Task PointerlockChangeAsync ( this IElement element ) => element . TriggerEventAsync ( "onpointerlockchange" , EventArgs . Empty ) ;
160+ public static Task PointerlockChangeAsync ( this IElement element ) => element . TriggerEventAsync ( "onpointerlockchange" , EventArgs . Empty ) ;
161161
162162 /// <summary>
163163 /// Raises the <c>@onpointerlockerror</c> event on <paramref name="element"/>, passing an empty (<see cref="EventArgs.Empty"/>)
@@ -172,7 +172,7 @@ public static class GeneralEventDispatchExtensions
172172 /// </summary>
173173 /// <param name="element">The element to raise the event on.</param>
174174 /// <returns>A task that completes when the event handler is done.</returns>
175- private static Task PointerlockErrorAsync ( this IElement element ) => element . TriggerEventAsync ( "onpointerlockerror" , EventArgs . Empty ) ;
175+ public static Task PointerlockErrorAsync ( this IElement element ) => element . TriggerEventAsync ( "onpointerlockerror" , EventArgs . Empty ) ;
176176
177177 /// <summary>
178178 /// Raises the <c>@onreadystatechange</c> event on <paramref name="element"/>, passing an empty (<see cref="EventArgs.Empty"/>)
@@ -187,7 +187,7 @@ public static class GeneralEventDispatchExtensions
187187 /// </summary>
188188 /// <param name="element">The element to raise the event on.</param>
189189 /// <returns>A task that completes when the event handler is done.</returns>
190- private static Task ReadystateChangeAsync ( this IElement element ) => element . TriggerEventAsync ( "onreadystatechange" , EventArgs . Empty ) ;
190+ public static Task ReadystateChangeAsync ( this IElement element ) => element . TriggerEventAsync ( "onreadystatechange" , EventArgs . Empty ) ;
191191
192192 /// <summary>
193193 /// Raises the <c>@onscroll</c> event on <paramref name="element"/>, passing an empty (<see cref="EventArgs.Empty"/>)
@@ -202,6 +202,6 @@ public static class GeneralEventDispatchExtensions
202202 /// </summary>
203203 /// <param name="element">The element to raise the event on.</param>
204204 /// <returns>A task that completes when the event handler is done.</returns>
205- private static Task ScrollAsync ( this IElement element ) => element . TriggerEventAsync ( "onscroll" , EventArgs . Empty ) ;
205+ public static Task ScrollAsync ( this IElement element ) => element . TriggerEventAsync ( "onscroll" , EventArgs . Empty ) ;
206206 }
207207}
0 commit comments