Click here to Skip to main content
15,888,733 members
Home / Discussions / WPF
   

WPF

 
QuestionClock timepicker Pin
pcsamer22-Sep-09 22:53
pcsamer22-Sep-09 22:53 
AnswerRe: Clock timepicker Pin
Mark Salsbery23-Sep-09 5:50
Mark Salsbery23-Sep-09 5:50 
QuestionVertical Text in Grid Pin
Adriaan Davel22-Sep-09 21:08
Adriaan Davel22-Sep-09 21:08 
AnswerRe: Vertical Text in Grid Pin
Mark Salsbery23-Sep-09 5:51
Mark Salsbery23-Sep-09 5:51 
GeneralRe: Vertical Text in Grid Pin
Adriaan Davel27-Sep-09 20:03
Adriaan Davel27-Sep-09 20:03 
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 

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.