自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

WPF刷新界面相關(guān)方法

開發(fā) 開發(fā)工具
WPF刷新界面對(duì)于初學(xué)者來說是比較難掌握的一個(gè)知識(shí)。在這里我們將會(huì)以一個(gè)代碼范例來為大家詳細(xì)介紹相關(guān)使用方法。

WPF刷新界面的應(yīng)用技巧是一個(gè)非常常用的功能。在實(shí)際操作中我們需要對(duì)其進(jìn)行非常熟練的操作。希望這篇文章總介紹的內(nèi)容可以幫助大家提高對(duì)WPF的理解程度。#t#

WPF刷新界面應(yīng)用代碼示例:

  1. /// <summary> 
  2. /// App.xaml 的交互邏輯  
  3. /// </summary> 
  4. public partial class App : Application  
  5. {  
  6. private static DispatcherOperat
    ionCallback 
    exitFrameCallback = 
    new DispatcherOperationCallback(ExitFrame);  
  7. public static void DoEvents()  
  8. {  
  9. DispatcherFrame nestedFrame = 
    new DispatcherFrame();  
  10. DispatcherOperation exitOperation = 
    Dispatcher.CurrentDispatcher.BeginInvoke
    (DispatcherPriority.Background, 
    exitFrameCallback, nestedFrame);  
  11. Dispatcher.PushFrame(nestedFrame);  
  12. if (exitOperation.Status != 
    DispatcherOperationStatus.Completed)  
  13. {  
  14. exitOperation.Abort();  
  15. }  
  16. }  
  17. private static Object ExitFrame
    (Object state)  
  18. {  
  19. DispatcherFrame frame = state as 
    DispatcherFrame;  
  20. frame.Continue = false;  
  21. return null;  
  22. }  

WPF刷新界面使用方法就介紹到這里。

責(zé)任編輯:曹凱 來源: 博客園
相關(guān)推薦

2009-08-31 09:13:00

UbuntuNetBook Rem界面

2024-05-22 08:35:41

2009-07-10 08:50:35

微軟Windows 7界面

2012-07-17 09:53:02

2025-01-07 15:23:47

iOS 18iOS 19蘋果

2010-04-15 09:47:02

2011-12-29 10:13:48

FirefoxAndroid版

2012-06-18 10:57:25

Windows 8操作系統(tǒng)

2017-05-12 09:29:42

操作系統(tǒng)Windows 10 win 10 NEON

2011-04-14 13:30:55

webOS 3.0webOS惠普

2010-08-05 09:17:17

MeeGo界面

2009-12-23 20:45:09

Firefox全新界面

2012-05-11 16:11:50

Visual Stud

2009-12-28 17:48:01

WPF界面布局

2009-02-12 15:18:59

2023-05-04 06:31:45

OneDrive微軟

2023-06-08 15:20:35

Windows 11谷歌

2011-08-18 09:30:39

金山Kingsoft Of

2012-08-15 09:26:30

SkyDriveOutlook.com

2012-03-26 11:00:10

Visual Stud微軟開發(fā)
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)