Have you tried using an Adorners without taking a really close look the PiePiece Control you're using this might solve your problem.
Up vote 0 down vote favorite share g+ share fb share tw.
I'm currently building a Surface application where the main navigation is a circular menu. For each menu item I'm using a custom control that I found on codeproject. Com: codeproject.com/KB/WPF/PieChartDataBindi... (PiePiece control) The number of submenu items (which is also piepiece controls) comes from a database and thus dynamically loaded.
What I can't figure out is how I add a textblock to this custom control to display the submenu item text. It needs to follow the PiePiece's RotationAngle property to line up correctly. Anyone got a hot-fix for this?
I was thinking about adding another dependencyproperty to the piepiece custom control, but that way I can't set the font-family, size etc (can I? ) Any input on this is greatly appreciated! Thanks!
C# wpf xaml custom-controls microsoft-surface link|improve this question edited Sep 26 '10 at 21:52skaffman114k8136227 asked May 11 '10 at 7:31bomortensen632415 98% accept rate.
– Jeff Wilcox May 11 '10 at 7:45 no - i'm just using that PiePiece control and for every submenu item in the database, I'm adding a control to a canvas. Is there a better approach to this? I'm still learning xaml as you might have guessed already ;) – bomortensen May 11 '10 at 7:51 Still haven't found a solution to this.. anyone?
:) – bomortensen May 11 '10 at 16:21.
Have you tried using an Adorners, without taking a really close look the PiePiece Control you're using this might solve your problem. Hope that helps!
Sorry for the delayed response. Adorners seems like a perfect solution to my problem, however I'm a bit stuck when it comes to binding to the Text property from codebehind. Basically I should be able to do something like this: Binding binding = new Binding("Title"); myAdorner.
Title =? Thanks again! :) – bomortensen May 17 '10 at 10:43 found out!
;) thanks a lot, Chris – bomortensen May 20 '10 at 8:55 Not a problem, sorry I missed your comment on the 17th, but glad you figured it out. – Chris Nicol May 20 '10 at 22:38.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.