Textbox関数を持つカスタムログインに取り組んでいAuto Completeます。しかし、私がしようとすると:
public static void SetSelectOnMouseOver(DependencyObject obj, bool value)
{
obj.SetValue(ListBoxItemBehavior.SelectOnMouseOverProperty,
(object)(bool)(value ? 1 : 0));
}
エラー(object)(bool)(value ? 1 : 0));>が表示されますcannot convert type 'int' to 'bool'。何が問題なのですか?