特別なニーズに合わせて少しだけ拡張した BindingSource のサブクラスがあり、VS2008 Designer でサポートしたいと考えています。
デザイナーのサポートを受けたい 3 つのプロパティがあり、そのうちの 2 つはControl
フォームの他の に設定する必要があり、1 つは に設定する必要がありType
ます。
それらをden Designerに表示し、デフォルト値のnullを設定するのは非常に簡単でしたが、VSに利用可能なコントロール(理想的には目的のタイプのみ)およびまたはType
sを選択させるにはどうすればよいですか?
これまでのプロパティのコードは次のとおりです。VS-Designer のサポートについて何も知らないので、どんなヒントでも大歓迎です。
public class BindingSourceEx
: BindingSource
{
[DisplayName("DataSourceType")]
[Description("Sets the type to bind to.")]
public Type DataSourceType
{
get;
set;
}
[DisplayName("BindingNavigator")]
[DefaultValue(null)]
[Description("Sets the BindingNavigatorQ1 to use.")]
public BindingNavigatorEx BindingNavigator
{
get;
set;
}
[DisplayName("DataGridView")]
[DefaultValue(null)]
[Description("Sets the DataGridViewQ1 to use.")]
public DataGridViewEx DataGridView
{
get;
set;
}
}