- Thread starter
- Admin
- #61
It should also work to use a MultiBinding for Label.Content to combine different items in one string, like https://github.com/MediaPortal/Medi...screens/SlimTvClient-extschedule.xaml#L37-L40.
- <Label x:Name="ProgramStart" Margin="10,0,0,0" Color="{ThemeResource TextColor}" VerticalAlignment="Center"
- Content="{Binding [StartTime]}" FontSize="{ThemeResource SmallFontSize}"/>
- <Label Margin="5,0,5,0" Content="—" Color="{ThemeResource TextColor}" VerticalAlignment="Center" />
Color="{ThemeResource TextColor}" FontSize="{ThemeResource SmallFontSize}" />
- <Label x:Name="ProgramEnd" Content="{Binding [EndTime]}" VerticalAlignment="Center" Margin="0,0,10,0"
<Label x:Name="ProgramStartEnd" Margin="10,0,0,0" Color="{ThemeResource TextColor}" VerticalAlignment="Center"
FontSize="{ThemeResource SmallFontSize}">
<Label.Content>
<MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0}+{1}+{2}">
<Binding Path="{Binding [StartTime]}"/>
<Binding Path=" — "/>
<Binding Path="{Binding [EndTime]}"/>
</MultiBinding>
</Label.Content>
</Label>
This is not correct: the "<Binding>" equals to "{Binding ...}", so it's duplicated.<Binding Path="{Binding [StartTime]}"/>
<Label x:Name="ProgramStartEnd" HorizontalAlignment="Right"
Margin="-150,0,0,0" Color="{ThemeResource TextColor}" FontSize="{ThemeResource SmallFontSize}">
<Label.Content>
<MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0}+{1}+{2}">
<Binding Path="StartTime" Converter="{StaticResource SlimTvDateFormatConverter}"/>
<Binding Source=" — "/>
<Binding Path="EndTime" Converter="{StaticResource SlimTvDateFormatConverter}"/>
</MultiBinding>
</Label.Content>
</Label>
This is intentional, the LastSelectedItemName is set for 2 different cases:The description label in the GroupMenu bar is showing every single headline of an active screen.
There are several cases where it's not working as expected. Partly also the "filter commands" remain here after setting a filter.This is intentional, the LastSelectedItemName is set for 2 different cases:
One idea though, we might exclude Dialog states from the 2nd feature...
- In "Home" state the Group name
- In all other States the Workflow's Display name. If we wouldn't do this, there would be no indicator for current screen i.e. when browsing MediaLibrary
<Label Grid.Column="2" Grid.Row="0" x:Name="CurrentProgramLabel" Margin="5,4,0,4"
Content="{Binding Programs[0].Program.Title}" FontSize="{ThemeResource SmallFontSize}"
Color="{ThemeResource TextColor}"/>
<Label Grid.Column="2" Grid.Row="0" x:Name="NextProgramLabel" Margin="5,4,0,4"
Content="{Binding Programs[0].NextProgram.Title}" FontSize="{ThemeResource SmallFontSize}"
Color="{ThemeResource TextColor}"/>
Unfortunately a long standing issue which I couldn't solve yetUnfortunately I realized still problems with the CP screen.
I