Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7829365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:44:11+00:00 2026-06-02T10:44:11+00:00

I got this piece of code: <Grid x:Name=ContentPanel Grid.Row=1 Margin=12,0,12,0> <Canvas> <TextBlock Name=txtblk Canvas.Left=100

  • 0

I got this piece of code:

<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
    <Canvas>
        <TextBlock Name="txtblk"
                   Canvas.Left="100" Canvas.Top="100"
                   Text="ROTATE">
        </TextBlock>
    </Canvas>
</Grid>

It works well and I can see my TextBlock. But if I add a ‘Projection’ attribute to it:

<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
    <Canvas>
        <TextBlock Name="txtblk"
                   Canvas.Left="100" Canvas.Top="100"
                   Text="ROTATE">
            <TextBlock.Projection>
                <PlaneProjection x:Name="planeProjection"
                                 CenterOfRotationX="0.5" CenterOfRotationY="0.5"
                                 RotationZ="45"/>
            </TextBlock.Projection>
        </TextBlock>
    </Canvas>
</Grid>

The TextBlock just disappeared! There is no other control in the page.

Could anyone tell me what happened? I’m really stuck.

Thanks!

P.S. The full xaml is as below:

<phone:PhoneApplicationPage 
x:Class="WP7Test.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="728" d:DesignHeight="480"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="Landscape" Orientation="Landscape"
shell:SystemTray.IsVisible="False">

    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Canvas>
                <TextBlock Name="txtblk"
                           Canvas.Left="100" Canvas.Top="100"
                           Text="ROTATE">
                    <TextBlock.Projection>
                        <PlaneProjection x:Name="planeProjection"
                                         CenterOfRotationX="0.5"
                                         CenterOfRotationY="0.5"
                                         RotationZ="45"/>
                    </TextBlock.Projection>
                </TextBlock>
            </Canvas>
        </Grid>
    </Grid>
</phone:PhoneApplicationPage>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T10:44:12+00:00Added an answer on June 2, 2026 at 10:44 am

    If I run a Silverlight example of the same thing, Projection Transforms Sans Math, the effect works correctly in Silverlight. If I copy and paste the XAML from that project into a phone project then the projection renders properly on the phone. If I paste your code into Silverlight it works fine in Silverlight. If I trim the odd nested grid out of your code it still works in Silverlight, but continues to fail on the phone. If I remove the Canvas element from the phone version and remove the Canvas.Top and Canvas.Left attached properties then it works on the phone.

    Based on those experiments, I think that this looks like a bug and if its not a bug there is no mention of the limitation anywhere that I can find.

    The simple workaround is to apply the Projection to a StackPanel, Viewbox or similar UIElement container.

    Here’s an example:

    <Grid x:Name="LayoutRoot" Background="Transparent" ShowGridLines="True">
        <Canvas Background="Purple">
            <Viewbox Canvas.Left="100" Canvas.Top="100" >
                <Viewbox.Projection>
                    <PlaneProjection x:Name="planeProjection" CenterOfRotationX="0.5" CenterOfRotationY="0.5" RotationZ="45"/>
                </Viewbox.Projection>
                <TextBlock Name="txtblk" Text="ROTATE" FontSize="288"/>
            </Viewbox>
        </Canvas>
    </Grid>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hallo all. I got this piece of code: <div> <input id=id1 name=radioButton type=radio> <input
so i got this piece of code. (currPosX is defined earlier) while (earliestDate <
I've got this piece of code in my jquery validation script: resetForm: function() {
I got this piece of Assembly code extracted from some piece of software, but
I've got this really simple piece of code that I thought was the correct
I have got a piece of code, that should countdown some number (in this
I've got this nifty little piece of code here that self-propogates ad infinitum every
I got this piece of code from Mysql 4th edition to check table existence
I've got this piece of code to get the next value using LINQ namespace.
I've got this piece of code trying to embed an .swf file to an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.