Question

<Grid x:Name="grdTouchZoom"  RenderTransform="1 0 0 1 0 0" IsManipulationEnabled="True" Background="Transparent">            
            <Grid Background="Transparent"/>
            <Canvas>                               
                <Image Name="img" Source="c:/1.jpg" />
                <ContentControl x:Name="rt" Content="{Binding CurrentView}" Margin="0,0,0,0">
                </ContentControl>
            </Canvas>

</Grid>

That's my code to make slide book application. I intend use canvas object to moving my page control by changing Canvas.Left, but when I put my control which contain CurrentView object, it's not showed. I try with image control, it worked. I put my contentcontrol was out side canvas, it worked. Where's my wrong?

Était-ce utile?

La solution

Instead of ContentControl try with Border, Bind the CurrentView with its Child

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top