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
Making inbuilt plugins Skin resolution aware
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="osre" data-source="post: 1131080" data-attributes="member: 150866"><p>I think it might go even more simple in usage, if you create an custom Extension instead of an ValueConverter.</p><p>[CODE=XML]<Image x:Name="BigIcon" Source="{Binding CurrentLocation.Condition.BigIconProperty}" Stretch="Uniform"</p><p> Width="{ResolutionResource WeatherIconBigWidth}" Height="{ResolutionResource WeatherIconBigHeight}"/></p><p>[/CODE]</p><p>Internally the ResolutionResourceExtension would work exactly like the StaticResourceExtension, except that it appends the Resolution to the key Name.</p><p>The Resources would be defined exactly like in your sample.</p><p>Iknow that this might be a bit confusing at first, but finally the Skin XAML code would be way shorter and more easy to read.</p></blockquote><p></p>
[QUOTE="osre, post: 1131080, member: 150866"] I think it might go even more simple in usage, if you create an custom Extension instead of an ValueConverter. [CODE=XML]<Image x:Name="BigIcon" Source="{Binding CurrentLocation.Condition.BigIconProperty}" Stretch="Uniform" Width="{ResolutionResource WeatherIconBigWidth}" Height="{ResolutionResource WeatherIconBigHeight}"/> [/CODE] Internally the ResolutionResourceExtension would work exactly like the StaticResourceExtension, except that it appends the Resolution to the key Name. The Resources would be defined exactly like in your sample. Iknow that this might be a bit confusing at first, but finally the Skin XAML code would be way shorter and more easy to read. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
Making inbuilt plugins Skin resolution aware
Contact us
RSS
Top
Bottom