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="ge2301" data-source="post: 1149931" data-attributes="member: 145639"><p>Thanks, now I got the logic! <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite24" alt="(y)" title="Thumbs Up (y)" loading="lazy" data-shortname="(y)" /></p><p></p><p>I added to master_homemenu.xaml and master_configuration_menu.xaml</p><p>[html] <ControlTemplate x:Key="Menu_Button_Dummy_____"></p><p> <Button x:Name="MenuButton" Style="{ThemeResource MenuButtonStyle}" Grid.Row="0" Grid.Column="0" Margin="48,-6,2,-32"</p><p> HorizontalAlignment="Center" VerticalAlignment="Center"</p><p> IsEnabled="False"></p><p> </Button></p><p> </ControlTemplate>[/html]</p><p>and to master_menu.xaml</p><p>[html]<Model x:Key="MenuModel" Id="A6C6D5DA-55FE-4b5f-AE83-B03E8BBFA177"/> </p><p><ControlTemplate x:Key="Menu_Button_Placeholder"></p><p> <Button x:Name="MenuButton" Style="{ThemeResource MenuButtonStyle}" Grid.Row="0" Grid.Column="0" Margin="48,-6,2,-32"</p><p> HorizontalAlignment="Center" VerticalAlignment="Center"</p><p> IsEnabled="{Binding Source={StaticResource MenuModel},Path=!IsMenuOpen}"</p><p> Command="{Command Source={StaticResource MenuModel}, Path=ToggleMenu}"></p><p> <Button.Triggers></p><p> <Trigger Property="HasFocus" Value="True"></p><p> <Trigger.Setters></p><p> <Setter Property="Opacity" Value="1"/></p><p> </Trigger.Setters></p><p> </Trigger></p><p> </Button.Triggers></p><p> </Button></p><p> </ControlTemplate>[/html]</p><p></p><p>Now I can apply to 3 controls in the master_bare.xaml</p><p>[html] <Control x:Name="MenuButtonDummy" HorizontalAlignment="Stretch" Template="{DynamicResource ResourceKey=Menu_Button_Dummy}"> </Control></p><p><Control x:Name="MenuButtonDummyConfig" HorizontalAlignment="Stretch" Template="{DynamicResource ResourceKey=Menu_Button_DummyConfig}"> </Control></p><p> <Control x:Name="MenuButtonPlaceholder" HorizontalAlignment="Stretch" Template="{DynamicResource ResourceKey=Menu_Button_Placeholder}"> </Control>[/html]</p><p>Benefit is, that the menu button is always visible, much better from design point of view, but only working when not in home view.</p><p>Thanks for the explanation, I'm sure it will help me also for other issues <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="ge2301, post: 1149931, member: 145639"] Thanks, now I got the logic! (y) I added to master_homemenu.xaml and master_configuration_menu.xaml [html] <ControlTemplate x:Key="Menu_Button_Dummy_____"> <Button x:Name="MenuButton" Style="{ThemeResource MenuButtonStyle}" Grid.Row="0" Grid.Column="0" Margin="48,-6,2,-32" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="False"> </Button> </ControlTemplate>[/html] and to master_menu.xaml [html]<Model x:Key="MenuModel" Id="A6C6D5DA-55FE-4b5f-AE83-B03E8BBFA177"/> <ControlTemplate x:Key="Menu_Button_Placeholder"> <Button x:Name="MenuButton" Style="{ThemeResource MenuButtonStyle}" Grid.Row="0" Grid.Column="0" Margin="48,-6,2,-32" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding Source={StaticResource MenuModel},Path=!IsMenuOpen}" Command="{Command Source={StaticResource MenuModel}, Path=ToggleMenu}"> <Button.Triggers> <Trigger Property="HasFocus" Value="True"> <Trigger.Setters> <Setter Property="Opacity" Value="1"/> </Trigger.Setters> </Trigger> </Button.Triggers> </Button> </ControlTemplate>[/html] Now I can apply to 3 controls in the master_bare.xaml [html] <Control x:Name="MenuButtonDummy" HorizontalAlignment="Stretch" Template="{DynamicResource ResourceKey=Menu_Button_Dummy}"> </Control> <Control x:Name="MenuButtonDummyConfig" HorizontalAlignment="Stretch" Template="{DynamicResource ResourceKey=Menu_Button_DummyConfig}"> </Control> <Control x:Name="MenuButtonPlaceholder" HorizontalAlignment="Stretch" Template="{DynamicResource ResourceKey=Menu_Button_Placeholder}"> </Control>[/html] Benefit is, that the menu button is always visible, much better from design point of view, but only working when not in home view. Thanks for the explanation, I'm sure it will help me also for other issues :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
BlueVision
Blue Vision
Contact us
RSS
Top
Bottom