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: 1133559" data-attributes="member: 145639"><p>[USER=48495]@morpheus_xx[/USER]</p><p>I want to change the opacity of the image "Power_blur" when the button "PowerBotton" has focus.</p><p>I could not realize with an eventtrigger. Can you help? <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> Thanls a lot</p><p></p><p>[HTML] <Image x:Name="Power_blur" Source="Power_blur.png" Grid.Row="0" Grid.Column="3" Width="79" Height="79" Opacity="0"</p><p> Margin="0,0,80,0" VerticalAlignment="Center" HorizontalAlignment="Center" Stretch="Fill"></p><p></p><p> <Button x:Name="PowerButton" Style="{ThemeResource PowerButtonStyle}" Grid.Row="0" Grid.Column="3" Margin="0,-2,80,0"</p><p> OpacityMask="#A0000000" HorizontalAlignment="Center" VerticalAlignment="Center"</p><p> IsEnabled="{Binding Source={StaticResource MenuModel},Path=!IsMenuOpen}"</p><p> Command="{Command Source={Service WorkflowManager},Path=NavigatePush,Parameters=BBFA7DB7-5055-48D5-A904-0F0C79849369}"></p><p> <Button.Triggers></p><p> <Trigger Property="HasFocus" Value="True"></p><p> <Trigger.Setters></p><p> <Setter Property="OpacityMask" Value="#FF000000"/></p><p> </Trigger.Setters></p><p> </Trigger></p><p> </Button.Triggers></p><p> </Button></p><p>[/HTML]</p><p></p><p>Background: When the new power button is focused the blur will appear</p><p>[ATTACH]163941[/ATTACH]</p><p></p><p>EDIT: I could solve it with a trick. I created a grid in "PowerButtonStyle" and added before the button symbol the blur.png with a opacity of 0.05 (means not visible for a normal eye). The button symbol opacity I set to 0.5.</p><p>In above code for "PowerButton" with focus I modified the Setter Property to Opacity=8.</p><p>--> The power symbol is white (even value is 8, more than white is not possible), but the blur opacity becomes 0.4 (8 x 0.05) means visible <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>Anyway interested how to solve it in a better way</p></blockquote><p></p>
[QUOTE="ge2301, post: 1133559, member: 145639"] [USER=48495]@morpheus_xx[/USER] I want to change the opacity of the image "Power_blur" when the button "PowerBotton" has focus. I could not realize with an eventtrigger. Can you help? :) Thanls a lot [HTML] <Image x:Name="Power_blur" Source="Power_blur.png" Grid.Row="0" Grid.Column="3" Width="79" Height="79" Opacity="0" Margin="0,0,80,0" VerticalAlignment="Center" HorizontalAlignment="Center" Stretch="Fill"> <Button x:Name="PowerButton" Style="{ThemeResource PowerButtonStyle}" Grid.Row="0" Grid.Column="3" Margin="0,-2,80,0" OpacityMask="#A0000000" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding Source={StaticResource MenuModel},Path=!IsMenuOpen}" Command="{Command Source={Service WorkflowManager},Path=NavigatePush,Parameters=BBFA7DB7-5055-48D5-A904-0F0C79849369}"> <Button.Triggers> <Trigger Property="HasFocus" Value="True"> <Trigger.Setters> <Setter Property="OpacityMask" Value="#FF000000"/> </Trigger.Setters> </Trigger> </Button.Triggers> </Button> [/HTML] Background: When the new power button is focused the blur will appear [ATTACH]163941[/ATTACH] EDIT: I could solve it with a trick. I created a grid in "PowerButtonStyle" and added before the button symbol the blur.png with a opacity of 0.05 (means not visible for a normal eye). The button symbol opacity I set to 0.5. In above code for "PowerButton" with focus I modified the Setter Property to Opacity=8. --> The power symbol is white (even value is 8, more than white is not possible), but the blur opacity becomes 0.4 (8 x 0.05) means visible :) Anyway interested how to solve it in a better way [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
BlueVision
Blue Vision
Contact us
RSS
Top
Bottom