-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ShadowPanel (New Control) #4006
Comments
Hello, 'AbdAlghaniAlbiek! Thanks for submitting a new feature request. I've automatically added a vote 👍 reaction to help get things started. Other community members can vote to help us prioritize this feature in the future! |
@AbdAlghaniAlbiek Based on the description your proposal seems unclear. Are you referring to something like this? |
@AbdAlghaniAlbiek thanks for the report, we're aware of these limitations. This seems like a duplicate request of #3607 as Kyaa pointed to. We're trying to track an improved version of the pattern in #3122 for 7.1 already. Mind if we close this request as duplicate? |
@michael-hawker |
@AbdAlghaniAlbiek so this is a duplicate issue of #3607. Please feel free to include any other details of the proposal in #3607 and work on the changes if you want to by creating a PR. Thanks |
Will be closing this issue due to redundancy. |
This issue has been marked as duplicate and has not had any activity for 1 day. It will be closed for housekeeping purposes. |
I was using DropDownShadow it works perfect on any UIElement but when I change CornerRadius value of any kind of panel (Grid, StackPanel, .....) the shadow still with sharp edges
then I noticed that it works with rectangle when I change RadiusX and RadiusY the shadow will be with rounded corners, that because DropDownShadow use composition effects and composition take a mask for the control itself , when composition make a shadow mask it use GetAlphaMask method that is available in Rectangle control and not available in panels controls, that is the reason of response of shadow for corner changes in rectangle and not response for panels' corners changes
I find out another way to do that is making a completely new control depends on two layers
layer for shadow
layer for content
The xaml code will be something like this:
And the dependencies properties in Code behind:
#region Background
public new SolidColorBrush Background
{
get { return (SolidColorBrush)GetValue(BackgroundProperty); }
set { SetValue(BackgroundProperty, value); }
}
I know the code above is ridiculous, but I prety sure there a better way to do that
The text was updated successfully, but these errors were encountered: