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
Skins and Design
BlueVision
Blue Vision
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="osre" data-source="post: 1123978" data-attributes="member: 150866"><p>I think what ge2301 wants is to Display the title of the last selected menu item, no matter if it was a Group or an actual menu item.</p><p>Since the Groups are no real menu items, the selected item won't help here.</p><p>In code behind this would be quite simple in the HomeMenuModel.</p><p>But I think it also might be possible in XAML.</p><p>You could attach an Trigger to the SelectionChanged Event of the list views for the Groups and the menu items.</p><p>In the Trigger you would have to set the Content of the Label to the [Name] of the new Selected ListItem.</p><p>Not sure if this is possible.</p><p>If not we need a simple Event handler in HomeMenuModel that sets a property like "LastSelectedMenuItem".</p><p>In XAML the Event could be bound to both list views directly or to an outer container, since Events are bubeling quite nicely now <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>The model backed Approach would work for sure and it would take about 15 min to implement.</p></blockquote><p></p>
[QUOTE="osre, post: 1123978, member: 150866"] I think what ge2301 wants is to Display the title of the last selected menu item, no matter if it was a Group or an actual menu item. Since the Groups are no real menu items, the selected item won't help here. In code behind this would be quite simple in the HomeMenuModel. But I think it also might be possible in XAML. You could attach an Trigger to the SelectionChanged Event of the list views for the Groups and the menu items. In the Trigger you would have to set the Content of the Label to the [Name] of the new Selected ListItem. Not sure if this is possible. If not we need a simple Event handler in HomeMenuModel that sets a property like "LastSelectedMenuItem". In XAML the Event could be bound to both list views directly or to an outer container, since Events are bubeling quite nicely now :) The model backed Approach would work for sure and it would take about 15 min to implement. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
BlueVision
Blue Vision
Contact us
RSS
Top
Bottom