WPF

    [WPF] Brush 사용

    ////방법 1 //Color color = Color.FromRgb(0, 0, 0); //SolidColorBrush solidColorBrush = new SolidColorBrush(color); ////방법 2 //SolidColorBrush solidColorBrush = new SolidColorBrush(Color.FromRgb(0, 0, 0)); ////방법 3 //SolidColorBrush solidColorBrush = new SolidColorBrush(); //solidColorBrush.Color = Color.FromRgb(0, 0, 0); //방법 4 SolidColorBrush solidColorBrush = new SolidColorBrush(Colors.Black); t..

    [WPF] 프로그램 활성화/비활성화 체크

    //응용 프로그램이 포그라운드 응용 프로그램이 될 때 발생한다. Application.Current.Activated += new EventHandler(Current_Activated); //응용 프로그램이 더 이상 포그라운드가 아닐 때 발생한다. Application.Current.Deactivated += new EventHandler(Current_Deactivated);

    [WPF] 창을 화면의 우측하단 영역에 위치시키기

    //창을 화면의 우측하단 영역에 위치시키기 this.Left = SystemParameters.WorkArea.Width - this.Width; this.Top = SystemParameters.WorkArea.Height - this.Height; ////창을 작업 영역의 중앙에 위치시키기 //this.Left = (SystemParameters.WorkArea.Width/2) - this.Left; //this.Top = (SystemParameters.WorkArea.Height/2) - this.Top;

    [WPF] 단일 인스턴트 응용 프로그램

    이미 실행중인 프로그램일때 새로운 응용프로그램은 종료시켜보자. 위와 같이 처리 후 아래와 같이 Mutex를 이용하여 같은 응용프로그램이 있는지 체크하여 실행/종료 using System.Windows; using System.Threading; namespace WpfApplication2 { /// /// App.xaml에 대한 상호 작용 논리 /// public partial class App : Application { Mutex mutex; protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); string mutexName = "InstanceName"; bool createdNew; mutex = new Mutex(..

    [WPF] App.xaml StartupUri -> cs사용

    App.xaml 파일을 보면 시작페이지를 지정하는 코드(StartupUri)가 있다. 이 부분을 cs파일에서 구현해보자. using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Windows; namespace WpfApplication3 { /// /// App.xaml에 대한 상호 작용 논리 /// public partial class App : Application { protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); Window1 window =..

    [Sliverlight] Canvas는 WPF 프로젝트에서 지원되지 않습니다.

    [Sliverlight] Canvas는 WPF 프로젝트에서 지원되지 않습니다.

    Visual Studio 2008에서 실버라이트 프로젝트를 만들어 파일 Expression Blend 2.0 에서 열기를 하면 아래와 같은 "Canvas는 WPF 프로젝트에서 지원되지 않습니다."라는 에러문구가 떠서 뭐 좀 해볼라면 항상 Blend 에서 Canvas 만들어서 코드 복사해서 붙여 테스트 했는데.. Visual Studio 2008 에서 만들어 주는 소스 각설하고 Expression Blend 2.5 2008년 6월 프리뷰 설치했더니 파일열기하면 자동으로 Expression Blend 2.5로 열리고 감동적으로 UserControl 에 Grid 까지 에러없이 출력해주는구나.. ㅠ.ㅠ 진작 설치할껄.. 큰 짐을 덜은 듯한 이 느낌..

    WCF, WPF/E 의미

    Windows Communication Foundation (WCF)는 .NET Framework 3.0 에 포함된 분산 통신 기술(more..) "WPF/E"는 다양한 플랫폼에서 실행되도록 개발된 새로운 웹 프레젠테이션 기술의 코드 이름(more..)

    마이크로소프트 24주간의 UX기술여행

    닷넷채널, 훈스닷넷, 태요닷넷이 뭉쳤다! 11월 13일부터 내년 3월까지 총10회에 걸쳐 “커뮤니티와 함께하는 24주간의 UX 기술 여행”이라는 주제의 세미나가 진행됩니다. 마이크로소프트의 새로운 기술과 툴에 관심이 있는 UI 디자이너와 개발자 및 UX를 향상시키는 RIA 기술의 실제를 경험해 보고자 하는 개발자/디자이너/기획자분들의 많은 관심 부탁 드립니다. 일시 : 2007년 11월 13일(화) ~ 2008년 3월 22일(토) 24주간 (상단의 달력을 확인해 주세요.) 장소 : 포스코센터 5층 Potential & Realizing Room 일자 주제 2007년 11월 13일 출발! UX 여행 오리엔태이션 오리엔테이션 : 커뮤니티와 함께하는 24주간의 UX 기술 여행 2007년 11월 17일 Silv..