ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 블로그에 구문강조 코드블럭 넣기
    more 2010. 8. 20. 16:58

    http://alexgorbatchev.com/SyntaxHighlighter/

    자바 스크립트를 이용해 소스 코드에 스타일을 적용해서 출력해준다.

    적용방법
    http://ox9osub.tistory.com/6

    적용예제

    public static void SetAngle(this FrameworkElement Source, double Angle)
    {
    	Source.RenderTransformOrigin = new Point(0.5, 1);
    	Source.VerticalAlignment = VerticalAlignment.Center;
    	Source.HorizontalAlignment = HorizontalAlignment.Center;
    	if (Source.RenderTransform is RotateTransform)
    		(Source.RenderTransform as RotateTransform).Angle = Angle;
    	else
    		Source.RenderTransform = new RotateTransform(Angle);
    }
    
    public static void SetAngle(this FrameworkElement Source, double Angle)
    {
    	Source.RenderTransformOrigin = new Point(0.5, 1);
    	Source.VerticalAlignment = VerticalAlignment.Center;
    	Source.HorizontalAlignment = HorizontalAlignment.Center;
    	if (Source.RenderTransform is RotateTransform)
    		(Source.RenderTransform as RotateTransform).Angle = Angle;
    	else
    		Source.RenderTransform = new RotateTransform(Angle);
    }
    

    웃긴건 펼침후엔 다시 접을수가 없네 ㅡ,ㅡ;
Designed by Tistory.