Questions tagged [dropshadoweffect]

16 questions
9
votes
2 answers

C# WPF) DropShadowEffect is sometimes missing when dynamically adding a control

foreach (DataRow dr in dt.Rows) { Rectangle rectangle_timeline = new Rectangle(); rectangle_timeline.Height = 19; rectangle_timeline.Cursor = Cursors.Hand; rectangle_timeline.Effect = new DropShadowEffect { Color = new…
Kay Lee
  • 922
  • 1
  • 12
  • 40
2
votes
1 answer

Shadow without "spill"

I want to create a Shadow that goes just in one direction without "spilling". As you can see on the left and right side the shadow is "spilling" but I want the shadow to just go up and not to the sides. How can I do that? This is the Code I have so…
BluePalmTree
  • 299
  • 3
  • 23
2
votes
2 answers

How can I apply a conditional effect to a button based on value in the ViewModel?

I can easily add a little glow effect to a button using something like this: How can I apply the effect conditionally, based on a value in the…
Digital Camel
  • 175
  • 2
  • 14
1
vote
2 answers

Making UI with inward shadow as shown in the photo for Android and iOS (SwiftUI)

I am trying to build an application and want to build a view that has inward shadow effect as shown in the picture. I wanted to do it in both Android and iOS (SwiftUI).
1
vote
1 answer

WPF how to stop DropShadowEffect to propagate to child?

I have a borderless Window with a Border as root node and Canvas as child. The canvas is used to draw Polyline by MouseMove. The border have a DropShadowEffect and this cause a significant drop of performance to draw on Canvas. I have already seen…
user2272143
  • 469
  • 5
  • 22
1
vote
1 answer

WPF drop shadow by transparent border

Good day. Im creating a grid like this (with shadow). everything would be fine, but i can't do a shadow border with transparent background, so the background of grid can't be transparent (it's critical). Is there a solution to this problem?…
1
vote
2 answers

UWP. How To Implement drop shadow in code without using DropShadowPanel in

I'm not an expert in using Windows composition APIs. How to implement a DropShadow on either a control or a layout or any visual control in UWP without using a DropShadowPanel for some purposes. An attached example would be awesome. Also please make…
Adham Ali
  • 81
  • 8
1
vote
2 answers

DropShadowEffect WPF

I am new to WPF/XAML coding. I am trying to add a drop shadow effect to a Rectangle shape. The XAML for the rectangle is: CODE 1
Software Dev
  • 5,368
  • 5
  • 22
  • 45
1
vote
0 answers

Put DropShadowEffect below neighboring disabled elements

I have several Borders in a Grid, each has a DropShadowEffect. When a Border is disabled (IsEnabled = false), the DropShadowEffect of the neighboring Borders is above it, thus visible and weird looking. This is even though I explicitely set the…
gartenriese
  • 4,131
  • 6
  • 36
  • 60
1
vote
2 answers

Button style applying to DatePicker

I have a default button style declared in App.xaml . It has DropShadowEffect applied. Strange thing is the DropShadowEffect is also getting applied to DatePicker Can anyone help how to remove DropShadowEffect in DatePicker ?
msnitin
  • 15
  • 1
  • 4
0
votes
0 answers

Drop Shadow On Text EditorX Wix

I am trying to add a drop shadow to text on editor x. I have been trying this over and over again with different SO posts and tutorials and for some reason, it does not work /. show up the shadow. Here is what I am doing: $w.onReady(function ()…
0
votes
0 answers

Flutter : DropShadowImage in listview.builder

StreamBuilder( stream: data.snapshots(), builder: (context, snapshot) { if (snapshot.connectionState == ConnectionState.waiting) { const…
natt
  • 11
  • 5
0
votes
1 answer

DropShadowEffect and CornerRadius Problem in WPF

I have an Window in which I want to apply drop shadow effect alongside the round corner radius. so far I'm doing something like this:
Inevitable
  • 37
  • 1
  • 5
0
votes
2 answers

adjust drop shadow size in WPF. shown in the image

I try to resize the drop shadow effect in WPF. But I did not find any answer.
0
votes
1 answer

How to calculate the size of a DropShadowEffect?

I'm trying to get an image and apply a drop shadow to it and save back as an image. So far, the only way to do that, while not using third party solutions is to use the DropShadowEffect in a DrawingVisual: var drawingVisual = new…
Nicke Manarin
  • 3,026
  • 4
  • 37
  • 79
1
2