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
Problem with updating binding properties
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: 847183" data-attributes="member: 48495"><p>you should check the Types first:</p><ul> <li data-xf-list-type="ul">_loginContentVisibility = new WProperty(typeof(Visibility), null); <-- the null is the default, when not set. Your type Visibility.Collapsed looks like an Enum. You should use a proper default value of this enum.</li> <li data-xf-list-type="ul">you should check the binding: "{Binding Path=LoginContentVisibility, Mode=TwoWay}" isn't it enough to have only "{Binding Path=LoginContentVisibility}" ?</li> </ul><p>I did not use the Visibility property yet (in fact I did not know it yet <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" />), but when you like to control if the element should be visible, use the "IsVisible" property in favour (simple bool value).</p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 847183, member: 48495"] you should check the Types first: [LIST] [*]_loginContentVisibility = new WProperty(typeof(Visibility), null); <-- the null is the default, when not set. Your type Visibility.Collapsed looks like an Enum. You should use a proper default value of this enum. [*]you should check the binding: "{Binding Path=LoginContentVisibility, Mode=TwoWay}" isn't it enough to have only "{Binding Path=LoginContentVisibility}" ? [/LIST] I did not use the Visibility property yet (in fact I did not know it yet ;)), but when you like to control if the element should be visible, use the "IsVisible" property in favour (simple bool value). [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Problem with updating binding properties
Contact us
RSS
Top
Bottom