thickness

Change button border thickness in wpf?

无人久伴 提交于 2019-12-01 21:17:24
Why the border thickness of the Button doesn't change? If I change the border thickness to 1 or 100, it doesn't matters. It's the same. I would like to change it using Style , not Custom Template . <Window x:Class="GUI.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Window.Resources> <Style x:Key="newYellowButton" TargetType="{x:Type Button}"> <Setter Property="Width" Value="100"/> <Setter Property="Height" Value="100"/> <Setter Property="Background"> <Setter.Value

set panel border thickness in c# winform

岁酱吖の 提交于 2019-11-29 22:46:07
问题 I have searching and the result cannot solve my case. Actually I have a panel and I want the panel have thicker border than Windows given. I need BorderStyle BorderStyle.FixedSingle thicker.. Thanks before 回答1: You have to customize your own Panel with a little custom painting: //Paint event handler for your Panel private void panel1_Paint(object sender, PaintEventArgs e){ if(panel1.BorderStyle == BorderStyle.FixedSingle){ int thickness = 3;//it's up to you int halfThickness = thickness/2;

Animate Margin / Thickness

帅比萌擦擦* 提交于 2019-11-28 12:12:39
I just thought I already know how WPF and XAML Syntax works.... wrooong. I got the message: 'WithEvents' variables can only be typed as classes, interfaces or type parameters with class constraints. Please, do you know why this syntax is wrong? I need to use the single value as double. It works later with an storyboard in codebehind. Regards I just want to animate the Red rectangle with a storyboard in location and size. Perhaps XAML is the right solution anyway? To animate thickness, use a Storyboard like this (from msdn example): <BeginStoryboard> <Storyboard> <!-- BorderThickness animates

Control point border thickness in ggplot

試著忘記壹切 提交于 2019-11-26 09:35:09
问题 When using ggplot, I can set shape to 21-25 to get shapes that have independent setting for the internal ( fill ) and border ( col ) colors, like so: df <- data.frame(id=runif(12), x=1:12, y=runif(12)) ggplot(df, aes(x=x, y=y)) + geom_point(aes(fill=id, size=id), colour=\"black\", shape=21) However, I can\'t figure out how to control the thickness of the shape borders, either setting them absolutely or as an aesthetic mapping. I note that if I set an lwd value, it overrides the size aesthetic