728x90
반응형
WPF & C# - |
01 Window_PreviewMouseLeftButtonDown
02 Window_PreviewMouseDown
03 Grid_PreviewMouseLeftButtonDown
04 Grid_PreviewMouseDown
05 Grid_MouseLeftButtonDown
06 Grid_MouseDown
07 Window_MouseLeftButtonDown
08 Window_MouseDown
---------------------------------------------
01 Window_PreviewMouseLeftButtonUp
02 Window_PreviewMouseUp
03 Grid_PreviewMouseLeftButtonUp
04 Grid_PreviewMouseUp
05 Grid_MouseLeftButtonUp
06 Grid_MouseUp
07 Window_MouseLeftButtonUp
08 Window_MouseUp
e.Handled = true; // 버블링 및 터널링 종료
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
|
<Window x:Class="temp.MainWindow"
xmlns:local="clr-namespace:temp"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800" MouseDown="Window_MouseDown" MouseLeftButtonDown="Window_MouseLeftButtonDown" MouseLeftButtonUp="Window_MouseLeftButtonUp" MouseUp="Window_MouseUp" PreviewMouseDown="Window_PreviewMouseDown" PreviewMouseLeftButtonDown="Window_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="Window_PreviewMouseLeftButtonUp" PreviewMouseUp="Window_PreviewMouseUp">
<Grid MouseLeftButtonDown="Grid_MouseLeftButtonDown" PreviewMouseDown="Grid_PreviewMouseDown" PreviewMouseLeftButtonDown="Grid_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="Grid_PreviewMouseLeftButtonUp" PreviewMouseUp="Grid_PreviewMouseUp" MouseDown="Grid_MouseDown" MouseLeftButtonUp="Grid_MouseLeftButtonUp" MouseUp="Grid_MouseUp" Background="White">
<Label x:Name="lbl" Content="" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top"/>
</Grid>
</Window>
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
|
http://colorscripter.com/info#e" target="_blank" style="text-decoration:none;color:white">cs |
MainWindow.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
public MainWindow()
{
InitializeComponent();
Str("[ Bubbling ] & [ Tunneling ]");
}
private void Window_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
Str("01 Window_PreviewMouseLeftButtonDown");
}
private void Window_PreviewMouseDown(object sender, MouseButtonEventArgs e)
{
Str("02 Window_PreviewMouseDown");
}
private void Grid_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
Str("03 Grid_PreviewMouseLeftButtonDown");
}
private void Grid_PreviewMouseDown(object sender, MouseButtonEventArgs e)
{
Str("04 Grid_PreviewMouseDown");
}
private void Grid_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
Str("05 Grid_MouseLeftButtonDown");
}
private void Grid_MouseDown(object sender, MouseButtonEventArgs e)
{
Str("06 Grid_MouseDown");
}
private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
Str("07 Window_MouseLeftButtonDown");
}
private void Window_MouseDown(object sender, MouseButtonEventArgs e)
{
Str("08 Window_MouseDown");
Str("---------------------------------------------");
}
private void Window_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
Str("01 Window_PreviewMouseLeftButtonUp");
}
private void Window_PreviewMouseUp(object sender, MouseButtonEventArgs e)
{
Str("02 Window_PreviewMouseUp");
}
private void Grid_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
Str("03 Grid_PreviewMouseLeftButtonUp");
}
private void Grid_PreviewMouseUp(object sender, MouseButtonEventArgs e)
{
Str("04 Grid_PreviewMouseUp");
}
private void Grid_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
Str("05 Grid_MouseLeftButtonUp");
}
private void Grid_MouseUp(object sender, MouseButtonEventArgs e)
{
Str("06 Grid_MouseUp");
}
private void Window_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
Str("07 Window_MouseLeftButtonUp");
}
private void Window_MouseUp(object sender, MouseButtonEventArgs e)
{
Str("08 Window_MouseUp");
Str("e.Handled = true; // 버블링 및 터널링 종료");
e.Handled = true;
}
private void Str(string str)
{
lbl.Content += str + "\n";
}
}
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
|
http://colorscripter.com/info#e" target="_blank" style="text-decoration:none;color:white">cs |
728x90
반응형
'Programing (프로그래밍) > WPF & C# (C Sharp)' 카테고리의 다른 글
WPF C# - 함수 - GetDropFiles 드래그앤드랍 파일 가져오기 (drag&drop) (0) | 2020.06.14 |
---|---|
[자작] WPF & C# SearchList_Regex ( Regex Patten Serch 자동차 번호판 영업용 차량 LPR ANPR ) (2) | 2020.01.07 |
[자작] WPF&C# PACL 멀티캠뷰어 헬퍼 ( MultiCamViewer Helper ) (0) | 2019.10.18 |
[자작] 키오스크미디어월 ( kiosk media wall ) (0) | 2019.10.08 |
WPF & C# - JSON 사용방법 사용법 ( 저장 / 불러오기 / parse / parsing / 파싱 ) (1) | 2019.08.16 |
WPF & C# - 시작 변수_메인 메소드_Args_StartupEventArgs (0) | 2019.07.01 |
[자작] WPF & C# - 농촌진흥청_국립축산과학원 kiosk_키오스크-세로 (0) | 2019.06.23 |
[자작] WPF & C# - 클라우드코리아 방명록 ( ck GuestBook 제스처 Gesture ) (0) | 2019.02.21 |