This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello, I want to change the appearance of the filter menu, and I have change the background and foreground, but I don't find where I can change the style of the check box before one menu item, and the highlight color of one menu item. Please see the attachment. |
|
|
Hello jzhou The best way to do this would be to make a custom filter menu style. I have attached a file containing all the code of our default diagram tool box style. The filter menu style starts at line 161. The check mark is at line 168. The trigger for applying the highlighted state is at line 201. To use this custom filter menu style, you'll also need your own custom DiagramToolBox style. In the attached file, this is at line 219, and the Menu is at line 235 with the filter menu style being applied at line 237. In the filter menu style, you may notice we are using a few borders to get the drop shadow effect on the menu popup. You may want to replace this with a proper drop shadow effect. Let me know if you have any further questions about customizing the filter menu style. Jason Fauchelle |
|
|
Hello, the path at line 168 is the small triangle besides the text 'filter', I don't find where to change the check mark of the pop down menu items. Thanks |
|
|
Hello Jzhou Apologies for the misguidance. We are actually using the default menu item style. You'll need to create a custom menu item style. Here is code on msdn to start you off: http://msdn.microsoft.com/en-us/library/ms747082(v=vs.90).aspx A fully styled menu item has 4 different templates, one for each role. The only template you'll need is the SubmenuItem. Copy this template from the link and edit it how you need. You'll find the correct path here which has been named CheckMark. To use this template, look at line 247 of the file I attached last time which applies a simple menu item style. On this style, add a Setter to set the Template property, and set the Value to be the template you get from the link. Jason Fauchelle |
|