Click here to Skip to main content
15,912,021 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Vertical Text in Grid Pin
Mark Salsbery28-Sep-09 6:19
Mark Salsbery28-Sep-09 6:19 
GeneralRe: Vertical Text in Grid Pin
Adriaan Davel28-Sep-09 19:57
Adriaan Davel28-Sep-09 19:57 
GeneralRe: Vertical Text in Grid Pin
Mark Salsbery29-Sep-09 6:54
Mark Salsbery29-Sep-09 6:54 
Adriaan Davel wrote:
a snippet for this with a TextBlock of 90 Height and 23 Width


If that's the dimensions you're using then I can see why text gets clipped.


A RotateTransform applied to a textblock will rotate the textblock, not just the text.
So you don't want to swap the width and height values.

You'll also need to be mindful of the element the textblock is contained in,
which depending on its type, could cause additional layout on the textblock.

Here's an example:
<Border BorderBrush="SteelBlue" BorderThickness="2" Width="300" Height="200" >
    <Grid Background="LightSteelBlue" >
        <TextBlock Text="Rotated Text" FontSize="12" FontWeight="Bold" Width="90" Height="23" HorizontalAlignment="Center" VerticalAlignment="Center" >
            <TextBlock.RenderTransform>
                <RotateTransform Angle="270" CenterX="45" CenterY="11" />
            </TextBlock.RenderTransform>
        </TextBlock>
    </Grid>
</Border>


Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Vertical Text in Grid Pin
Adriaan Davel29-Sep-09 19:29
Adriaan Davel29-Sep-09 19:29 
GeneralRe: Vertical Text in Grid [modified] Pin
Mark Salsbery1-Oct-09 6:14
Mark Salsbery1-Oct-09 6:14 
GeneralRe: Vertical Text in Grid Pin
Adriaan Davel1-Oct-09 19:49
Adriaan Davel1-Oct-09 19:49 
GeneralRe: Vertical Text in Grid Pin
Adriaan Davel1-Oct-09 20:16
Adriaan Davel1-Oct-09 20:16 
QuestionWeird blue dots Pin
lhyblue22-Sep-09 20:52
lhyblue22-Sep-09 20:52 
AnswerRe: Weird blue dots Pin
Pete O'Hanlon22-Sep-09 22:34
mvePete O'Hanlon22-Sep-09 22:34 
GeneralRe: Weird blue dots Pin
lhyblue22-Sep-09 23:01
lhyblue22-Sep-09 23:01 
GeneralRe: Weird blue dots Pin
Pete O'Hanlon23-Sep-09 2:08
mvePete O'Hanlon23-Sep-09 2:08 
JokeRe: Weird blue dots Pin
egenis23-Sep-09 0:26
egenis23-Sep-09 0:26 
QuestionWPF vs.... Pin
Chrispie12322-Sep-09 8:32
Chrispie12322-Sep-09 8:32 
AnswerRe: WPF vs.... Pin
Pete O'Hanlon22-Sep-09 9:15
mvePete O'Hanlon22-Sep-09 9:15 
AnswerRe: WPF vs.... Pin
BurNingFat22-Sep-09 20:12
BurNingFat22-Sep-09 20:12 
QuestionWPF FORM with kind of pie chart consisting of 12 coloreed glass segments Pin
carson200522-Sep-09 4:54
carson200522-Sep-09 4:54 
AnswerRe: WPF FORM with kind of pie chart consisting of 12 coloreed glass segments Pin
Pete O'Hanlon22-Sep-09 5:02
mvePete O'Hanlon22-Sep-09 5:02 
QuestionHow to access controls in a Tab control from another usercontrol page. Pin
Nekkantidivya22-Sep-09 2:44
Nekkantidivya22-Sep-09 2:44 
QuestionWPF UserControl in Library - Rendering Pin
skyline9221-Sep-09 23:39
skyline9221-Sep-09 23:39 
AnswerRe: WPF UserControl in Library - Rendering Pin
skyline9222-Sep-09 0:57
skyline9222-Sep-09 0:57 
QuestionCustomize Ambient App Pin
User 602357121-Sep-09 11:39
User 602357121-Sep-09 11:39 
AnswerRe: Customize Ambient App Pin
Richard MacCutchan21-Sep-09 11:45
mveRichard MacCutchan21-Sep-09 11:45 
QuestionCommand for Button, check if right clicked Pin
ezazazel20-Sep-09 5:57
ezazazel20-Sep-09 5:57 
AnswerRe: Command for Button, check if right clicked Pin
ABitSmart20-Sep-09 14:07
ABitSmart20-Sep-09 14:07 
GeneralRe: Command for Button, check if right clicked Pin
ezazazel21-Sep-09 4:58
ezazazel21-Sep-09 4:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.