zoukankan      html  css  js  c++  java
  • wpf demo (gif , multithredading,httpwatch)

    Introduction

    the demo with GIF animation ,multithreading,and use httpwatch to get the url of flv file

    Background

    c# wpf httpwatch

    Points of Interest

    Did you learn anything interesting/fun/annoying while writing the code? Did you do anything particularly clever or wild or zany?

    History

    Keep a running update of any changes or improvements you've made here.

    the demo includes:

    gif animation in wpf

    multithreading in wpf

    use httpwatch to get the url of flv file 

    1.gif animation in wpf

    the first problem is how to show gif aninamation in wpf ?

    here I use a library called "GifImageLib". :) this is a prefect work! it works fine !

    2.multithreading in wpf

    the multithreading in wpf called "Dispatcher" . After I searched in msdn.I wrote the code for multithreading.

    Code

     this is BackgroundWorker demo.

       _backgroundWorker.DoWork+=new DoWorkEventHandler(DoWork);

    you can coding your work which needed long time.

     _backgroundWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(FinsihWork);

    you can coding which you needed after the long time task.

    3.use httpwatch to get the url of flv file

    you can get the free httpwatch version from httpwatch.com . and you only need add com preference(httpwatch) to project

    the code I using c#


    Code

    Ok,finished

     中文版

  • 相关阅读:
    【SQLite】教程04-SQLite数据类型
    【SQLite】教程03-SQLite语法
    【SQLite】教程02-SQLite命令
    [原创]java WEB学习笔记22:MVC案例完整实践(part 3)---多个请求对应一个Servlet解析
    [原创]java WEB学习笔记21:MVC案例完整实践(part 2)---DAO层设计
    [原创]java WEB学习笔记20:MVC案例完整实践(part 1)---MVC架构分析
    [转]Mysql命令
    [原创]java WEB学习笔记19:初识MVC 设计模式:查询,删除 练习(理解思想),小结 ,问题
    [原创]java WEB学习笔记18:java EE 中的MVC 设计模式(理论)
    [原创]java WEB学习笔记17:关于中文乱码的问题 和 tomcat在eclipse中起动成功,主页却打不开
  • 原文地址:https://www.cnblogs.com/conan77/p/1502656.html
Copyright © 2011-2022 走看看