home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Plugin Development
Xaml question
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="morpheus_xx" data-source="post: 1131451" data-attributes="member: 48495"><p>What osre mentioned is very important:</p><p>while binding to simple properties work this way, <u>changed values are not visible</u> to xaml! (no change events/listeners this way)</p><p></p><p>you need always a combination of simple property ("TestEdit") and a WProperty with ("...Property"), where the xaml binds to.</p><p></p><p>AbstractProperty _testEditProperty = new WProperty(typeof(string), null);</p><p>public AbstractProperty <strong>TestEdit<span style="color: #ff0000">Property</span></strong></p><p>{</p><p> get{ return _testEditProperty; }</p><p>}</p><p>public string <strong>TestEdit</strong></p><p>{</p><p>get { return (string)_testEditProperty.GetValue(); }</p><p>set { _testEditProperty.SetValue(value); }</p><p>}</p><p></p><p>Please check other models for example.</p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1131451, member: 48495"] What osre mentioned is very important: while binding to simple properties work this way, [U]changed values are not visible[/U] to xaml! (no change events/listeners this way) you need always a combination of simple property ("TestEdit") and a WProperty with ("...Property"), where the xaml binds to. AbstractProperty _testEditProperty = new WProperty(typeof(string), null); public AbstractProperty [B]TestEdit[COLOR=#ff0000]Property[/COLOR][/B] { get{ return _testEditProperty; } } public string [B]TestEdit[/B] { get { return (string)_testEditProperty.GetValue(); } set { _testEditProperty.SetValue(value); } } Please check other models for example. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Xaml question
Contact us
RSS
Top
Bottom