System.ComponentModel.DesignerProperties を利用して、今 Visual Studio のデザインモードでコントロールを表示しているかどうか判断できます。 using System.ComponentModel; public bool IsDesignMode { get { return DesignerProperties .GetIsInDesignMode(Application.Current.RootVisual); } } ★月額105円~/容量最大30GB/機能満載! ロリポップ!レンタルサーバー ★ コメント: |