Questions tagged [wpf-brushes]

Windows Presentation Foundation (WPF) brushes are used to paint user interface (UI) objects with anything from simple, solid colors to complex sets of patterns and images.

Everything visible on your screen is visible because it was painted by a brush. For example, a brush is used to describe the background of a button, the foreground of text, and the fill of a shape.

Windows Presentation Foundation (WPF) brushes are used to paint user interface (UI) objects with anything from simple, solid colors to complex sets of patterns and images.

7 questions
5
votes
2 answers

AngleGradient in WPF

As you know, there is a gradient option in PhotoShop named AngleGradient. But, WPF has only LinearGradientBrush and RadialGradientBrush gradients. Have you any idea to how to create an AngleGradient by using XAML? UPDATE: Samples -by photoshop:
amiry jd
  • 27,021
  • 30
  • 116
  • 215
2
votes
2 answers

WPF multi-button backgroundcolor change

0
votes
1 answer

Binding Color properties

I'm trying to make some basic color picker functionality. I have form with Image holding DrawingImage as source from which I am getting brushes to edit them. There is a rectangle to show redacted color, textbox for color's hex value and sliders for…
Efgrafich
  • 7
  • 3
0
votes
1 answer

How to set Brush from RGB or hex

Hey I want to set color of BorderBrush in .xaml.cs file and don't want to use colours like Red or Green and want to use whole palette from HEX or RGB. I don't know how to covert it. Maybe you know how to solve this problem. private void…
Koza12
  • 11
  • 1
0
votes
0 answers

How can I add a text to an arrow?

I am currently working on an arrow, containing a text (here 'Test'), that shows an offset. My code is: Width = 200; Length = 1000; double arrowHeadWidth = Width; double arrowHeadLength = Width / 2; double arrowWidth = Width - arrowHeadWidth /…
Benny
  • 25
  • 8
0
votes
1 answer

Color Conversion with percent Wpf

I am trying to get brush color from red to green by passing %.I have a datagrid each row has a percentage value. Is there any function like getColor(Red,Green,%) which return the color from red to green a/c to %.
0
votes
1 answer

VB.NET: Output all Windows.Media.Brushes

I have some shapes on an WPF in VB.Net. I added a handler, so I'm able to delete or edit the shapes with my controls. For that I added an combobox where I wanna display all Windows.Media.Brushes so I can select one and add the color to the shape. My…
stan
  • 15
  • 4