Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - MenuItem's transparent background

 
 
Old 05-30-2006   #1 (permalink)
Phil


 
 

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 SpecsSystem Spec
Old 05-30-2006   #2 (permalink)
Shalini Aggarwal [MSFT]


 
 

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 SpecsSystem Spec
Old 05-31-2006   #3 (permalink)
Phil


 
 

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 SpecsSystem Spec
 

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46