Sign in to follow this  
maya18222

WPF - Derived Property setting in Xaml

Recommended Posts

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

[CODE]
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>
[/CODE]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this