프로젝트

일반

사용자정보

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

markus / MarkupToPDF / Common / CommentUserInfo.cs @ c8e9b3e4

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

1
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
        public string SymbolID { get; set; }
22

    
23
        //public event EventHandler<MyEventArgs> StateChanged;
24

    
25
        public CommentUserInfo()
26
        {
27
            //this.BorderThickness = new System.Windows.Thickness(5.0);
28
            this.BorderThickness = new System.Windows.Thickness(20.0);
29

    
30

    
31
            this.MouseEnter += CommentUserInfo_MouseEnter;
32
            this.MouseLeave += CommentUserInfo_MouseLeave;
33
        }
34

    
35
        protected override GeometryHitTestResult HitTestCore(GeometryHitTestParameters hitTestParameters)
36
        {
37
            var temp = base.HitTestCore(hitTestParameters);
38
            return temp;
39
            //return base.HitTestCore(hitTestParameters);
40
        }
41

    
42
        private void CommentUserInfo_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e)
43
        {
44
            this.IsMouseOver = false;
45
            //if (StateChanged !=null)
46
            //{
47
            //    StateChanged(this, new MyEventArgs { isMouseOver = false });
48
            //}
49
            //this.Opacity = 1;
50
        }
51

    
52
        private void CommentUserInfo_MouseEnter(object sender, System.Windows.Input.MouseEventArgs e)
53
        {
54
            this.IsMouseOver = true;
55
            //this.Opacity = 0.5;
56
            //if (StateChanged != null)
57
            //{
58
            //    StateChanged(this, new MyEventArgs { isMouseOver = true });
59
            //}
60
        }
61
    }
62
}
63
 
클립보드 이미지 추가 (최대 크기: 500 MB)