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="ge2301" data-source="post: 1201507" data-attributes="member: 145639"><p>Does anybody how I can combine below 3 values into a Label?</p><p>The ExpressionMultiValueConverter does not work, because {0} and {2} are not strings. But because a SlimTvDateFormatConverter is used, I can not add a StringConverter additionally. MPF does not allow usages of multiple converter. Nested MultiBindings are also not possible.</p><p></p><p>[CODE=XML] <Label Color="{ThemeResource TextColor}" Scroll="Auto"></p><p> <Label.Content></p><p> <MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0}+{1}+{2}"></p><p> <Binding Path="CurrentProgram.StartTime" Converter="{StaticResource SlimTvDateFormatConverter}"/></p><p> <Binding Source=" — "/></p><p> <Binding Path="CurrentProgram.EndTime" Converter="{StaticResource SlimTvDateFormatConverter}"/></p><p> </MultiBinding></p><p> </Label.Content></p><p> </Label>[/CODE]</p><p></p><p>The current solution with a StackPanel including 3 labels is not feasible, because neither TextTrimming nor Scroll="Auto" are possible.</p><p>In case {0} and {2} have not only a time, but also a date the total length is too much and overlapping other parts.</p></blockquote><p></p>
[QUOTE="ge2301, post: 1201507, member: 145639"] Does anybody how I can combine below 3 values into a Label? The ExpressionMultiValueConverter does not work, because {0} and {2} are not strings. But because a SlimTvDateFormatConverter is used, I can not add a StringConverter additionally. MPF does not allow usages of multiple converter. Nested MultiBindings are also not possible. [CODE=XML] <Label Color="{ThemeResource TextColor}" Scroll="Auto"> <Label.Content> <MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0}+{1}+{2}"> <Binding Path="CurrentProgram.StartTime" Converter="{StaticResource SlimTvDateFormatConverter}"/> <Binding Source=" — "/> <Binding Path="CurrentProgram.EndTime" Converter="{StaticResource SlimTvDateFormatConverter}"/> </MultiBinding> </Label.Content> </Label>[/CODE] The current solution with a StackPanel including 3 labels is not feasible, because neither TextTrimming nor Scroll="Auto" are possible. In case {0} and {2} have not only a time, but also a date the total length is too much and overlapping other parts. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
BlueVision
Blue Vision
Contact us
RSS
Top
Bottom