WPF Multi Touch 開發 高效開發模式

2022-09-14 05:12:09 字數 1854 閱讀 9240

在beh**iors 選單中可以找到fluidmovebeh**ior和 translatezoomrotatebeh**ior 兩個選項,並將其拖入rectangle 中使矩形具有觸屏操作特性。

選擇translatezoomrotatebeh**ior  可以進行相關設定,勾選constraintoparentbounds 防止矩形飛出程式外。

在fluidmovebeh**ior 中可以設定矩形移動的模式及持續時間等屬性。

相關設定完成後看看生成的**,可見xaml 其實也很簡單。

<

window

xmlns

=""xmlns:x

=""xmlns:i

=""

xmlns:ei

=""x:

class

="wpfmt.mainwindow" x:

name

="window"

title

="mainwindow"

width

="640"

height

="480">

<

grid x:

name

="layoutroot"

background

="#ff7e7878">

<

rectangle

fill

="#ff0b3eda"

margin

="239,181,289,179"

stroke

="black">

interaction.beh**iors

>

translatezoomrotatebeh**ior

constraintoparentbounds

="true"/>

fluidmovebeh**ior

duration

="0:0:2">

fluidmovebeh**ior.easey

>

<

backease

easingmode

="easeout"/>

ei:fluidmovebeh**ior.easey

>

fluidmovebeh**ior.ea***

>

<

backease

easingmode

="easeout"/>

ei:fluidmovebeh**ior.ea***

>

ei:fluidmovebeh**ior

>

i:interaction.beh**iors

>

rectangle

>

grid

>

window

>

mac開發 ios開發

但是,任何乙個作業系統上,只使用開發語言就去開發程式是不行的。還需要有介面庫。尤其是支援object c的介面庫。mac上使用oc開發應用程式,都會使用xcode這個ide,整合開發工具,xcode中整合了gui介面庫。可以直接拖動控制項到介面上。objective c是一門語言,而cocoa 是這...

Quartz開發 基礎開發

開發環境.net 4.5.1 quartz.dll v2.4.1.0 依賴下面的dll common.loggin.dll v3.3.1.0 依賴下面的dll common.loggin.core.dll v3.3.1.0 本次教程只介紹基於quartz jobs.xml配置檔案方式的開發,這也是簡...

Spark開發 開發總覽

spark 的層次 開發視角多涉及兩種層面。1.一種是spark自身的開發,這類開發涉及到j a和sala以及一些底層的原始碼。了解這些內容,主要用於底層框架的開發以及針對spark的二次開發,也就是spark架構設計與實現。要求深入spark原始碼研究和二次開發,這些一般是大資料平台的設計與開發,...