セル編集テンプレートで宣言された名前で変数にアクセスできないのはなぜですか?

StackOverflow https://stackoverflow.com/questions/4810139

質問

シルバーライトガードがあります。 Cell Edit TemplateとしてAutoCompleteBoxを使用する列の1つ。次のように宣言します

<c1:Column.CellEditingTemplate>
    <DataTemplate>
      <sdk:AutoCompleteBox x:Name="TestField" Text="{Binding ReferencePath,Mode=TwoWay}"                                       Populating="tester_Populating" MinimumPrefixLength="0" IsDropDownOpen="True" LostFocus="tester_LostFocus"/>
                    </DataTemplate>
                </c1:Column.CellEditingTemplate>

背後にあるコードのテストフィールドにアクセスしようとしたとき、それは利用できません。なぜこの変数は背後のコードでアクセスできないのですか?

役に立ちましたか?

解決

次のリンクで答えを見つけました、

http://forums.silverlight.net/forums/p/200237/467179.aspx

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top