Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

WPF - Derived Property setting in Xaml


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 maya18222   Members   -  Reputation: 183

Like
0Likes
Like

Posted 29 April 2012 - 03:41 AM

Given the following. How do I set MyString in Xaml?

namespace WpfApplication3
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public class MainWindow : Window
    {
	    public string MyString
	    {
		    get;
		    set;
	    }
	    public MainWindow()
	    {
		   
	    }
    }
}
// -------------------------------------
<Window x:Class="WpfApplication3.MainWindow"
	    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
>
</Window>


Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS