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 contest: One month to go
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="FreakyJ" data-source="post: 673143" data-attributes="member: 106003"><p><strong>AW: Skinning contest: One month to go</strong></p><p></p><p>So I'm absolutely new to WPF/MPF and it seems really hard to skin in MP2.</p><p>I think I understood your little examplePlugin (HelloWorld), but how to add images?! I was trying hardly to dig into the weatherPlugin, but no way...</p><p></p><p>[CODE]<DockPanel</p><p> xmlns="www.team-mediaportal.com/2008/mpf/directx"</p><p> xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"</p><p> Context="{Model Id=5726DA5A-70D5-458f-AF67-611293D97912}" LastChildFill="False"></p><p> <Label Content="This is the sample screen of the HelloWorld plugin" FontSize="40" DockPanel.Dock="Top" HorizontalAlignment="Center"/></p><p> <StackPanel DockPanel.Dock="Center" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"></p><p> <Button Content="Press me" Style="{ThemeResource ButtonWideStyle}" Margin="10"</p><p> HorizontalAlignment="Right" VerticalAlignment="Center"</p><p> Command="{Command ChangeHelloWorldString}"/></p><p> <Label Content="{Binding HelloString}" Margin="10"</p><p> HorizontalAlignment="Left" VerticalAlignment="Center"/></p><p></p><p> </StackPanel></p><p></p><p> <!-- My own Test --></p><p></p><p> <Grid Width="200"></p><p> <Grid.Background></p><p> <ImageBrush ImageSource="media\01.jpg"/></p><p> </Grid.Background></p><p></p><p> <Grid.ColumnDefinitions></p><p> <ColumnDefinition /></p><p> </Grid.ColumnDefinitions></p><p> <Grid.RowDefinitions></p><p> <RowDefinition Height="200"/></p><p> <RowDefinition Height="Auto"/></p><p> </Grid.RowDefinitions></p><p></p><p> <!-- The Imagebox --></p><p></p><p> <Image Grid.Column="0" Grid.Row="0" Width="200" </p><p>Source="M:\Programmieren\C#\MediaPortal 2\trunk - Kopie\MediaPortal\Bin\MP2-Client\bin\x86\Debug\Plugins\HelloWorld\Skin\default\media\01.jpg"/></p><p></p><p> <!-- Label --></p><p> <Label Grid.Column="0" Grid.Row="1" Content="Select an Image" /></p><p></p><p></p><p> </Grid></p><p></p><p></p><p></DockPanel>[/CODE]</p><p></p><p>I can see the text "Select an Image", but no image >_> Maybe somebody can give me a hint. Do I have to register the media folder in the plugin.xml?! I didn't found anything in the weatherPlugin nor in the documentation.</p><p>Only this:</p><p></p><p></p><p>I also tried</p><p>[CODE]<Image Grid.Column="0" Grid.Row="0" Width="200" </p><p>Source="01.jpg"/>[/CODE] but this also doesn't work.</p></blockquote><p></p>
[QUOTE="FreakyJ, post: 673143, member: 106003"] [b]AW: Skinning contest: One month to go[/b] So I'm absolutely new to WPF/MPF and it seems really hard to skin in MP2. I think I understood your little examplePlugin (HelloWorld), but how to add images?! I was trying hardly to dig into the weatherPlugin, but no way... [CODE]<DockPanel xmlns="www.team-mediaportal.com/2008/mpf/directx" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Context="{Model Id=5726DA5A-70D5-458f-AF67-611293D97912}" LastChildFill="False"> <Label Content="This is the sample screen of the HelloWorld plugin" FontSize="40" DockPanel.Dock="Top" HorizontalAlignment="Center"/> <StackPanel DockPanel.Dock="Center" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"> <Button Content="Press me" Style="{ThemeResource ButtonWideStyle}" Margin="10" HorizontalAlignment="Right" VerticalAlignment="Center" Command="{Command ChangeHelloWorldString}"/> <Label Content="{Binding HelloString}" Margin="10" HorizontalAlignment="Left" VerticalAlignment="Center"/> </StackPanel> <!-- My own Test --> <Grid Width="200"> <Grid.Background> <ImageBrush ImageSource="media\01.jpg"/> </Grid.Background> <Grid.ColumnDefinitions> <ColumnDefinition /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="200"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <!-- The Imagebox --> <Image Grid.Column="0" Grid.Row="0" Width="200" Source="M:\Programmieren\C#\MediaPortal 2\trunk - Kopie\MediaPortal\Bin\MP2-Client\bin\x86\Debug\Plugins\HelloWorld\Skin\default\media\01.jpg"/> <!-- Label --> <Label Grid.Column="0" Grid.Row="1" Content="Select an Image" /> </Grid> </DockPanel>[/CODE] I can see the text "Select an Image", but no image >_> Maybe somebody can give me a hint. Do I have to register the media folder in the plugin.xml?! I didn't found anything in the weatherPlugin nor in the documentation. Only this: I also tried [CODE]<Image Grid.Column="0" Grid.Row="0" Width="200" Source="01.jpg"/>[/CODE] but this also doesn't work. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
Skinning contest: One month to go
Contact us
RSS
Top
Bottom