摘要:Silverlight 2.0小技巧(4) DirectXmalPage
若要從page.xaml 轉到 page1.xaml (或 page1.xmal 轉回 page.xmal)
page.xmal and page1.xmal
<Grid x:Name="LayoutR
<Button Margin="160,128
</Grid>
page.xmal.cs
private void Button_Click(ob
{
Type type = typeof(Page).As
//namespace ReDirectPage
UIElement element = Activator.Creat
LayoutRoot.Chil
}
page1.xmal.cs
private void Button_Click(ob
{
Type type = typeof(Page).As
//namespace ReDirectPage
UIElement element = Activator.Creat
LayoutRoot.Chil
}
註:並不用刻意去移除Layou