If you bought a set of controls, such as Telerik, and used them in 3 different projects, each of those projects can have a different look and feel.
So how does the app tell the control what style to use? The Telerik assembly doesn't know about your app.
How do you tell specific controls in that library what to look like. It's not enough to set the TargetType because that will set ALL controls of that type. You would need a way to say "For this specific combobox, make it look like this".
If in the User Control library I created a reference to the app, that makes that User Control library bound forever to that one app.
The other way around is how it's used. The app know about the UC library, not the UC library knowing about the app.
The TimePicker has a TextBlock and 3 ComboBoxes. There has to be a way in the form it's on to say "Set the combo boxes to use TimerPickerComboStyle" without the entire UC assembly having a ref to the App project.
so the App has a ref to both the shared styles project AND the UC project. Once I drop the control onto a form, I could then use the DP to set its style, assuming TimePickerComboStyle is the shared styles project?
If it's not broken, fix it until it is
Last Visit: 31-Dec-99 18:00 Last Update: 2-Aug-15 16:52