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
Skinning Noob needs help...
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="MJGraf" data-source="post: 874366" data-attributes="member: 17886"><p>Hi everybody,</p><p> </p><p>I may be a bad coder, but my XAML/WPF/MPF knowledge is even worse. I'm trying hard, but I need your help. I started with the screen in the HelloWorldExample. I modified it a bit, added some labels, progress bars and a picture, which worked perfectly. Then I wanted to add a listview (code below) - since I didn't find an easier example, I took the one from the GuiTestPlugin. There is no dynamic content, yet, I just wanted to add some static ListViewItems to get a feeling how it looks like, but I cannot get a single item to show up. The ListView is just empty and I had to add a "Background" to see that it is actually there. I'm using the Reflexion Skin, but using the default one doesn't help either...</p><p> </p><p>I'd really be grateful if someone could give me a hint - I may make a very stupid mistake here, but since I really have no clue of XAML, I just don't know where to start...</p><p> </p><p>Thanks,</p><p>Michael</p><p> </p><p><Include</p><p> xmlns="<a href="https://www.team-mediaportal.com/2008/mpf/directx" target="_blank">www.team-mediaportal.com/2008/mpf/directx</a>"</p><p> xmlns:x="<a href="http://schemas.microsoft.com/winfx/2006/xaml" target="_blank">http://schemas.microsoft.com/winfx/2006/xaml</a>"</p><p> Source="screens\master_menu.xaml"</p><p> ></p><p> <Include.Resources></p><p> <!-- Header --></p><p> <ResourceWrapper x:Key="Header_Text" Resource="[MPMBCDRipper.ScreenTitle]"/></p><p> <!-- Contents --></p><p> <ControlTemplate x:Key="Contents_Template"></p><p> <DockPanel Context="{Model Id=2F7131D3-D12B-43e2-B5CF-E966D1E5AA50}" LastChildFill="True"></p><p> </p><p> <StackPanel DockPanel.Dock="Left" Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Top"></p><p> <Image Margin="10,30,10,10" Width="500" Stretch="Uniform" Source="folder.jpg" /></p><p> <Label Content="Track Progress" Color="{ThemeResource TextColor}" Margin="10,20,10,5" HorizontalAlignment="Left" VerticalAlignment="Center"/></p><p> <ProgressBar Margin="10,5,10,10" Name="TrackPBar" Width="500" Height="30" Value="100" /> </p><p> <Label Content="CD Progress" Color="{ThemeResource TextColor}" Margin="10,10,10,5" HorizontalAlignment="Left" VerticalAlignment="Center"/></p><p> <ProgressBar Margin="10,5,10,10" Name="CDPBar" Width="500" Height="30" Value="30"/> </p><p> <Button Content="[MPMBCDRipper.StartRippingButtonText]" Style="{ThemeResource ButtonWideStyle}" Margin="10,20,10,10"</p><p> HorizontalAlignment="Left" VerticalAlignment="Center" Width="500" HorizontalContentAlignment="Center"</p><p> Command="{Command StartRipping}"/></p><p> </StackPanel></p><p> <DockPanel.Resources></p><p> <DataTemplate x:Key="ItemDataTemplate"></p><p> <Label x:Name="ItemDataLabel" Content="{Binding}" FontSize="{ThemeResource SmallFontSize}" Color="Blue"/></p><p> </DataTemplate></p><p> <Style x:Key="ListViewStyle" BasedOn="{ThemeResource DefaultListViewStyle}"></p><p> <Setter Property="ItemTemplate" Value="{ThemeResource ItemDataTemplate}"/></p><p> <Setter Property="ItemContainerStyle" Value="{ThemeResource DefaultMenuItemContainerStyle}"/></p><p> <Setter Property="Background" Value="{ThemeResource ItemsControlShadowBackgroundColor}"/></p><p> </Style></p><p> </DockPanel.Resources></p><p> <ListView Margin="30,30,10,10" DockPanel.Dock="Center" Style="{ThemeResource ListViewStyle}"></p><p> <ListViewItem></p><p> Simple string inside a ListViewItem - Should be styled with the container style</p><p> </ListViewItem></p><p> </ListView></p><p> </p><p> </DockPanel></p><p> </ControlTemplate></p><p> </Include.Resources></p><p></Include></p></blockquote><p></p>
[QUOTE="MJGraf, post: 874366, member: 17886"] Hi everybody, I may be a bad coder, but my XAML/WPF/MPF knowledge is even worse. I'm trying hard, but I need your help. I started with the screen in the HelloWorldExample. I modified it a bit, added some labels, progress bars and a picture, which worked perfectly. Then I wanted to add a listview (code below) - since I didn't find an easier example, I took the one from the GuiTestPlugin. There is no dynamic content, yet, I just wanted to add some static ListViewItems to get a feeling how it looks like, but I cannot get a single item to show up. The ListView is just empty and I had to add a "Background" to see that it is actually there. I'm using the Reflexion Skin, but using the default one doesn't help either... I'd really be grateful if someone could give me a hint - I may make a very stupid mistake here, but since I really have no clue of XAML, I just don't know where to start... Thanks, Michael <Include xmlns="[URL='https://www.team-mediaportal.com/2008/mpf/directx']www.team-mediaportal.com/2008/mpf/directx[/URL]" xmlns:x="[url]http://schemas.microsoft.com/winfx/2006/xaml[/url]" Source="screens\master_menu.xaml" > <Include.Resources> <!-- Header --> <ResourceWrapper x:Key="Header_Text" Resource="[MPMBCDRipper.ScreenTitle]"/> <!-- Contents --> <ControlTemplate x:Key="Contents_Template"> <DockPanel Context="{Model Id=2F7131D3-D12B-43e2-B5CF-E966D1E5AA50}" LastChildFill="True"> <StackPanel DockPanel.Dock="Left" Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Top"> <Image Margin="10,30,10,10" Width="500" Stretch="Uniform" Source="folder.jpg" /> <Label Content="Track Progress" Color="{ThemeResource TextColor}" Margin="10,20,10,5" HorizontalAlignment="Left" VerticalAlignment="Center"/> <ProgressBar Margin="10,5,10,10" Name="TrackPBar" Width="500" Height="30" Value="100" /> <Label Content="CD Progress" Color="{ThemeResource TextColor}" Margin="10,10,10,5" HorizontalAlignment="Left" VerticalAlignment="Center"/> <ProgressBar Margin="10,5,10,10" Name="CDPBar" Width="500" Height="30" Value="30"/> <Button Content="[MPMBCDRipper.StartRippingButtonText]" Style="{ThemeResource ButtonWideStyle}" Margin="10,20,10,10" HorizontalAlignment="Left" VerticalAlignment="Center" Width="500" HorizontalContentAlignment="Center" Command="{Command StartRipping}"/> </StackPanel> <DockPanel.Resources> <DataTemplate x:Key="ItemDataTemplate"> <Label x:Name="ItemDataLabel" Content="{Binding}" FontSize="{ThemeResource SmallFontSize}" Color="Blue"/> </DataTemplate> <Style x:Key="ListViewStyle" BasedOn="{ThemeResource DefaultListViewStyle}"> <Setter Property="ItemTemplate" Value="{ThemeResource ItemDataTemplate}"/> <Setter Property="ItemContainerStyle" Value="{ThemeResource DefaultMenuItemContainerStyle}"/> <Setter Property="Background" Value="{ThemeResource ItemsControlShadowBackgroundColor}"/> </Style> </DockPanel.Resources> <ListView Margin="30,30,10,10" DockPanel.Dock="Center" Style="{ThemeResource ListViewStyle}"> <ListViewItem> Simple string inside a ListViewItem - Should be styled with the container style </ListViewItem> </ListView> </DockPanel> </ControlTemplate> </Include.Resources> </Include> [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
Skinning Noob needs help...
Contact us
RSS
Top
Bottom