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
Titanium Extended
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="Brownard" data-source="post: 1165897" data-attributes="member: 48291"><p>I think I've figured this out, the missing pieces were CommandTrigger and the IsKeyboardFocusWithin property</p><p>If you add the following into <strong>Grid.Triggers</strong> for the 'LeftPanel' grid in master_menu (in regular titanium skin) it seems to work as you want</p><p>[CODE=XML]<Trigger Property="IsKeyboardFocusWithin" Value="True"></p><p> <Trigger.EnterActions></p><p> <TriggerCommand Command="{Command Source={StaticResource MenuModel}, Path=OpenMenu}"/></p><p> </Trigger.EnterActions></p><p> <Trigger.ExitActions></p><p> <TriggerCommand Command="{Command Source={StaticResource MenuModel}, Path=CloseMenu}"/></p><p> </Trigger.ExitActions></p><p> </Trigger>[/CODE]</p><p>IsKeyboardFocusWithin is true if the focus is on any of the child controls and the TriggerCommand executes the command.</p><p></p><p><strong>EDIT: </strong>This appears to make the menu unusable with a mouse, as soon as you move the mouse the focus is lost and the menu slides out, <s>not sure if this is just due to the Titanium layout</s></p></blockquote><p></p>
[QUOTE="Brownard, post: 1165897, member: 48291"] I think I've figured this out, the missing pieces were CommandTrigger and the IsKeyboardFocusWithin property If you add the following into [B]Grid.Triggers[/B] for the 'LeftPanel' grid in master_menu (in regular titanium skin) it seems to work as you want [CODE=XML]<Trigger Property="IsKeyboardFocusWithin" Value="True"> <Trigger.EnterActions> <TriggerCommand Command="{Command Source={StaticResource MenuModel}, Path=OpenMenu}"/> </Trigger.EnterActions> <Trigger.ExitActions> <TriggerCommand Command="{Command Source={StaticResource MenuModel}, Path=CloseMenu}"/> </Trigger.ExitActions> </Trigger>[/CODE] IsKeyboardFocusWithin is true if the focus is on any of the child controls and the TriggerCommand executes the command. [B]EDIT: [/B]This appears to make the menu unusable with a mouse, as soon as you move the mouse the focus is lost and the menu slides out, [S]not sure if this is just due to the Titanium layout[/S] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
BlueVision
Titanium Extended
Contact us
RSS
Top
Bottom