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: 1141918" data-attributes="member: 48495"><p>Thanks! I have added / copied the logos so they will fit the MP2 style encoding types.</p><p></p><p>I've also added 2 new converters:</p><ol> <li data-xf-list-type="ol">SafeFilenameConverter --> Works like StringFormatConverter, but replaces all invalid file name characters by "_"</li> <li data-xf-list-type="ol">StringSplitConverter --> Converts a list like "MP2, AC3" into a List<String>{"MP2", "AC3"} which a ListView can bind to. This allows you to create list of strings.</li> </ol><p>[USER=145639]@ge2301[/USER]: I already added an example ListViewStyle for AudioEncodings, can you try to add it in a good way to CP screen?</p><p></p><p>Example for 1): only other converter name (SafeFilenameConverter)</p><p>[CODE=XML] <Image Grid.Row="1" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Stretch" Stretch="Uniform" Width="300" ></p><p> <Image.Source></p><p> <Binding Path="VideoEncoding" Converter="{StaticResource SafeFilenameConverter}" ConverterParameter="{}Medialogos\video\{0}.png"/></p><p> </Image.Source></p><p> </Image>[/CODE]</p><p></p><p>Example for 2):</p><p>[CODE=XML] <ListView Grid.Row="1" Grid.RowSpan="5" Grid.Column="2" x:Name="AudioLanguageList" ItemsSource="{Binding Path=AudioEncoding, Converter={StaticResource StringSplitConverter}}"</p><p> HorizontalAlignment="Center" VerticalAlignment="Stretch"</p><p> Style="{ThemeResource AudioEncodingListViewStyle}" Margin="10,5,10,5" />[/CODE]</p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1141918, member: 48495"] Thanks! I have added / copied the logos so they will fit the MP2 style encoding types. I've also added 2 new converters: [LIST=1] [*]SafeFilenameConverter --> Works like StringFormatConverter, but replaces all invalid file name characters by "_" [*]StringSplitConverter --> Converts a list like "MP2, AC3" into a List<String>{"MP2", "AC3"} which a ListView can bind to. This allows you to create list of strings. [/LIST] [USER=145639]@ge2301[/USER]: I already added an example ListViewStyle for AudioEncodings, can you try to add it in a good way to CP screen? Example for 1): only other converter name (SafeFilenameConverter) [CODE=XML] <Image Grid.Row="1" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Stretch" Stretch="Uniform" Width="300" > <Image.Source> <Binding Path="VideoEncoding" Converter="{StaticResource SafeFilenameConverter}" ConverterParameter="{}Medialogos\video\{0}.png"/> </Image.Source> </Image>[/CODE] Example for 2): [CODE=XML] <ListView Grid.Row="1" Grid.RowSpan="5" Grid.Column="2" x:Name="AudioLanguageList" ItemsSource="{Binding Path=AudioEncoding, Converter={StaticResource StringSplitConverter}}" HorizontalAlignment="Center" VerticalAlignment="Stretch" Style="{ThemeResource AudioEncodingListViewStyle}" Margin="10,5,10,5" />[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
BlueVision
Blue Vision
Contact us
RSS
Top
Bottom