Click here to Skip to main content
15,902,835 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: How to plan a project both in WPF and Silverlight Pin
#realJSOP18-Aug-10 15:57
professional#realJSOP18-Aug-10 15:57 
GeneralRe: How to plan a project both in WPF and Silverlight Pin
David Shapira19-Aug-10 5:21
David Shapira19-Aug-10 5:21 
GeneralRe: How to plan a project both in WPF and Silverlight Pin
Mycroft Holmes18-Aug-10 21:00
professionalMycroft Holmes18-Aug-10 21:00 
AnswerRe: How to plan a project both in WPF and Silverlight Pin
Abhinav S18-Aug-10 21:31
Abhinav S18-Aug-10 21:31 
AnswerRe: How to plan a project both in WPF and Silverlight Pin
RichardGrimmer8-Sep-10 5:01
RichardGrimmer8-Sep-10 5:01 
Questionfind ancestor Pin
DTh197817-Aug-10 17:30
DTh197817-Aug-10 17:30 
AnswerRe: find ancestor Pin
#realJSOP18-Aug-10 4:12
professional#realJSOP18-Aug-10 4:12 
AnswerRe: find ancestor Pin
Ian Shlasko18-Aug-10 4:31
Ian Shlasko18-Aug-10 4:31 
Hmm... Off the top of my head, I think this could be solved with a couple attached properties...

Not sure how familiar you are with them, but attached properties in WPF are basically properties that are based on one class, but can actually apply to any DependencyObject of a given base type. They're most similar to the IExtenderProvider functionality in WinForms, except that they can ALSO inherit to child objects... So if you set the value on the TabItem, then all of its children can read that value too, as if it was on each of them.

1) Create two attached properties:

- a) ParentTabName, with a type of TabItem. For each tab, bind that property to the tab name ({Binding TabName,RelativeSource={RelativeSource Self}} if memory serves).

- b) TabVisibilityCodes, with a type of string. For each child control that needs to be shown/hidden, set that property to, say, a comma-delimited list of the names of tabs it should be shown on. All of this can be done in XAML once the properties are created.

2) In the setter for either property (The getters/setters are all in one place, not on each object), compare the two attached properties for the element in question, and update its visibility accordingly.
Proud to have finally moved to the A-Ark. Which one are you in?
Author of the Guardians Saga (Sci-Fi/Fantasy novels)

QuestionGETTING THIS ERROR IN SILVERLIGHT CHAT PROJECT Pin
kibok17-Aug-10 6:36
kibok17-Aug-10 6:36 
AnswerRe: GETTING THIS ERROR IN SILVERLIGHT CHAT PROJECT Pin
Abhinav S17-Aug-10 18:38
Abhinav S17-Aug-10 18:38 
QuestionWPF: Converting nested DrawingGroup to nested DrawingVisual [modified] Pin
Paul Selormey16-Aug-10 19:57
Paul Selormey16-Aug-10 19:57 
QuestionCustom Rendering Ink Pin
Tony Honter16-Aug-10 5:32
Tony Honter16-Aug-10 5:32 
Questionhtmlpage.window.navigation help Pin
yogesh_kumar_agarwal16-Aug-10 4:40
yogesh_kumar_agarwal16-Aug-10 4:40 
AnswerRe: htmlpage.window.navigation help Pin
yogesh_kumar_agarwal18-Aug-10 20:40
yogesh_kumar_agarwal18-Aug-10 20:40 
QuestionHow to bind data for wpf datagridcombobox column in browser application Pin
krajasekhar216-Aug-10 3:08
krajasekhar216-Aug-10 3:08 
QuestionHow can i add simple .net control (net wpf control ) into wpf window ? Pin
Yanshof14-Aug-10 21:47
Yanshof14-Aug-10 21:47 
AnswerRe: How can i add simple .net control (net wpf control ) into wpf window ? Pin
Abhinav S14-Aug-10 22:37
Abhinav S14-Aug-10 22:37 
GeneralRe: How can i add simple .net control (net wpf control ) into wpf window ? Pin
Yanshof14-Aug-10 22:43
Yanshof14-Aug-10 22:43 
GeneralRe: How can i add simple .net control (net wpf control ) into wpf window ? Pin
Abhinav S15-Aug-10 0:49
Abhinav S15-Aug-10 0:49 
GeneralRe: How can i add simple .net control (net wpf control ) into wpf window ? Pin
Yanshof15-Aug-10 0:58
Yanshof15-Aug-10 0:58 
GeneralRe: How can i add simple .net control (net wpf control ) into wpf window ? Pin
Abhinav S15-Aug-10 0:58
Abhinav S15-Aug-10 0:58 
QuestionPlaying a list of files on after the other. Pin
Tichaona J13-Aug-10 12:29
Tichaona J13-Aug-10 12:29 
AnswerRe: Playing a list of files on after the other. Pin
#realJSOP14-Aug-10 0:09
professional#realJSOP14-Aug-10 0:09 
QuestionBinding ComboBox Selected Item value Pin
BRShroyer13-Aug-10 5:01
BRShroyer13-Aug-10 5:01 
AnswerRe: Binding ComboBox Selected Item value Pin
Ian Shlasko13-Aug-10 5:14
Ian Shlasko13-Aug-10 5:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.