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
Apollo One
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: 1070825" data-attributes="member: 48495"><p>I need to explain some differences to MP1.</p><p></p><p>For all skins we have a "home" screen. For ApolloOne it looks like: <a href="https://github.com/morpheusxx/MediaPortal-2/blob/FEAT_ApolloOne/MediaPortal/Incubator/ApolloOne/Skin/ApolloOne/screens/master_homemenu.xaml#L20-L26" target="_blank">https://github.com/morpheusxx/MediaPortal-2/blob/FEAT_ApolloOne/MediaPortal/Incubator/ApolloOne/Skin/ApolloOne/screens/master_homemenu.xaml#L20-L26</a></p><p></p><p>It mainly contains two ListViews: On top is the "group" selection, in center the actual MenuItems of selected group (this feature I added yesterday, any other MP2 skin shows all Items in home!)</p><p>[CODE=XML] <ControlTemplate x:Key="Client_Template"></p><p> <DockPanel LastChildFill="True" Margin="115,-100,0,-40"></p><p> <DockPanel.Resources></p><p> <!--<Model x:Key="MenuModel" Id="9E9D0CD9-4FDB-4c0f-A0C4-F356E151BDE0"/>--></p><p> <Model x:Key="MenuModel" Id="EBA16B93-B669-4162-9CA2-CB1D5E267EC3"/></p><p> </DockPanel.Resources></p><p></p><p> <ListView x:Name="GroupList" DockPanel.Dock="Top" HorizontalAlignment="Center" Style="{ThemeResource HomeGroupListViewStyle}"</p><p> VerticalAlignment="Stretch"</p><p> ItemsSource="{Binding Source={StaticResource MenuModel},Path=MainMenuGroupList,Mode=OneTime}"></p><p> <ListView.Resources></p><p> <CommandBridge x:Key="Menu_Command" Command="{Binding Path=Command,Mode=OneTime}"/></p><p> </ListView.Resources></p><p> </ListView></p><p></p><p> <ap:GridListView x:Name="MainMenu" DockPanel.Dock="Left" Style="{ThemeResource HomeMenuListViewStyle}" Margin="0,70,0,0"</p><p> VerticalAlignment="Stretch" SetFocusPrio="Fallback"</p><p> ItemsSource="{Binding Source={StaticResource MenuModel},Path=PositionedMenuItems,Mode=OneTime}"></p><p> <ap:GridListView.Resources></p><p> <CommandBridge x:Key="Menu_Command" Command="{Binding Path=Command,Mode=OneTime}"/></p><p> </ap:GridListView.Resources></p><p> </ap:GridListView></p><p> </DockPanel></p><p> </ControlTemplate>[/CODE]</p><p></p><p>All design is applied then by styles: </p><ul> <li data-xf-list-type="ul">the HomeGroupListViewStyle uses a horizontal StackPanel to show buttons from left to right.</li> <li data-xf-list-type="ul">the HomeMenuListViewStyle uses a GridPanel that contains the placed menu items</li> </ul><p></p><p></p><p>Do you mean new Menu "Buttons" (1) or other "widgets" (2) like a weather info (like Titanium).</p><p></p><p>(2) would be required to add some XAML code to home (or master_bare, which is the master template).</p><p></p><p>(1) would not require code or xaml, only a change in settings:</p><p></p><p>I now read the predefined "button" positions from a setting:</p><p><a href="https://github.com/morpheusxx/MediaPortal-2/commit/8ffff5c1bf34c39a4e209e366bb98b43931c1c48#diff-5e7d4c8910aeb650fa3c7d1b00281a71R201" target="_blank">https://github.com/morpheusxx/MediaPortal-2/commit/8ffff5c1bf34c39a4e209e366bb98b43931c1c48#diff-5e7d4c8910aeb650fa3c7d1b00281a71R201</a></p><p></p><p>For placing a button in the container I would need to add the buttons WorkflowActionId as key and then define the Grid position and size. This is were a kind of "designer" would help to place the items into the right container and positions.</p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1070825, member: 48495"] I need to explain some differences to MP1. For all skins we have a "home" screen. For ApolloOne it looks like: [url]https://github.com/morpheusxx/MediaPortal-2/blob/FEAT_ApolloOne/MediaPortal/Incubator/ApolloOne/Skin/ApolloOne/screens/master_homemenu.xaml#L20-L26[/url] It mainly contains two ListViews: On top is the "group" selection, in center the actual MenuItems of selected group (this feature I added yesterday, any other MP2 skin shows all Items in home!) [CODE=XML] <ControlTemplate x:Key="Client_Template"> <DockPanel LastChildFill="True" Margin="115,-100,0,-40"> <DockPanel.Resources> <!--<Model x:Key="MenuModel" Id="9E9D0CD9-4FDB-4c0f-A0C4-F356E151BDE0"/>--> <Model x:Key="MenuModel" Id="EBA16B93-B669-4162-9CA2-CB1D5E267EC3"/> </DockPanel.Resources> <ListView x:Name="GroupList" DockPanel.Dock="Top" HorizontalAlignment="Center" Style="{ThemeResource HomeGroupListViewStyle}" VerticalAlignment="Stretch" ItemsSource="{Binding Source={StaticResource MenuModel},Path=MainMenuGroupList,Mode=OneTime}"> <ListView.Resources> <CommandBridge x:Key="Menu_Command" Command="{Binding Path=Command,Mode=OneTime}"/> </ListView.Resources> </ListView> <ap:GridListView x:Name="MainMenu" DockPanel.Dock="Left" Style="{ThemeResource HomeMenuListViewStyle}" Margin="0,70,0,0" VerticalAlignment="Stretch" SetFocusPrio="Fallback" ItemsSource="{Binding Source={StaticResource MenuModel},Path=PositionedMenuItems,Mode=OneTime}"> <ap:GridListView.Resources> <CommandBridge x:Key="Menu_Command" Command="{Binding Path=Command,Mode=OneTime}"/> </ap:GridListView.Resources> </ap:GridListView> </DockPanel> </ControlTemplate>[/CODE] All design is applied then by styles: [LIST] [*]the HomeGroupListViewStyle uses a horizontal StackPanel to show buttons from left to right. [*]the HomeMenuListViewStyle uses a GridPanel that contains the placed menu items [/LIST] Do you mean new Menu "Buttons" (1) or other "widgets" (2) like a weather info (like Titanium). (2) would be required to add some XAML code to home (or master_bare, which is the master template). (1) would not require code or xaml, only a change in settings: I now read the predefined "button" positions from a setting: [url]https://github.com/morpheusxx/MediaPortal-2/commit/8ffff5c1bf34c39a4e209e366bb98b43931c1c48#diff-5e7d4c8910aeb650fa3c7d1b00281a71R201[/url] For placing a button in the container I would need to add the buttons WorkflowActionId as key and then define the Grid position and size. This is were a kind of "designer" would help to place the items into the right container and positions. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
Apollo One
Contact us
RSS
Top
Bottom