프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / MarkupToPDF / Common / CommentUserInfo.cs @ ced47e14

이력 | 보기 | 이력해설 | 다운로드 (1.95 KB)

1 787a4489 KangIngu
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Windows.Media;
6
7
namespace MarkupToPDF.Common
8
{
9
    //public class MyEventArgs : System.EventArgs
10
    //{
11
    //    public bool isMouseOver { get; set; }
12
    //}
13
14
    public class CommentUserInfo : System.Windows.Controls.Control
15
    {
16
        public string Memo { get; set; }
17
        public string MarkupInfoID { get; set; }
18
        public bool IsMouseOver { get; set; }
19
        public bool IsNew { get; set; }
20
        public string CommentID { get; set; }
21 c8e9b3e4 ljiyeon
        public string SymbolID { get; set; }
22 53880c83 ljiyeon
        public long GroupID { get; set; }
23 787a4489 KangIngu
24
        //public event EventHandler<MyEventArgs> StateChanged;
25
26
        public CommentUserInfo()
27
        {
28
            //this.BorderThickness = new System.Windows.Thickness(5.0);
29
            this.BorderThickness = new System.Windows.Thickness(20.0);
30
31
32
            this.MouseEnter += CommentUserInfo_MouseEnter;
33
            this.MouseLeave += CommentUserInfo_MouseLeave;
34
        }
35
36
        protected override GeometryHitTestResult HitTestCore(GeometryHitTestParameters hitTestParameters)
37
        {
38
            var temp = base.HitTestCore(hitTestParameters);
39
            return temp;
40
            //return base.HitTestCore(hitTestParameters);
41
        }
42
43
        private void CommentUserInfo_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e)
44
        {
45
            this.IsMouseOver = false;
46
            //if (StateChanged !=null)
47
            //{
48
            //    StateChanged(this, new MyEventArgs { isMouseOver = false });
49
            //}
50
            //this.Opacity = 1;
51
        }
52
53
        private void CommentUserInfo_MouseEnter(object sender, System.Windows.Input.MouseEventArgs e)
54
        {
55
            this.IsMouseOver = true;
56
            //this.Opacity = 0.5;
57
            //if (StateChanged != null)
58
            //{
59
            //    StateChanged(this, new MyEventArgs { isMouseOver = true });
60
            //}
61
        }
62
    }
63
}
64
 
클립보드 이미지 추가 (최대 크기: 500 MB)