|
19 | 19 | <format type="text/markdown"><]. Both are still valid priorities; therefore, an operation with a priority of ContextIdle has a higher priority than an operation with a priority of SystemIdle. |
| 22 | + There is no specific system state or "idleness" corresponding to `ApplicationIdle` and `ContextIdle` in the current version of WPF. Both are still valid priorities; an operation with a priority of `ContextIdle` has a higher priority than an operation with a priority of `SystemIdle`. |
23 | 23 |
|
24 |
| - The <xref:System.Windows.Threading.DispatcherPriority.ApplicationIdle> does not throttle the execution of an operation if it exceeds a certain percentage of the CPU. One way to throttle a process it to use a timer. |
| 24 | + The <xref:System.Windows.Threading.Dispatcher> does not throttle the execution of an operation if it exceeds a certain percentage of the CPU. One way to throttle a process it to use a timer. |
25 | 25 |
|
26 |
| - If an operation is posted using <xref:System.Windows.Threading.Dispatcher.Invoke%2A> on its own <xref:System.Windows.Threading.DispatcherPriority.ContextIdle> at a priority of Send, the operation bypasses the queue and is immediately executed. |
| 26 | + If an operation is posted using <xref:System.Windows.Threading.Dispatcher.Invoke%2A?displayProperty=nameWithType> on its own <xref:System.Windows.Threading.Dispatcher> at a priority of `Send`, the operation bypasses the queue and is immediately executed. |
27 | 27 |
|
28 | 28 | ## Examples
|
29 |
| - The following example is a call to <xref:System.Windows.Threading.Dispatcher.BeginInvoke%2A> that passes a delegate which accepts an argument. The priority is set to Normal. |
| 29 | + The following example calls the <xref:System.Windows.Threading.Dispatcher.BeginInvoke%2A?displayProperty=nameWithType> method and passes it a delegate with one argument. The priority is set to `Normal`. |
30 | 30 |
|
31 | 31 | [!code-csharp[ThreadingWeatherForecast#ThreadingWeatherDispatcherOneArge](~/samples/snippets/csharp/VS_Snippets_Wpf/ThreadingWeatherForecast/CSharp/Window1.xaml.cs#threadingweatherdispatcheronearge)]
|
32 | 32 | [!code-vb[ThreadingWeatherForecast#ThreadingWeatherDispatcherOneArge](~/samples/snippets/visualbasic/VS_Snippets_Wpf/ThreadingWeatherForecast/visualbasic/window1.xaml.vb#threadingweatherdispatcheronearge)]
|
|
53 | 53 | </ReturnValue>
|
54 | 54 | <MemberValue>2</MemberValue>
|
55 | 55 | <Docs>
|
56 |
| - <summary>The enumeration value is 2. Operations are processed when the application is idle.</summary> |
| 56 | + <summary>The enumeration value is 2. Operations are processed when the application is idle.</summary> |
57 | 57 | </Docs>
|
58 | 58 | </Member>
|
59 | 59 | <Member MemberName="Background">
|
|
74 | 74 | </ReturnValue>
|
75 | 75 | <MemberValue>4</MemberValue>
|
76 | 76 | <Docs>
|
77 |
| - <summary>The enumeration value is 4. Operations are processed after all other non-idle operations are completed.</summary> |
| 77 | + <summary>The enumeration value is 4. Operations are processed after all other non-idle operations are completed.</summary> |
78 | 78 | </Docs>
|
79 | 79 | </Member>
|
80 | 80 | <Member MemberName="ContextIdle">
|
|
95 | 95 | </ReturnValue>
|
96 | 96 | <MemberValue>3</MemberValue>
|
97 | 97 | <Docs>
|
98 |
| - <summary>The enumeration value is 3. Operations are processed after background operations have completed.</summary> |
| 98 | + <summary>The enumeration value is 3. Operations are processed after background operations have completed.</summary> |
99 | 99 | </Docs>
|
100 | 100 | </Member>
|
101 | 101 | <Member MemberName="DataBind">
|
|
116 | 116 | </ReturnValue>
|
117 | 117 | <MemberValue>8</MemberValue>
|
118 | 118 | <Docs>
|
119 |
| - <summary>The enumeration value is 8. Operations are processed at the same priority as data binding.</summary> |
| 119 | + <summary>The enumeration value is 8. Operations are processed at the same priority as data binding.</summary> |
120 | 120 | </Docs>
|
121 | 121 | </Member>
|
122 | 122 | <Member MemberName="Inactive">
|
|
137 | 137 | </ReturnValue>
|
138 | 138 | <MemberValue>0</MemberValue>
|
139 | 139 | <Docs>
|
140 |
| - <summary>The enumeration value is 0. Operations are not processed.</summary> |
| 140 | + <summary>The enumeration value is 0. Operations are not processed.</summary> |
141 | 141 | </Docs>
|
142 | 142 | </Member>
|
143 | 143 | <Member MemberName="Input">
|
|
158 | 158 | </ReturnValue>
|
159 | 159 | <MemberValue>5</MemberValue>
|
160 | 160 | <Docs>
|
161 |
| - <summary>The enumeration value is 5. Operations are processed at the same priority as input.</summary> |
| 161 | + <summary>The enumeration value is 5. Operations are processed at the same priority as input.</summary> |
162 | 162 | </Docs>
|
163 | 163 | </Member>
|
164 | 164 | <Member MemberName="Invalid">
|
|
179 | 179 | </ReturnValue>
|
180 | 180 | <MemberValue>-1</MemberValue>
|
181 | 181 | <Docs>
|
182 |
| - <summary>The enumeration value is -1. This is an invalid priority.</summary> |
| 182 | + <summary>The enumeration value is -1. This is an invalid priority.</summary> |
183 | 183 | </Docs>
|
184 | 184 | </Member>
|
185 | 185 | <Member MemberName="Loaded">
|
|
200 | 200 | </ReturnValue>
|
201 | 201 | <MemberValue>6</MemberValue>
|
202 | 202 | <Docs>
|
203 |
| - <summary>The enumeration value is 6. Operations are processed when layout and render has finished but just before items at input priority are serviced. Specifically this is used when raising the Loaded event.</summary> |
| 203 | + <summary>The enumeration value is 6. Operations are processed when layout and render has finished but just before items at input priority are serviced. Specifically this is used when raising the Loaded event.</summary> |
204 | 204 | </Docs>
|
205 | 205 | </Member>
|
206 | 206 | <Member MemberName="Normal">
|
|
221 | 221 | </ReturnValue>
|
222 | 222 | <MemberValue>9</MemberValue>
|
223 | 223 | <Docs>
|
224 |
| - <summary>The enumeration value is 9. Operations are processed at normal priority. This is the typical application priority.</summary> |
| 224 | + <summary>The enumeration value is 9. Operations are processed at normal priority. This is the typical application priority.</summary> |
225 | 225 | </Docs>
|
226 | 226 | </Member>
|
227 | 227 | <Member MemberName="Render">
|
|
242 | 242 | </ReturnValue>
|
243 | 243 | <MemberValue>7</MemberValue>
|
244 | 244 | <Docs>
|
245 |
| - <summary>The enumeration value is 7. Operations processed at the same priority as rendering.</summary> |
| 245 | + <summary>The enumeration value is 7. Operations processed at the same priority as rendering.</summary> |
246 | 246 | </Docs>
|
247 | 247 | </Member>
|
248 | 248 | <Member MemberName="Send">
|
|
263 | 263 | </ReturnValue>
|
264 | 264 | <MemberValue>10</MemberValue>
|
265 | 265 | <Docs>
|
266 |
| - <summary>The enumeration value is 10. Operations are processed before other asynchronous operations. This is the highest priority.</summary> |
| 266 | + <summary>The enumeration value is 10. Operations are processed before other asynchronous operations. This is the highest priority.</summary> |
267 | 267 | </Docs>
|
268 | 268 | </Member>
|
269 | 269 | <Member MemberName="SystemIdle">
|
|
284 | 284 | </ReturnValue>
|
285 | 285 | <MemberValue>1</MemberValue>
|
286 | 286 | <Docs>
|
287 |
| - <summary>The enumeration value is 1. Operations are processed when the system is idle.</summary> |
| 287 | + <summary>The enumeration value is 1. Operations are processed when the system is idle.</summary> |
288 | 288 | </Docs>
|
289 | 289 | </Member>
|
290 | 290 | </Members>
|
|
0 commit comments