locked
Getting At The Style For The Acropolis Shell RRS feed

  • Question

  •  

    Hi:

     

    I noticed this little snip of XAML in my main window / shell file. 

     

    Style="{DynamicResource {x:Type Awx:Shell}}"

     

     

    I would like to take a peek at this style, can someone help me with how to find it.  I ultimately may want to replace it but I would like to see what is in this style.  Just curious mostly.

     

    thanks

    mark

     

    Wednesday, September 5, 2007 8:10 PM

Answers

  • Hi Mark,

     

    There is over 2500+ lines of XAML in the Acropolis theme file. Please note that we also have a lot of brushes and icons drawn in WPF directly. I hope this helps!

     

    The code snippet below is provided under the Microsoft Permissive Liceanse:

    ///////////////////////////////////////////////////////////////////////////////

    //

    // Copyright (C) 2007 Microsoft Corporation. All rights reserved.

    //

    // THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY

    // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE

    // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A

    // PARTICULAR PURPOSE.

    ///////////////////////////////////////////////////////////////////////////////

     

    <ControlTemplate TargetType="{x:Type acrowin:Shell}" x:Name="Window">

    <Border BorderBrush="{TemplateBinding BorderBrush}"

    BorderThickness="{TemplateBinding BorderThickness}"

    Background="{StaticResource Beige-MenuBarFill}">

    <Grid Background="{TemplateBinding Background}" Margin="2">

    <Grid Margin="2">

    <Grid.Background>

    <VisualBrush TileMode="Tile" Viewport="0,0,11,16" ViewportUnits="Absolute">

    <VisualBrush.Visual>

    <Canvas Width="11" Height="16" Background="Transparent">

    <Rectangle Canvas.Top="0" Canvas.Left="0" Width="2" Height="2" Fill="{StaticResource WindowDimpleEffectTop}"/>

    <Rectangle Canvas.Top="1" Canvas.Left="1" Width="2" Height="2" Fill="{StaticResource WindowDimpleEffectBottom}"/>

    <Rectangle Canvas.Top="1" Canvas.Left="1" Width="1" Height="1" Fill="{StaticResource WindowDimpleEffectOverlap}"/>

    <Rectangle Canvas.Top="8" Canvas.Left="5" Width="2" Height="2" Fill="{StaticResource WindowDimpleEffectTop}"/>

    <Rectangle Canvas.Top="9" Canvas.Left="6" Width="2" Height="2" Fill="{StaticResource WindowDimpleEffectBottom}"/>

    <Rectangle Canvas.Top="9" Canvas.Left="6" Width="1" Height="1" Fill="{StaticResource WindowDimpleEffectOverlap}"/>

    </Canvas>

    </VisualBrush.Visual>

    </VisualBrush>

    </Grid.Background>

    </Grid>

    <AdornerDecorator Grid.Row="1">

    <ContentPresenter/>

    </AdornerDecorator>

    </Grid>

    </Border>

    </ControlTemplate>

     

    Thanks,

    Kathy Kam

    Program Manager

    Microsoft

    Wednesday, October 3, 2007 9:39 PM