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
HOW TO: Create a simple media list interface
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="celesta" data-source="post: 793561" data-attributes="member: 110975"><p>Based on the guitestplugin example (test-listview.xaml), I found that without using style it doesn't work.</p><p></p><p>There is my working code:</p><p></p><p>[CODE]</p><p><Screen xmlns="www.team-mediaportal.com/2008/mpf/directx" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"></p><p> <Grid></p><p>[COLOR="DarkOrange"] <Grid.Resources></p><p> <Style x:Key="ListViewStyle" BasedOn="{ThemeResource DefaultListViewStyle}"></p><p> <Setter Property="ItemContainerStyle" Value="{ThemeResource DefaultMenuItemContainerStyle}"/></p><p> </Style></p><p> </Grid.Resources>[/COLOR]</p><p> </p><p> <!-- Grid for positioning elements --></p><p> <Grid.RowDefinitions></p><p> <RowDefinition Height="60" /></p><p> <RowDefinition Height="*" /></p><p> <RowDefinition Height="40" /></p><p> </Grid.RowDefinitions> </p><p> <Grid.ColumnDefinitions></p><p> <ColumnDefinition Width="380" /></p><p> <ColumnDefinition Width="*" /></p><p> </Grid.ColumnDefinitions></p><p></p><p> <!-- Main List --></p><p> <ListView Grid.Row="1" Grid.Column="1" Margin="0,20,20,20"[COLOR="DarkOrange"] Style="{ThemeResource ListViewStyle}[/COLOR]" ></p><p> <ListViewItem> <WrapPanel> </p><p> <Image Margin="0,0,14,0" Source="viewed.png" /></p><p> <Image VerticalAlignment="Bottom" Margin="0,0,14,0" Source="divx.png" /> </p><p> <Label Content="Choix 1"/> </p><p> </WrapPanel></ListViewItem></p><p> <ListViewItem> <WrapPanel> </p><p> <Image Width="30" Margin="0,0,14,0" Source="inprogress.png" /></p><p> <Image VerticalAlignment="Bottom" Margin="0,0,14,0" Source="dvd.png" /> </p><p> <Label Content="Choix 1"/> </p><p> </WrapPanel></ListViewItem></p><p> </ListView></p><p> </p><p> <!-- Cover --></p><p> <Image Grid.Row="1" Grid.Column="0" VerticalAlignment="Top" HorizontalAlignment="Right" Source="cover.png" /></p><p> </p><p> </Grid></p><p></Screen></p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="celesta, post: 793561, member: 110975"] Based on the guitestplugin example (test-listview.xaml), I found that without using style it doesn't work. There is my working code: [CODE] <Screen xmlns="www.team-mediaportal.com/2008/mpf/directx" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Grid> [COLOR="DarkOrange"] <Grid.Resources> <Style x:Key="ListViewStyle" BasedOn="{ThemeResource DefaultListViewStyle}"> <Setter Property="ItemContainerStyle" Value="{ThemeResource DefaultMenuItemContainerStyle}"/> </Style> </Grid.Resources>[/COLOR] <!-- Grid for positioning elements --> <Grid.RowDefinitions> <RowDefinition Height="60" /> <RowDefinition Height="*" /> <RowDefinition Height="40" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="380" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <!-- Main List --> <ListView Grid.Row="1" Grid.Column="1" Margin="0,20,20,20"[COLOR="DarkOrange"] Style="{ThemeResource ListViewStyle}[/COLOR]" > <ListViewItem> <WrapPanel> <Image Margin="0,0,14,0" Source="viewed.png" /> <Image VerticalAlignment="Bottom" Margin="0,0,14,0" Source="divx.png" /> <Label Content="Choix 1"/> </WrapPanel></ListViewItem> <ListViewItem> <WrapPanel> <Image Width="30" Margin="0,0,14,0" Source="inprogress.png" /> <Image VerticalAlignment="Bottom" Margin="0,0,14,0" Source="dvd.png" /> <Label Content="Choix 1"/> </WrapPanel></ListViewItem> </ListView> <!-- Cover --> <Image Grid.Row="1" Grid.Column="0" VerticalAlignment="Top" HorizontalAlignment="Right" Source="cover.png" /> </Grid> </Screen> [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
HOW TO: Create a simple media list interface
Contact us
RSS
Top
Bottom