相关疑难解决方法(0)

使用F#中的事件

我最近问了一个问题: 在F#中重播记录的数据流,并将该代码与我在这里找到的功能的子集 结合在一起:http : //www.mattssoftwareblog.com/?p=271,看起来像这样:

#r "System.Reactive"
#r "System.CoreEx"
#r "FSharp.PowerPack"
#r "WindowsBase"
#r "PresentationCore"
#r "PresentationFramework"
#r "System.Xaml"
#r "System.Interactive.dll"

open System
open System.Linq
open System.Collections.Generic
open System.Net
open System.IO
open System.Threading
open System.Windows
open System.Windows.Input
open System.Windows.Controls
open System.Windows.Shapes
open System.Windows.Media
open System.Xaml
Run Code Online (Sandbox Code Playgroud)

我需要使用此处生成的事件(来自我之前的SO问题):

let prices = [ (0, 10.0); (1000, 10.5); (500, 9.5); (2500, 8.5); (500, 10.0); (1000, 10.5); (500, 9.5); (2500, 8.5) ]

let evt = new Event<float>()
async { for delay, price …
Run Code Online (Sandbox Code Playgroud)

wpf events f# system.reactive

4
推荐指数
1
解决办法
1152
查看次数

标签 统计

events ×1

f# ×1

system.reactive ×1

wpf ×1