System.Windows.PresentationFrameworkCollection<T>
は継承の対象ではありませんか?カスタム<Type>AnimationsFromKeyFrames
オブジェクトを作成しようとしましたが、Visual Studioがいくつかのエラーを明らかにしているので、KeyFramesプロパティのコレクションタイプを作成できません。
Visual Studioは、彼らが継承されたオブジェクトのいずれかに存在しませんが、以下の抽象メンバーが実装されていません報告します。SilverlightライブラリでSystem.Windows.PresentationFrameworkCollectionを継承<T>
「MyKeyFrameCollectionは、」継承された抽象メンバー「を実装していないSystem.Windows .PresentationFrameworkCollection <MyKeyFrame> .SetItemImplSkipMethodPack(int型、MyKeyFrame ')
'MyKeyFrameCollection System.Windows.PresentationFrameworkCollection < MyKeyFrame' を継承した抽象部材実装していません' > .GetItemImplSkipMethodPack(int型) '
'MyKeyFrameCollection' 継承された抽象メンバーを実装していません 'System.Windows.PresentationFrameworkCollection <MyKeyFrame> .RemoveInternal(MyKeyFrame')
'MyKeyFrameCollectionは、System' 継承された抽象メンバーを実装していません' .Windows.PresentationFrameworkCollection <MyKeyFrame> .InsertInternal(int型、MyKeyFrame ')
'MyKeyFrameCollection' 継承された抽象メンバーを実装していません' System.Windows.PresentationFrameworkCollection < MYKEYフレーム> .IndexOfInternal(MyKeyFrame ')
'MyKeyFrameCollection System.Windows.PresentationFrameworkCollection' 継承された抽象メンバーを実装していません '<MyKeyFrame> .ContainsInternal(MyKeyFrame')
'MyKeyFrameCollection' 継承された抽象メンバーを実装していません' System.Windows.PresentationFrameworkCollection <MyKeyFrame> .AddInternal(MyKeyFrame「)
どのように私は行くのいずれかbizarro世界からこれらのメソッドを実装するか、あるいはビジュアル教えてくださいスタジオは不平をつくのをやめ、プロジェクトをコンパイルするだけですか?ウィットの終わりに
void System.Windows.PresentationFrameworkCollection<MyKeyFrame>.AddInternal(MyKeyFrame keyFrame)
void System.Collections.Generic.IList<MyKeyFrame>.AddInternal(MyKeyFrame keyFrame)
void System.Collections.Generic.ICollection<MyKeyFrame>.AddInternal(MyKeyFrame keyFrame)
void System.Collections.IList.AddInternal(MyKeyFrame keyFrame)
void System.Collections.ICollection.AddInternal(MyKeyFrame keyFrame)
、およびMSが「doesnのことを考え:私は明示的に(前回の非存在発言どおり、当然のように)なかった以下のものを使用して、これらのメソッドを定義しようとした
仕事KeyFrameCollectionsを作るコミュニティが必要ですか?
EDIT:私が試した、と私の唯一のoverride
オプションはEquals
、GetHashCode
、およびToString
です。これらの抽象メンバはprotected internal
なので、既存のフレームワーククラスは継承できますが、カスタムクラスは継承できませんか?
これは私が恐れていたものです。私は 'DependencyObject'を継承し、' PresentationFrameworkCollection'の仕組みと同様に 'IList'を実装することで回避しようとしましたが、レンダリングしようとするとCOM例外が発生しました。今のところ、すべてのものを解体する。 –