Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7067525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:12:45+00:00 2026-05-28T05:12:45+00:00

Right, so here the scenario: I’ve created a class called DiaryPage that inherites from

  • 0

Right, so here the scenario:

I’ve created a class called “DiaryPage” that inherites from Canvas

I’ve created a usercontrol called “DiaryControl” that contains “DiaryPage” elements. The page’s height, width and so on are all databound like so :

Width="{Binding DataContext.Info.Booktype, ConverterParameter=CoverWidth, Converter={StaticResource BookTypeToDimentionsConverter}, FallbackValue=490, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType=UserControl}}"

Now, It works perfectly on pc, running silverlight 5 BUT the same code running on a mac produces the following exception:

at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at Life.Views.Book.Framework.DiaryControl.InitializeComponent()
at Life.Views.Book.Framework.DiaryControl..ctor()Method not found: ‘Void System.Windows.FrameworkElement.add_DataContextChanged(System.Windows.DependencyPropertyChangedEventHandler)’.
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at Life.Views.Book.Framework.DiaryControl.InitializeComponent()
at Life.Views.Book.Framework.DiaryControl..ctor()The invocation of the constructor on type ‘Life.Views.Book.Framework.DiaryPageControl’ that matches the specified binding constraints threw an exception.
The invocation of the constructor on type ‘Life.Views.Book.Framework.DiaryPageControl’ that matches the specified binding constraints threw an exception. [Line: 327 Position: 28]

[Line 327] corresponds to the Width binding specified above

Any ideas?

In my DiaryPage class i have a datacontextchanged listener attached like so:

DataContextChanged += new DependencyPropertyChangedEventHandler(DiaryPageControl_DataContextChanged);

 void DiaryPageControl_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
    {
        if(DataContext != null && DataContext.GetType()== typeof(Page))
            LoadContent();
    }

As I said, works a charm on windows (tested 5 pc’s), but throws exception on mac (well, the one that I’ve tried)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:12:46+00:00Added an answer on May 28, 2026 at 5:12 am

    Silverlight should work exactly the same way on Mac and Windows PCs. This sounds like a bug. You might want to report it on the Microsoft Connect site. To solve your immediate issue you are just going to have to do a bit of exploratory work to find the part of the framework which is not working for you and avoid it!

    One other point … make sure the Mac has the latest Silverlight version installed, you are using a relatively new framework feature there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my code: $('#right').load('textes.html #nicolas'); $('#right').load('textes.html #antoine'); The problem is that the content
Here's the scenario; I have a list of CustomerIds (1, 2, 3) that have
Here's the scenario. I have a simple browse button. Right now, it opens up
Here's the scenario. We have a router that port forwards requests for our different
Folks, I know I didn't phrase that title very well, but here's the scenario.
I hope this is the right place to ask. Here is my scenario for
Here's the scenario: I have a method that reads in a file via a
Here is my scenario. I have class with 10 methods, those methods are atomic,
Ok, I'll do my best to explain the problem here: The scenario is that
Here's my scenario. I call jqModal using its ajax functionality that displays a form

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.