8 Answers, 1 is accepted
Do you want the shadow to be around the RadContextMenu? Please check the code snippet below which demonstrated this approach:
I think it would be easier if I posted my code
The problem I am having is that This.shadowEffect seems to not be exposed.
Could you please provide some more details regarding scroll-bars issue. Do you use implicit styles and what theme do you use? Also, it would be very helpful (for shadow problem) if you can make a small runnable project and send it to us so we can address the issue faster.
Thank you in advance for your cooperation.
Given that you are talking about two things I have not researched styles and theme perhaps you could take the lead. But to assist I can explain what the code is above. This code has two functions
- load the data into a RadGridView.
- From within the DataGrid I access a RadContextMenu through this function "RadMenuItem_Click"
To save you a little time you could use
this DataTable extension I wrote to populate the DataContext. Just fill a datatable and then use dataTable.ToObservableCollection(); A bit quick and dirty but good for testing.
The whole piece is actually a UserControl I am writing is that something of relevance?
I've created a sample demo where is demonstrated how to apply the shadow to the RadContextMenu in code behind. I've used the way from my first post to achieve the approach. Please note when the shadow effect is applied it is necessary Margin property to be set in order the shadow to be visible.
Take a look and let me know how it goes.
That has resolved the issue of the drop shadow, ultimately it came down to missing references. I believe now that this is largely due to this being a control not a window. Something I could not have easily discovered without your sample.
This is the references I ended up with.
Could I get some help with the scroll bars too. Or is it more convenient for me to make a new post?
I'm glad you were able to resolve the issue with the shadow.
Since the scroll-bar question is not related to this thread I would ask you to open a new forum in the corresponding section and ask your question there. This way the communication history in the forum will be organized better and you will get better assistance.
Thank you for the understanding.