Click here to Skip to main content
15,889,695 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Setting a Style Programatically Pin
#realJSOP5-Apr-10 12:14
mve#realJSOP5-Apr-10 12:14 
GeneralRe: Setting a Style Programatically Pin
Pete O'Hanlon6-Apr-10 9:03
mvePete O'Hanlon6-Apr-10 9:03 
GeneralRe: Setting a Style Programatically Pin
#realJSOP6-Apr-10 9:17
mve#realJSOP6-Apr-10 9:17 
QuestionText Rotation - Is It Just Me? Pin
#realJSOP5-Apr-10 0:04
mve#realJSOP5-Apr-10 0:04 
AnswerRe: Text Rotation - Is It Just Me? Pin
Pete O'Hanlon5-Apr-10 10:20
mvePete O'Hanlon5-Apr-10 10:20 
QuestionSilverlight Automatic Image Transition Pin
saurabh94-Apr-10 23:03
saurabh94-Apr-10 23:03 
AnswerRe: Silverlight Automatic Image Transition Pin
Michael J. Eber19-Apr-10 11:54
Michael J. Eber19-Apr-10 11:54 
QuestionRotaing Label control Pin
#realJSOP4-Apr-10 5:58
mve#realJSOP4-Apr-10 5:58 
I'm trying to rotate a Label , and while the label is indeed rotating, the top/bottom of the text is cutoff. As you can see in the code posted below, I tried setting the width/height of the label, but that effected no visual change. What am I doing wrong?

<UserControl.Resources>
<Style x:Key="MidHeaderPanel" TargetType="Border">
	<Setter Property="BorderBrush"     Value="Black" />
	<Setter Property="BorderThickness" Value="2,0,0,2" />
	<Setter Property="Width"           Value="30" />
	<Setter Property="Background"      Value="SlateBlue" />
	<Setter Property="CornerRadius"    Value="0,0,0,0" />
</Style>

<Style x:Key="BaseNameHeaderText" TargetType="dataInput:Label">
	<!--<Setter Property="Width"                 Value="60" />
	<Setter Property="Height"                Value="30" />-->
	<Setter Property="FontFamily"            Value="Arial" />
	<Setter Property="FontWeight"            Value="Bold" />
	<Setter Property="FontSize"              Value="24" />
	<Setter Property="Foreground"            Value="White" />
	<Setter Property="Background"            Value="Transparent" />
	<Setter Property="HorizontalAlignment"   Value="Center" />
	<Setter Property="VerticalAlignment"     Value="Center" />
	<Setter Property="UseLayoutRounding"     Value="False" />
	<Setter Property="RenderTransformOrigin" Value="0.5,0.5" />
	<Setter Property="RenderTransform">
		<Setter.Value>
			<RotateTransform Angle="90" />
		</Setter.Value>
	</Setter>
</Style>
</UserControl.Resources>

<Grid x:Name="LayoutRoot" >
	<Border Margin="10" CornerRadius="10" BorderThickness="2" BorderBrush="Black" Width="Auto" Height="Auto">
		<controlsToolkit:DockPanel VerticalAlignment="Top">
			<StackPanel x:Name="JellyBeanPanel" Height="100"  HorizontalAlignment="Left" Background="Transparent">
				<StackPanel x:Name="HeaderRow" Height="60" Orientation="Horizontal">
					<Border Style="{StaticResource MidHeaderPanel}">
						<dataInput:Label Style="{StaticResource BaseNameHeaderText}" Content="LUK" />
					</Border>
				</StackPanel>
			</StackPanel>
		</controlsToolkit:DockPanel>
	</Border>
</Grid>

.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

AnswerRe: Rotaing Label control Pin
Abhinav S4-Apr-10 6:50
Abhinav S4-Apr-10 6:50 
GeneralRe: Rotaing Label control Pin
#realJSOP4-Apr-10 7:02
mve#realJSOP4-Apr-10 7:02 
GeneralRe: Rotaing Label control Pin
Abhinav S4-Apr-10 7:11
Abhinav S4-Apr-10 7:11 
GeneralRe: Rotaing Label control Pin
#realJSOP4-Apr-10 7:51
mve#realJSOP4-Apr-10 7:51 
QuestionImage.ImageSource to string ? Pin
Mohammad Dayyan3-Apr-10 16:58
Mohammad Dayyan3-Apr-10 16:58 
AnswerRe: Image.ImageSource to string ? Pin
Abhinav S3-Apr-10 18:09
Abhinav S3-Apr-10 18:09 
QuestionWPF DataGrid row backgound Pin
koleraba3-Apr-10 7:47
koleraba3-Apr-10 7:47 
AnswerRe: WPF DataGrid row backgound Pin
Abhinav S3-Apr-10 7:59
Abhinav S3-Apr-10 7:59 
GeneralRe: WPF DataGrid row backgound Pin
koleraba3-Apr-10 8:06
koleraba3-Apr-10 8:06 
QuestionListView Item Style Pin
Snecx2-Apr-10 9:33
Snecx2-Apr-10 9:33 
AnswerRe: ListView Item Style Pin
Richard MacCutchan2-Apr-10 9:44
mveRichard MacCutchan2-Apr-10 9:44 
GeneralRe: ListView Item Style Pin
Snecx2-Apr-10 11:23
Snecx2-Apr-10 11:23 
GeneralRe: ListView Item Style Pin
Richard MacCutchan2-Apr-10 22:03
mveRichard MacCutchan2-Apr-10 22:03 
QuestionRemoving Underline of Hyperlink control in WPF Pin
Hema Bairavan31-Mar-10 18:43
Hema Bairavan31-Mar-10 18:43 
AnswerRe: Removing Underline of Hyperlink control in WPF Pin
Parwej Ahamad31-Mar-10 19:39
professionalParwej Ahamad31-Mar-10 19:39 
AnswerRe: Removing Underline of Hyperlink control in WPF Pin
shyam sohane29-Jun-10 19:26
shyam sohane29-Jun-10 19:26 
QuestionDimming the indicator of a custom progressbar Pin
2hdass31-Mar-10 18:36
2hdass31-Mar-10 18:36 

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.