My Project
公開方法(Public Methods) | 公開屬性 | 私有方法(Private Methods) | 私有屬性 | 全部成員列表
UserControl1

UserControl1 更多...

類別UserControl1的繼承圖:

公開方法(Public Methods)

 UserControl1 ()
 
void ClearBtnUse ()
 
void ClearDrawing ()
 
void color (String CName)
 
void drawBackLine (double w, double h, double opac)
 畫背景格線 更多...
 
void hiddenCanvas ()
 隱藏myControl 更多...
 
void hideBackLine ()
 
void InitializeComponent ()
 InitializeComponent 更多...
 
void InitializeComponent ()
 InitializeComponent 更多...
 
void initpath (string xml)
 
void RUdo (int Act)
 
void stroke (int stroketype)
 

公開屬性

checkHitDraw chd = new checkHitDraw()
 
String colortype = "black"
 
int drawtype = 1
 初始設定 更多...
 
int lineSpace = 9
 
RUse ru = new RUse()
 

私有方法(Private Methods)

void System.Windows.Markup.IComponentConnector. Connect (int connectionId, object target)
 
void System.Windows.Markup.IComponentConnector. Connect (int connectionId, object target)
 
Point correctPoint (Point p)
 是否有選取物件 /// 更多...
 
String pathDataToPoint (String Data)
 調整顏色 更多...
 
void showCanvas ()
 顯示myControl 更多...
 
void UserControl_KeyDown (object sender, KeyEventArgs e)
 繪製曲線 更多...
 
void UserControl_Unloaded (object sender, RoutedEventArgs e)
 關閉時,轉成圖片 更多...
 

私有屬性

bool _contentLoaded
 
bool bConThing = false
 判斷是否為繪製新圖形 更多...
 
BezierSegment bezier = new BezierSegment()
 紀錄四個控制點使用 更多...
 
bool bfirst = true
 紀錄控制後的曲線 更多...
 
byte colorB = 0
 
byte colorG = 0
 
byte colorR = 0
 
System.Windows.Shapes.Path controlPath = new System.Windows.Shapes.Path()
 紀錄曲線 更多...
 
PathFigure figure = new PathFigure()
 
PathGeometry geometry = new PathGeometry()
 
gPoint gp
 
internal System.Windows.Controls.Canvas myBackground
 
internal System.Windows.Controls.Canvas myControl
 
internal System.Windows.Controls.Canvas mygrid
 
Line myLine
 
System.Windows.Shapes.Path myPath = new System.Windows.Shapes.Path()
 
Point p0
 繪製曲線時的狀態 更多...
 
Point p1
 
Point p2
 
Point p3 = new Point(0, 0)
 
String Status = "rest"
 
int strokeT = 3
 
Geometry tempGeo
 

詳細描述

UserControl1

UserControl1.xaml 的互動邏輯

定義在 UserControl1.g.cs 檔案之第 41 行.

建構子與解構子說明文件

◆ UserControl1()

定義在 UserControl1.xaml.cs 檔案之第 40 行.

函式成員說明文件

◆ ClearBtnUse()

void ClearBtnUse ( )

清除畫布警告

定義在 UserControl1.xaml.cs 檔案之第 286 行.

◆ ClearDrawing()

void ClearDrawing ( )

清空資料區

定義在 UserControl1.xaml.cs 檔案之第 299 行.

◆ color()

void color ( String  CName)

調整顏色

定義在 UserControl1.xaml.cs 檔案之第 381 行.

◆ Connect() [1/2]

void System.Windows.Markup.IComponentConnector. Connect ( int  connectionId,
object  target 
)
private

定義在 UserControl1.g.i.cs 檔案之第 94 行.

◆ Connect() [2/2]

void System.Windows.Markup.IComponentConnector. Connect ( int  connectionId,
object  target 
)
private

定義在 UserControl1.g.cs 檔案之第 94 行.

◆ correctPoint()

Point correctPoint ( Point  p)
private

是否有選取物件 ///

是否有滑入或滑出選取物件 ///

矯正滑鼠位置

定義在 UserControl1.xaml.cs 檔案之第 119 行.

◆ drawBackLine()

void drawBackLine ( double  w,
double  h,
double  opac 
)

畫背景格線

定義在 UserControl1.xaml.cs 檔案之第 312 行.

◆ hiddenCanvas()

void hiddenCanvas ( )

隱藏myControl

定義在 UserControl1.xaml.cs 檔案之第 138 行.

◆ hideBackLine()

void hideBackLine ( )

背景格線取消

定義在 UserControl1.xaml.cs 檔案之第 306 行.

◆ InitializeComponent() [1/2]

void InitializeComponent ( )

InitializeComponent

定義在 UserControl1.g.cs 檔案之第 74 行.

◆ InitializeComponent() [2/2]

void InitializeComponent ( )

InitializeComponent

定義在 UserControl1.g.i.cs 檔案之第 74 行.

◆ initpath()

void initpath ( string  xml)

匯入xml,轉換成圖片

定義在 UserControl1.xaml.cs 檔案之第 467 行.

◆ pathDataToPoint()

String pathDataToPoint ( String  Data)
private

調整顏色

定義在 UserControl1.xaml.cs 檔案之第 451 行.

◆ RUdo()

void RUdo ( int  Act)

定義在 UserControl1.xaml.cs 檔案之第 435 行.

◆ showCanvas()

void showCanvas ( )
private

顯示myControl

定義在 UserControl1.xaml.cs 檔案之第 145 行.

◆ stroke()

void stroke ( int  stroketype)

線條粗細

定義在 UserControl1.xaml.cs 檔案之第 361 行.

◆ UserControl_KeyDown()

void UserControl_KeyDown ( object  sender,
KeyEventArgs  e 
)
private

繪製曲線

換鼠標

鍵盤按鍵按下

定義在 UserControl1.xaml.cs 檔案之第 254 行.

◆ UserControl_Unloaded()

void UserControl_Unloaded ( object  sender,
RoutedEventArgs  e 
)
private

關閉時,轉成圖片

定義在 UserControl1.xaml.cs 檔案之第 480 行.

資料成員說明文件

◆ _contentLoaded

bool _contentLoaded
private

定義在 UserControl1.g.cs 檔案之第 67 行.

◆ bConThing

bool bConThing = false
private

判斷是否為繪製新圖形

繪製時,滑鼠是否可以移動 ///

選取後是否可以移動 ///

定義在 UserControl1.xaml.cs 檔案之第 109 行.

◆ bezier

BezierSegment bezier = new BezierSegment()
private

紀錄四個控制點使用

定義在 UserControl1.xaml.cs 檔案之第 76 行.

◆ bfirst

bool bfirst = true
private

紀錄控制後的曲線

定義在 UserControl1.xaml.cs 檔案之第 101 行.

◆ chd

定義在 UserControl1.xaml.cs 檔案之第 57 行.

◆ colorB

byte colorB = 0
private

定義在 UserControl1.xaml.cs 檔案之第 62 行.

◆ colorG

byte colorG = 0
private

定義在 UserControl1.xaml.cs 檔案之第 61 行.

◆ colorR

byte colorR = 0
private

定義在 UserControl1.xaml.cs 檔案之第 60 行.

◆ colortype

String colortype = "black"

定義在 UserControl1.xaml.cs 檔案之第 54 行.

◆ controlPath

System.Windows.Shapes.Path controlPath = new System.Windows.Shapes.Path()
private

紀錄曲線

定義在 UserControl1.xaml.cs 檔案之第 96 行.

◆ drawtype

int drawtype = 1

初始設定

定義在 UserControl1.xaml.cs 檔案之第 53 行.

◆ figure

PathFigure figure = new PathFigure()
private

定義在 UserControl1.xaml.cs 檔案之第 77 行.

◆ geometry

PathGeometry geometry = new PathGeometry()
private

定義在 UserControl1.xaml.cs 檔案之第 78 行.

◆ gp

gPoint gp
private

定義在 UserControl1.xaml.cs 檔案之第 59 行.

◆ lineSpace

int lineSpace = 9

定義在 UserControl1.xaml.cs 檔案之第 55 行.

◆ myBackground

internal System Windows Controls Canvas myBackground
private

定義在 UserControl1.g.cs 檔案之第 46 行.

◆ myControl

internal System Windows Controls Canvas myControl
private

定義在 UserControl1.g.cs 檔案之第 62 行.

◆ mygrid

internal System Windows Controls Canvas mygrid
private

定義在 UserControl1.g.cs 檔案之第 54 行.

◆ myLine

Line myLine
private

紀錄橢圓形

定義在 UserControl1.xaml.cs 檔案之第 88 行.

◆ myPath

System.Windows.Shapes.Path myPath = new System.Windows.Shapes.Path()
private

紀錄直線、控制後的直線

定義在 UserControl1.xaml.cs 檔案之第 92 行.

◆ p0

Point p0
private

繪製曲線時的狀態

滑鼠起點和終點

定義在 UserControl1.xaml.cs 檔案之第 73 行.

◆ p1

Point p1
private

定義在 UserControl1.xaml.cs 檔案之第 73 行.

◆ p2

Point p2
private

定義在 UserControl1.xaml.cs 檔案之第 73 行.

◆ p3

Point p3 = new Point(0, 0)
private

定義在 UserControl1.xaml.cs 檔案之第 73 行.

◆ ru

RUse ru = new RUse()

定義在 UserControl1.xaml.cs 檔案之第 58 行.

◆ Status

String Status = "rest"
private

定義在 UserControl1.xaml.cs 檔案之第 66 行.

◆ strokeT

int strokeT = 3
private

定義在 UserControl1.xaml.cs 檔案之第 63 行.

◆ tempGeo

Geometry tempGeo
private

定義在 UserControl1.xaml.cs 檔案之第 82 行.


此類別(class) 文件是由下列檔案中產生: