Click here to Skip to main content
15,899,754 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using WPF Browser Application. This is my .xaml for both my pages. So how do i pass the "grid1" from page 1 to my "grid2" in page 2??


In Page 1.....

C#
<Grid>
        <Grid Height="156" HorizontalAlignment="Left" Margin="33,96,0,0" Name="grid1" VerticalAlignment="Top" Width="216" removed="Aqua">
        <Label Content="heart" Height="33" HorizontalAlignment="Left" Margin="86,74,0,0" Name="label1" VerticalAlignment="Top" FontSize="20" Width="57" />
        </Grid>
    </Grid>
</Page>



In page 2....


C#
<Grid>
        <Grid Height="156" HorizontalAlignment="Left" Margin="47,90,0,0" Name="grid2" VerticalAlignment="Top" Width="216" />
    </Grid>
</Page<big></big>>
Posted

1 solution

Hi Alif,

For each Grid use a View-Model, and just pass the View-Model between the pages.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900