Windows Mobile 7.1 Rotating a page

Posted on 2011-10-24
Last Modified: 2013-12-27
I have a very simple page which is being used to take photos.  It is based on the Microsoft sample and has a button which when clicked operates the shutter.  All I need to do is to handle the moving of this button to the top right of the screen when the screen is rotated.  I can't seem to find any information on how this is done.  I have attached my xaml - any help please
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape" Orientation="LandscapeLeft"
    mc:Ignorable="d" d:DesignHeight="480" d:DesignWidth="800"

	<!--LayoutRoot is the root grid where all page content is placed-->
	<Grid x:Name="LayoutRoot" Background="Transparent">
			<ColumnDefinition Width="640" />
			<ColumnDefinition Width="160" />

		<Canvas x:Name="viewfinderCanvas" Width="640" Height="480" HorizontalAlignment="Left" >

			<!--Camera viewfinder -->
				<VideoBrush x:Name="viewfinderBrush" />

			<!-- Brackets for Touch Focus -->
                Text="[   ]" 


		<!--Button StackPanel to the right of viewfinder>-->
		<StackPanel Grid.Column="1" >
			<Button x:Name="ShutterButton" Content="SH" Click="ShutterButton_Click" FontSize="26" FontWeight="ExtraBold" Height="75" />

		<!--Used for debugging >-->
		<TextBlock Height="40" HorizontalAlignment="Left" Margin="8,428,0,0" Name="txtDebug" VerticalAlignment="Top" Width="626" FontSize="24" FontWeight="ExtraBold" />


Open in new window

Question by:ChrisMDrew
    LVL 48

    Accepted Solution


    Author Comment

    Looks as though as I am using a grid it whould sort of work out of the biox but doesn't.  I think it is probably down to the canvas used for the camera but not sure.
    LVL 48

    Expert Comment

    you have defined widths setup in the xaml. That would take preference.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    I think the most popular question in our Windows Mobile Programming zone is about the backlight - we all want to keep it on when our application is running. Few years ago the function SystemIdleTimerReset() did this job. On our side we had to detec…
    Let me explain this picture a little bit.  First, in case you haven't already guessed, you are looking at my 2 phones, an Android Samsung Galaxy S5 on the left and an iPhone 5 on the right.  They are on their respective cradles on my desk.  But, you…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now