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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:29:34+00:00 2026-05-30T15:29:34+00:00

I would like to make the following code to be XAML: CData cData =

  • 0

I would like to make the following code to be XAML:

CData cData = new CData();

MyClass mc1 = new MyClass();
MyClass mc2 = new MyClass();

mc1.Data = cData;
mc2.Data = cData;

How to make the above code to be XAML format?
Since the property .Data is a custom class CData and Both mc1 and mc3 has to point to the same cData. How to make it in XAML?

  • 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-30T15:29:36+00:00Added an answer on May 30, 2026 at 3:29 pm

    This should do:

    <Window.Resources>
        <local:CData x:Key="CData"/>
        <local:MyClass x:Key="mc1" Data="{StaticResource CData}" />
        <local:MyClass x:Key="mc2" Data="{StaticResource CData}" />
    </Window.Resources>
    

    where local points to your namespace where both classes are defined.

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

Sidebar

Related Questions

I would like to write the following code: boolean found = false; search(new SearchCallback()
im relatively new to ROR, and would like some help with the following code.
I would like to make z a global variable in the following code: #!/bin/bash
I would like to make POST request using following code <div class=editor-field id=updateDiv >
hi I have the following code and would like to only make each union
I would like to make a cycle over the following elements: [1,2,11,12,21,22,111,112,121,122,....,222222] or for
For the following example: http://developer.yahoo.com/yui/examples/tabview/frommarkup_clean.html I would like to make the tabs right aligned
I have the following code: $(:input[type='text']).wijtextbox(); What I would like is for the wijtextbox()
in the following code, i would like to get the row result for column
I have the following code with a structure array with data to make some

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.