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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:18:53+00:00 2026-06-17T07:18:53+00:00

I am working in Silverlight4 VS 2010.I have placed a CheckBox in my .xaml

  • 0

I am working in Silverlight4 VS 2010.I have placed a CheckBox in my .xaml file. I need it’s DataContextChanged event. But unfortunately i didn’t find it.

Here is my CheckBox :

<CheckBox x:Name="chkRegion" Content="{Binding name}" Click="CheckBox_Click" ></CheckBox>

Could you please help me in to find DataContextChanged in SL 4 VS 2010.

Thanks, Rajbir

  • 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-17T07:18:54+00:00Added an answer on June 17, 2026 at 7:18 am

    Implement an Converter (its just a simple class which gets derived from IValueConverter and implement the interface methods)

    public class ChangeIsCheckedValConverter : IValueConverter
    {
        public object Convert(object value,
                              Type targetType,
                              object parameter,
                              System.Globalization.CultureInfo culture)
        {
            if (value != null)
            {
    

    //value here is the object which you are binding to the DataContext of
    Checkbox ; //return the bool (true or false) based on your valued
    binded to your checkbox

        }
    
        public object ConvertBack(object value,
                                  Type targetType,
                                  object parameter,
                                  System.Globalization.CultureInfo culture)
        {
            return null;
        }
    
    You will have to add the name space of you newly implemnted converter whereever you will want to use .
    

    Then use this converter where your checkbox is defined in datatemplate as below :
    //First define the key as below :

     <converters:VisibilityConverter x:Key="changeConverter" />
    
    <CheckBox x:Name="chkRegion" Content="{Binding name}" IsChecked={Binding ,Converter={StaticResource changeConverter}}"} Click="CheckBox_Click" ></CheckBox>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a Silverlight application that uses WCF. I need to have
I am working on silverlight to bind a xml file to datagrid.I have found
I have a PivotViewer app I am working on, but, I cannot get it
I didn't find out about this until I already upgraded VS2010, but according to
I'm working with Silverlight 4, C# and XAML. I have an external control that
While working on my Silverlight4 SketchFlow prototype I have a datagrid that has a
I have a visual studio 2010 project. It runs from my notebook fine but
I am working with Silverlight Unit Testing i need to test a function which
I am working in a Silverlight control where I need to upload some static
I am working on silverlight 4 application and need to implement google maps in

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.