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 8463231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:24:13+00:00 2026-06-10T14:24:13+00:00

I have been using Caliburn.Micro’s binding via convention in Silverlight 5 and am loving

  • 0

I have been using Caliburn.Micro’s binding via convention in Silverlight 5 and am loving it. Here is an example property from a ViewModel:

private String _vmStringProp = "";
public String VmStringProp
{
    get
    {
        return _vmStringProp;
    }

    set
    {
        _vmStringProp = value;
        NotifyOfPropertyChange(() => VmStringProp);
    }
}

This property is bound in the View just by naming:

<TextBox x:Name="VmStringProp" />

This works great. But if I change it to a TextBlock or Lable (example below) an exception is thrown.

<sdk:Label x:Name="VmStringProp" />

It works fine if you change it to bind like normal Silverlight but I would rather keep consistent throughout the project instead of having some bound via convention and others explicitly bound depending on what type of control. Does anyone know why I can’t bind via convention with Labels and TextBlocks?

  • 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-06-10T14:24:14+00:00Added an answer on June 10, 2026 at 2:24 pm

    Caliburn.Micro comes with a set of default conventions for WPF/SL/WP7 but obviously not for every existing control, so the Silverlight sdk:Label is also missing.

    You can find the built in conventions at the end of this article and a lots of info how conventions work.

    Luckily it is very easy to add a new convetions just add the following code into your Bootstrapper’s contructor:

    public MyBootstrapper()
    {
        ConventionManager
            .AddElementConvention<Label>(Label.ContentProperty, 
                                        "Content", 
                                        "DataContextChanged");  
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been using the Caliburn.Micro framework lately. I have a ShellView and two screens,
Have been using a simple CSS only tooltip. Working Example css: .tip { position:relative;
Have been using the SharpeRatio.annualized() function from Performance Analytics for awhile with no problems.
I have been using ECDF (empirical cumulative distribution function) from statsmodels.distributions to plot a
I have been using the following function to get regular parameters from the current
I have been using the examples from this site ( http://dojotoolkit.org/documentation/tutorials/1.6/datagrid/ ) to render
I have been using struts-errors to pass messages from dispatch action class to view
So I have a WPF application using the MVVM pattern (Caliburn.Micro). I got the
I have been using TortoiseSVN for some time and I really like it. I
I have been using Stanford POS Tagger to tag parts of speech in a

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.