How to override the first inner stack panel's data context...So that..I can refer the properties in class A
Class A
{
public B b;
}
Class B
{
}
<stack panel DataContext = b >
<stack panel>
// HEre I use properties from class A
</stack panel>
<stack panel>
// HEre I use properties from class B
</stack panel>
<stack panel>
// HEre I use properties from class B
</stack panel>
<stack panel>
// HEre I use properties from class B
</stack panel>
</stack panel>