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
Plugin Development
WiFi configuration plugin - first experiences
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="chefkoch" data-source="post: 1011943" data-attributes="member: 10438"><p>And again I have to notice: It is unbelievable what will be possible within MP2 <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>Check out the definitions of the signal bars (beginning at <Path x:Name="signalBars" and ending at </Path>, of course):</p><p>[CODE=xml] <DataTemplate x:Key="WifiItemDataTemplate" DataType="{x:Type collections:ListItem}"></p><p> <DockPanel x:Name="ItemControl" LastChildFill="True"></p><p> </p><p> <Grid Width="30" DockPanel.Dock="Left"></p><p> <Path x:Name="selectedCheckMark" Width="26" Height="26" Stretch="None" IsVisible="{Binding Selected}"</p><p> Stroke="{ThemeResource ControlHandleColor}" StrokeThickness="1" Data="M8,13 L11,18 L18,6"/></p><p> </Grid></p><p> </p><p> <StackPanel DockPanel.Dock="Right" Orientation="Horizontal"></p><p> </p><p> <Path x:Name="signalBars" Width="25" Height="25" Stretch="None"</p><p> Stroke="{ThemeResource ControlHandleColor}" StrokeThickness="1" Data="M0,25 L25,25 L25,0 L20,0 L20,5 L15,5 L15,10 L10,10 L10,15 L5,15 L5,20 L0,20 z"></p><p> <Path.Fill></p><p> <LinearGradientBrush StartPoint="0,1" EndPoint="1,1"></p><p> <GradientStop Offset="0" Color="{ThemeResource PlayControlsFillColor1}"/></p><p> <GradientStop Offset="{Binding AdditionalProperties[SignalStrength]}" Color="{ThemeResource PlayControlsFillColor1}"/></p><p> <GradientStop Color="Transparent"></p><p> <GradientStop.Offset></p><p> <Binding Path="AdditionalProperties[SignalStrength]" Converter="{StaticResource ExpressionValueConverter}" ConverterParameter="{}{0} + 0.01f"/></p><p> </GradientStop.Offset></p><p> </GradientStop></p><p> <GradientStop Offset="1" Color="Transparent"/></p><p> </LinearGradientBrush ></p><p> </Path.Fill></p><p> </Path></p><p> </p><p> <Label HorizontalAlignment="Right" HorizontalContentAlignment="Right" VerticalAlignment="Center" FontSize="{ThemeResource SmallFontSize}" Color="{ThemeResource TextColor}" Width="70"></p><p> <Label.Content></p><p> <Binding Path="AdditionalProperties[SignalStrength]" Converter="{StaticResource StringFormatConverter}" ConverterParameter="{}{0:P0}"/></p><p> </Label.Content></p><p> </Label></p><p> </p><p> </StackPanel></p><p> </p><p> <Label x:Name="ItemLabel" DockPanel.Dock="Center" Content="{Binding [Name]}"</p><p> HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="{ThemeResource SmallFontSize}"</p><p> Color="{ThemeResource TextColor}"/></p><p> </DockPanel></p><p> </DataTemplate>[/CODE]</p><p> </p><p>These are defined once for the default skin, but are immediately available this way in all skins:</p><p>[ATTACH]132790[/ATTACH] [ATTACH]132791[/ATTACH]</p><p> </p><p>There are already so much other things available in MP2 like anyimations / storybords, etc... which are not used at all, but offer so much great skinning and design possibilities. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="chefkoch, post: 1011943, member: 10438"] And again I have to notice: It is unbelievable what will be possible within MP2 :) Check out the definitions of the signal bars (beginning at <Path x:Name="signalBars" and ending at </Path>, of course): [CODE=xml] <DataTemplate x:Key="WifiItemDataTemplate" DataType="{x:Type collections:ListItem}"> <DockPanel x:Name="ItemControl" LastChildFill="True"> <Grid Width="30" DockPanel.Dock="Left"> <Path x:Name="selectedCheckMark" Width="26" Height="26" Stretch="None" IsVisible="{Binding Selected}" Stroke="{ThemeResource ControlHandleColor}" StrokeThickness="1" Data="M8,13 L11,18 L18,6"/> </Grid> <StackPanel DockPanel.Dock="Right" Orientation="Horizontal"> <Path x:Name="signalBars" Width="25" Height="25" Stretch="None" Stroke="{ThemeResource ControlHandleColor}" StrokeThickness="1" Data="M0,25 L25,25 L25,0 L20,0 L20,5 L15,5 L15,10 L10,10 L10,15 L5,15 L5,20 L0,20 z"> <Path.Fill> <LinearGradientBrush StartPoint="0,1" EndPoint="1,1"> <GradientStop Offset="0" Color="{ThemeResource PlayControlsFillColor1}"/> <GradientStop Offset="{Binding AdditionalProperties[SignalStrength]}" Color="{ThemeResource PlayControlsFillColor1}"/> <GradientStop Color="Transparent"> <GradientStop.Offset> <Binding Path="AdditionalProperties[SignalStrength]" Converter="{StaticResource ExpressionValueConverter}" ConverterParameter="{}{0} + 0.01f"/> </GradientStop.Offset> </GradientStop> <GradientStop Offset="1" Color="Transparent"/> </LinearGradientBrush > </Path.Fill> </Path> <Label HorizontalAlignment="Right" HorizontalContentAlignment="Right" VerticalAlignment="Center" FontSize="{ThemeResource SmallFontSize}" Color="{ThemeResource TextColor}" Width="70"> <Label.Content> <Binding Path="AdditionalProperties[SignalStrength]" Converter="{StaticResource StringFormatConverter}" ConverterParameter="{}{0:P0}"/> </Label.Content> </Label> </StackPanel> <Label x:Name="ItemLabel" DockPanel.Dock="Center" Content="{Binding [Name]}" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="{ThemeResource SmallFontSize}" Color="{ThemeResource TextColor}"/> </DockPanel> </DataTemplate>[/CODE] These are defined once for the default skin, but are immediately available this way in all skins: [ATTACH]132790[/ATTACH] [ATTACH]132791[/ATTACH] There are already so much other things available in MP2 like anyimations / storybords, etc... which are not used at all, but offer so much great skinning and design possibilities. :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
WiFi configuration plugin - first experiences
Contact us
RSS
Top
Bottom