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="morpheus_xx" data-source="post: 1141742" data-attributes="member: 48495"><p>[USER=145639]@ge2301[/USER] you just have replaced two images (WebRadio/Tools). Both came from grey theme, I moved them to common images so both themes can use them. So please</p><p></p><p></p><p>I could fix this issue by using a special ListView style. Problem is most probably caused by the DataStringProvider, which uses "[Name]" as default, which doesn't exist for strings.</p><p></p><p>First add this style to OtherControls.xaml:</p><p>[CODE=XML] <DataTemplate x:Key="AudioLanguageItemDataTemplate" DataType="{x:Type collections:ListItem}"></p><p> <DockPanel x:Name="ItemControl" LastChildFill="False"></p><p> <Label x:Name="ItemLabel" DockPanel.Dock="Center" Content="{Binding}"</p><p> HorizontalAlignment="Left" VerticalAlignment="Center"</p><p> FontSize="{ThemeResource SmallFontSize}" Color="{ThemeResource TextColor}"/></p><p> </DockPanel></p><p> </DataTemplate></p><p></p><p> <Style x:Key="AudioLanguageListViewStyle" TargetType="{x:Type ListView}" BasedOn="{ThemeResource DefaultListViewStyle}"></p><p> <Setter Property="ItemTemplate" Value="{ThemeResource AudioLanguageItemDataTemplate}"/></p><p> <Setter Property="DataStringProvider" Value=""/></p><p> </Style>[/CODE]</p><p>And then you can use:</p><p>[CODE=XML]</p><p> <ListView Grid.Row="0" Grid.Column="0" x:Name="AudioLanguageList" ItemsSource="{Binding AudioLanguages}"</p><p> HorizontalAlignment="Stretch" VerticalAlignment="Stretch"</p><p> Style="{ThemeResource AudioLanguageListViewStyle}" /></p><p>[/CODE]</p><p>If you like to put flags into list view, you need to extend AudioLanguageItemDataTemplate.</p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1141742, member: 48495"] [USER=145639]@ge2301[/USER] you just have replaced two images (WebRadio/Tools). Both came from grey theme, I moved them to common images so both themes can use them. So please I could fix this issue by using a special ListView style. Problem is most probably caused by the DataStringProvider, which uses "[Name]" as default, which doesn't exist for strings. First add this style to OtherControls.xaml: [CODE=XML] <DataTemplate x:Key="AudioLanguageItemDataTemplate" DataType="{x:Type collections:ListItem}"> <DockPanel x:Name="ItemControl" LastChildFill="False"> <Label x:Name="ItemLabel" DockPanel.Dock="Center" Content="{Binding}" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="{ThemeResource SmallFontSize}" Color="{ThemeResource TextColor}"/> </DockPanel> </DataTemplate> <Style x:Key="AudioLanguageListViewStyle" TargetType="{x:Type ListView}" BasedOn="{ThemeResource DefaultListViewStyle}"> <Setter Property="ItemTemplate" Value="{ThemeResource AudioLanguageItemDataTemplate}"/> <Setter Property="DataStringProvider" Value=""/> </Style>[/CODE] And then you can use: [CODE=XML] <ListView Grid.Row="0" Grid.Column="0" x:Name="AudioLanguageList" ItemsSource="{Binding AudioLanguages}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Style="{ThemeResource AudioLanguageListViewStyle}" /> [/CODE] If you like to put flags into list view, you need to extend AudioLanguageItemDataTemplate. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
BlueVision
Blue Vision
Contact us
RSS
Top
Bottom