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
Windows 10 Theme for BlueVision skin
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: 1154963" data-attributes="member: 145639"><p>Meanwhile I got it so far:</p><p>[CODE=XML] <ControlTemplate x:Key="Contents_Template"></p><p> <DockPanel LastChildFill="False"></p><p> <DockPanel LastChildFill="True" DockPanel.Dock="Bottom" Height="120" Margin="20,0,20,20"</p><p> HorizontalAlignment="Stretch" VerticalAlignment="Stretch"></p><p> <Label Color="{ThemeResource HintTextColor}" DockPanel.Dock="Center"</p><p> HorizontalAlignment="Stretch"</p><p> DataContext="{Binding ElementName=ConfigItemsList,Path=CurrentItem}"</p><p> Content="{Binding [Help]}" Wrap="True"</p><p> IsVisible="{Binding Converter={StaticResource ReferenceToBoolConverter}}"/></p><p> </DockPanel></p><p></p><p> <ListView x:Name="ConfigItemsList"</p><p> DockPanel.Dock="Center"</p><p> HorizontalAlignment="Stretch" VerticalAlignment="Stretch"</p><p> Style="{ThemeResource ContentsMenuListViewStyle}"</p><p> DataContext="{Binding Source={StaticResource Model}}"</p><p> ItemsSource="{Binding ConfigSettings}"></p><p> <ListView.Resources></p><p> <CommandBridge x:Key="Menu_Command" Command="{Binding Path=Command,Mode=OneTime}"/></p><p> </ListView.Resources></p><p> </ListView></p><p> <Label DockPanel.Dock="Center" Content="[Configuration.NoSettingsInThisSection]" IsVisible="{Binding ElementName=ConfigItemsList,Path=IsEmpty}"</p><p> HorizontalAlignment="Center" VerticalAlignment="Center"</p><p> Color="{ThemeResource HintTextColor}" FontSize="{ThemeResource SmallFontSize}"/></p><p> </DockPanel></p><p> </ControlTemplate></p><p></p><p> <ControlTemplate x:Key="Footer_Template"></p><p> <DockPanel LastChildFill="True" Height="120" Margin="0,0,0,0"</p><p> HorizontalAlignment="Stretch" VerticalAlignment="Stretch"></p><p> <Label Color="{ThemeResource HintTextColor}" DockPanel.Dock="Center"</p><p> HorizontalAlignment="Stretch"</p><p> DataContext="{Binding ElementName=ConfigItemsList,Path=CurrentItem}"</p><p> Content="{Binding [Help]}" Wrap="True"</p><p> IsVisible="{Binding Converter={StaticResource ReferenceToBoolConverter}}"/></p><p> </DockPanel></p><p> </ControlTemplate>[/CODE]</p><p></p><p>Only the DataContext="{Binding ElementName=ConfigItemsList,Path=CurrentItem}" is not working.</p><p>Is it not possible to bind an elementname from another control? Please give a hint <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite10" alt=":oops:" title="Oops! :oops:" loading="lazy" data-shortname=":oops:" /></p></blockquote><p></p>
[QUOTE="ge2301, post: 1154963, member: 145639"] Meanwhile I got it so far: [CODE=XML] <ControlTemplate x:Key="Contents_Template"> <DockPanel LastChildFill="False"> <DockPanel LastChildFill="True" DockPanel.Dock="Bottom" Height="120" Margin="20,0,20,20" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> <Label Color="{ThemeResource HintTextColor}" DockPanel.Dock="Center" HorizontalAlignment="Stretch" DataContext="{Binding ElementName=ConfigItemsList,Path=CurrentItem}" Content="{Binding [Help]}" Wrap="True" IsVisible="{Binding Converter={StaticResource ReferenceToBoolConverter}}"/> </DockPanel> <ListView x:Name="ConfigItemsList" DockPanel.Dock="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Style="{ThemeResource ContentsMenuListViewStyle}" DataContext="{Binding Source={StaticResource Model}}" ItemsSource="{Binding ConfigSettings}"> <ListView.Resources> <CommandBridge x:Key="Menu_Command" Command="{Binding Path=Command,Mode=OneTime}"/> </ListView.Resources> </ListView> <Label DockPanel.Dock="Center" Content="[Configuration.NoSettingsInThisSection]" IsVisible="{Binding ElementName=ConfigItemsList,Path=IsEmpty}" HorizontalAlignment="Center" VerticalAlignment="Center" Color="{ThemeResource HintTextColor}" FontSize="{ThemeResource SmallFontSize}"/> </DockPanel> </ControlTemplate> <ControlTemplate x:Key="Footer_Template"> <DockPanel LastChildFill="True" Height="120" Margin="0,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> <Label Color="{ThemeResource HintTextColor}" DockPanel.Dock="Center" HorizontalAlignment="Stretch" DataContext="{Binding ElementName=ConfigItemsList,Path=CurrentItem}" Content="{Binding [Help]}" Wrap="True" IsVisible="{Binding Converter={StaticResource ReferenceToBoolConverter}}"/> </DockPanel> </ControlTemplate>[/CODE] Only the DataContext="{Binding ElementName=ConfigItemsList,Path=CurrentItem}" is not working. Is it not possible to bind an elementname from another control? Please give a hint :oops: [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
BlueVision
Windows 10 Theme for BlueVision skin
Contact us
RSS
Top
Bottom