![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | MenuItem's transparent background Hi all ! i would like to make my menu item's background transparent, just the background not the content and would like to clear the shadow under the menu item. Any idea ? Thx 4 help ! -- Phil |
My System Specs![]() |
| | #2 (permalink) |
| | RE: MenuItem's transparent background Hi Phil, You will have to create a new template for MenuItem to change these behaviors. As far as I know, theme style files have not been made available, so it may be a challenge to recreate all the functionality of this control. -Shalini ---------- "Phil" wrote: > Hi all ! > > i would like to make my menu item's background transparent, just the > background not the content and would like to clear the shadow under the menu > item. > > Any idea ? > > Thx 4 help ! > -- > Phil |
My System Specs![]() |
| | #3 (permalink) |
| | RE: MenuItem's transparent background Thanks for your help Shalini, i tried to make a new template for the menuItem with the Expression Designer(March CTP). When i make a "Copy of the template", it generates a lot of XAML code (too much i thought!). When i analyse it i see that the main container is a PopUp control. So i make my own control composed by a toggleButton and a Popup control. <ToggleButton Style="{DynamicResource bt}" x:Name="bt1" Content="{Binding ElementName=ElementRoot,Path=Titre}" Cursor="Hand"/> <Popup IsOpen="{Binding ElementName=bt1,Path=IsChecked}" PlacementTarget="{Binding ElementName=bt1}" AllowsTransparency="True" Width="{Binding ElementName=bt1,Path=ActualWidth}" x:Name="popUp" > <Border BorderBrush="Gray" BorderThickness="1"> <StackPanel Background="#E0F0F0F0"> <Label Style="{DynamicResource clsMenu}">Menu 1</Label> <Label Style="{DynamicResource clsMenu}">Menu 2</Label> <Label Style="{DynamicResource clsMenu}">Menu 3</Label> <Label Style="{DynamicResource clsMenu}">Menu 4</Label> </StackPanel> </Border> </Popup> Now i have an other pb : How could i make Popup fade-in / fade-out animation (Opacity DoubleAnimation) when i Open/ Close this one ? Cheers , Phil "Shalini Aggarwal [MSFT]" wrote: > Hi Phil, > > You will have to create a new template for MenuItem to change these > behaviors. As far as I know, theme style files have not been made available, > so it may be a challenge to recreate all the functionality of this control. > > -Shalini > > ---------- > "Phil" wrote: > > > Hi all ! > > > > i would like to make my menu item's background transparent, just the > > background not the content and would like to clear the shadow under the menu > > item. > > > > Any idea ? > > > > Thx 4 help ! > > -- > > Phil |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| How can I change a GIF image background to transparent? | General Discussion | |||
| Sidebar transparent background? | Vista General | |||
| Could it be more transparent ? | Vista General | |||
| transparent | Vista performance & maintenance | |||