Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualjwezorek

Posted 28 March 2013 - 01:45 PM

If you want to bind your WPF to an expression, simply create a read-only property whose getter returns your expression.

 

yes, but a lot of times the expression isn't something you want to name with specific parameters; maybe a name would make sense with unspecified parameters i.e. maybe it would make more sense for it to be a method.

 

 

vanilla (non-implicit) C# properties have nothing to do with variables

 

 

I meant implicit ones are member variables with the language automatically providing a getter and a setter. They are named values associated with an object. But yeah.

 

How does binding to XML files work?


#4jwezorek

Posted 28 March 2013 - 01:43 PM

If you want to bind your WPF to an expression, simply create a read-only property whose getter returns your expression.

 

yes, but a lot of times the expression isn't something you want to name with specific parameters; maybe a name would make sense with unspecified parameters i.e. maybe it would make more sense for it to be a method.

 

 

vanilla (non-implicit) C# properties have nothing to do with variables

 

 

They're member variables with the language automatically providing a getter and a setter. They are named values associated with an object.

 

How does binding to XML files work?


#3jwezorek

Posted 28 March 2013 - 01:42 PM

If you want to bind your WPF to an expression, simply create a read-only property whose getter returns your expression.

 

yes, but a lot of times the expression isn't something you want to name with specific parameters; maybe a name would make sense with unspecified parameters i.e. maybe it would make more sense for it to be a method.

 

 

vanilla (non-implicit) C# properties have nothing to do with variables

 

 

Seriously? They're member variables with the language automatically providing a getter and a setter. They are named values associated with an object.


#2jwezorek

Posted 28 March 2013 - 01:41 PM

If you want to bind your WPF to an expression, simply create a read-only property whose getter returns your expression.

 

yes, but a lot of times the expression isn't something you want to name with specific parameters; maybe a name would make sense with unspecified parameters i.e. maybe it would make more sense for it to be a function.

 

 

vanilla (non-implicit) C# properties have nothing to do with variables

 

 

Seriously? They're member variables with the language automatically providing a getter and a setter. They are named values associated with an object.


#1jwezorek

Posted 28 March 2013 - 01:37 PM

If you want to bind your WPF to an expression, simply create a read-only property whose getter returns your expression.

 

yes, but a lot of times the expression isn't something you want to name with specific parameters; maybe a name would make sense with unspecified parameters i.e. maybe it would make more sense for it to be a function.


PARTNERS