Cool, thanks Morten, I don't need any logic to happen, all i need is access to the Map...
Here is what I have found with some tests so far:
WORKING:
- If the DP is in a partial class derived from UserControl, it WORKS
- If the DP is in a partial class derived from another partial class which is derived from UserControl, it WORKS
- If the DP is in a class derived from ContentControl (with a style defined), it WORKS (This is what the ESRI toolkit controls do)
NOT WORKING:
- If the DP is in a partial class derived from ContentControl (with its content as the other partial class in xaml), it does NOT work
- If the DP is in a partial class derived from another partial class which is derived from ContentControl (content in xaml), it does NOT work
- If the DP is in a partial class derived from another class which is derived from ContentControl (with a style defined), it does NOT work (This is what I want!)
So it seems to be something with the fact that the base class is derived from ContentControl... any ideas? Is this not possible...