DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> XML學習教程 >> XML詳解 >> 用XAML做網頁!!—導航欄(下)
用XAML做網頁!!—導航欄(下)
編輯:XML詳解     

因篇幅過長,分為兩次發布,請諒解.

  接上頁

妙趣輕松,讓好心情隨郵件散播世界!
            </Label>
          </Canvas>
        </DockPanel>
        <Borderx:Name="HeadLine"BorderThickness="0,1"DockPanel.Dock="Top"Height="15">
          <Border.BorderBrush>
            <LinearGradIEntBrushStartPoint="0,0"EndPoint="0,1">
              <GradIEntStopColor="#D81B1B1B"Offset="0"/>
              <GradIEntStopColor="#FFF"Offset="1"/>
            </LinearGradIEntBrush>
          </Border.BorderBrush>
          <Border.Background>
            <LinearGradIEntBrushStartPoint="0,0"EndPoint="1,0">
              <GradIEntStopColor="#FF9D9D9D"Offset="0"/>
              <GradIEntStopColor="#FF808080"Offset="0.005"/>
              <GradIEntStopColor="#FF9D9D9D"Offset="0.05"/>
              <GradIEntStopColor="#FF9D9D9D"Offset="0.95"/>
              <GradIEntStopColor="#FF808080"Offset="0.995"/>
              <GradIEntStopColor="#FF9D9D9D"Offset="1"/>
            </LinearGradIEntBrush>
          </Border.Background>
        </Border>
        <Gridx:Name="Show"DockPanel.Dock="Top"Height="135"ClipToBounds="True">
          <Grid.Background>
            <LinearGradIEntBrushStartPoint="0,0"EndPoint="0,1">
              <GradIEntStopColor="#FFE2C7BC"Offset="1"/>
              <GradIEntStopColor="#FFD0D0D0"Offset="0.7"/>
              <GradIEntStopColor="#FFF5F5F5"Offset="0"/>
            </LinearGradIEntBrush>
          </Grid.Background>
          <Grid.ColumnDefinitions>
            <ColumnDefinitionWidth="28"/>
            <ColumnDefinitionWidth="5*"/>
            <ColumnDefinitionWidth="4*"/>
            <ColumnDefinitionWidth="28"/>
          </Grid.ColumnDefinitions>
          <Grid.RowDefinitions>
            <RowDefinitionHeight="2*"/>
            <RowDefinitionHeight="3*"/>
            <RowDefinitionHeight="4*"/>
          </Grid.RowDefinitions>
          <RectangleOpacity="0.5"Fill="{StaticResourceShadowLeft}"Grid.Column="0"Grid.RowSpan="3"/>
          <RectangleOpacity="0.5"Fill="{StaticResourceShadowRight}"Grid.Column="3"Grid.RowSpan="3"/>
          <EllipseMargin="80,1,0,0"Height="164"Width="164"Grid.Column="1"Grid.ColumnSpan="2"Grid.RowSpan="3"Fill="#49EEEEEE"HorizontalAlignment="Left"VerticalAlignment="Top">
            <Ellipse.Triggers>
              <EventTriggerRoutedEvent="FrameworkElement.Loaded">
                <EventTrigger.Actions>
                  <BeginStoryboard>
                    <Storyboard>
                      <ColorAnimationUsingKeyFramesDuration="0:0:1.8"RepeatBehavior="Forever"Storyboard.TargetProperty="(Ellipse.Fill).(SolidColorBrush.Color)">
                        <DiscreteColorKeyFrameKeyTime="0:0:1.7"Value="#5FFF"/>
                      </ColorAnimationUsingKeyFrames>
                    </Storyboard>
                  </BeginStoryboard>
                </EventTrigger.Actions>
              </EventTrigger>
            </Ellipse.Triggers>
          </Ellipse>
          <EllipseMargin="310,-111,0,0"Height="224"Width="224"Grid.Column="1"Grid.ColumnSpan="2"Grid.RowSpan="3"Fill="#49EEEEEE"HorizontalAlignment="Left"VerticalAlignment="Top">
            <Ellipse.Triggers>
              <EventTriggerRoutedEvent="FrameworkElement.Loaded">
                <EventTrigger.Actions>
                  <BeginStoryboard>
                    <Storyboard>
                      <ColorAnimationUsingKeyFramesDuration="0:0:1.5"RepeatBehavior="Forever"Storyboard.TargetProperty="(Ellipse.Fill).(SolidColorBrush.Color)">
                        <DiscreteColorKeyFrameKeyTime="0:0:1.1"Value="#5FFF"/>
                      </ColorAnimationUsingKeyFrames>
                    </Storyboard>
                  </BeginStoryboard>
                </EventTrigger.Actions>
              </EventTrigger>
            </Ellipse.Triggers>
          </Ellipse>
          <EllipseMargin="0,41,560,0"Height="77"Width="77"Grid.Column="1"Grid.ColumnSpan="2"Grid.RowSpan="3"Fill="#49EEEEEE"HorizontalAlignment="Right"VerticalAlignment="Top">
            <Ellipse.Triggers>
              <EventTriggerRoutedEvent="FrameworkElement.Loaded">
                <EventTrigger.Actions>
                  <BeginStoryboard>
                    <Storyboard>
                      <ColorAnimationUsingKeyFramesDuration="0:0:1"RepeatBehavior="Forever"Storyboard.TargetProperty="(Ellipse.Fill).(SolidColorBrush.Color)">
                        <DiscreteColorKeyFrameKeyTime="0:0:0.7"Value="#5FFF"/>
                      </ColorAnimationUsingKeyFrames>
                    </Storyboard>
                  </BeginStoryboard>
                </EventTrigger.Actions>
              </EventTrigger>
            </Ellipse.Triggers>
          </Ellipse>
          <EllipseMargin="0,-41,10,0"Height="264"Width="264"Grid.Column="1"Grid.ColumnSpan="2"Grid.RowSpan="3"Fill="#49EEEEEE"HorizontalAlignment="Right"VerticalAlignment="Top">
            <Ellipse.Triggers>
              <EventTriggerRoutedEvent="FrameworkElement.Loaded">
                <EventTrigger.Actions>
                  <BeginStoryboard>
                    <Storyboard>
                      <ColorAnimationUsingKeyFramesDuration="0:0:2"RepeatBehavior="Forever"Storyboard.TargetProperty="(Ellipse.Fill).(SolidColorBrush.Color)">
                        <DiscreteColorKeyFrameKeyTime="0:0:1.8"Value="#5FFF"/>
                      </ColorAnimationUsingKeyFrames>
                    </Storyboard>
                  </BeginStoryboard>
                </EventTrigger.Actions>
              </EventTrigger>
            </Ellipse.Triggers>
          </Ellipse>
          <TextBlockMargin="45,0,0,0"FontWeight="Bold"Grid.Column="1"Grid.Row="1"Grid.RowSpan="2">
           <RunForeground="#FFBCBCBC"FontSize="16">擺脫臃腫的郵件客戶端和繁復的網頁登陸</Run>
           <LineBreak/>
           <RunForeground="#FF9A9A9A"FontSize="32">發郵件是可以如此輕松暢快!</Run>
          </TextBlock>
          <TextBlockMargin="15,0,0,0"Grid.Column="2"Grid.Row="2"Grid.RowSpan="2">
            <HyperlinkToolTip="打開下載頁面"TargetName="_blank"NavigateUri="http://www.cnblogs.com/SkyD/articles/1264080.Html"FontSize="25"FontWeight="Bold"Foreground="#D0FFFFFF">
              <Hyperlink.Style>
                <StyleTargetType="Hyperlink">
                  <SetterProperty="TextBlock.TextDecorations"Value="{x:Null}"/>
                </Style>
              </Hyperlink.Style>
              <Run>立即嘗試</Run><RectangleVerticalAlignment="Center"Margin="5,0,0,0"Fill="{StaticResourcego}"Height="20"Width="25"/>
            </Hyperlink>
          </TextBlock>
        </Grid>
        <Borderx:Name="Channel"DockPanel.Dock="Top"Height="50"Background="{StaticResourcebarback}"BorderThickness="0,1,0,0"BorderBrush="#FFF">
          <Grid>
            <Grid.ColumnDefinitions>
              <ColumnDefinitionWidth="28"/>
              <ColumnDefinitionWidth="Auto"/>
              <ColumnDefinitionWidth="Auto"/>
              <ColumnDefinitionWidth="Auto"/>
              <ColumnDefinitionWidth="Auto"/>
              <ColumnDefinitionWidth="Auto"/>
              <ColumnDefinitionWidth="Auto"/>
              <ColumnDefinitionWidth="Auto"/>
              <ColumnDefinitionWidth="*"/>
              <ColumnDefinitionWidth="28"/>
            </Grid.ColumnDefinitions>
            <Grid.Background>
              <LinearGradIEntBrushEndPoint="0.5,1"StartPoint="0.5,0">
                <GradIEntStopColor="#26000000"Offset="0.95"/>
                <GradIEntStopColor="#00000000"Offset="0.8"/>
                <GradIEntStopColor="#00000000"Offset="0.2"/>
                <GradIEntStopColor="#26000000"Offset="0"/>
              </LinearGradIEntBrush>
            </Grid.Background>
            <Grid.Resources>
              <StyleTargetType="RadioButton">
                <SetterProperty="VerticalAlignment"Value="Bottom"/>
                <SetterProperty="Cursor"Value="Hand"/>
                <SetterProperty="Foreground"Value="#CFFF"/>
                <SetterProperty="FontSize"Value="16"/>
                <SetterProperty="Margin"Value="0,0,8,0"/>
                <SetterProperty="Template">
                  <Setter.Value>
                    <ControlTemplateTargetType="RadioButton">
                      <Borderx:Name="tag"Margin="0,0,0,1"BorderThickness="1,1,1,0"CornerRadius="3,3,0,0"Padding="18,4,18,3">
                        <Border.BorderBrush>
                          <LinearGradIEntBrushStartPoint="0,0"EndPoint="0,1">
                            <GradIEntStopColor="#FFEF7300"Offset="0"/>
                            <GradIEntStopColor="#FFC55300"Offset="0.2"/>
                          </LinearGradIEntBrush>
                        </Border.BorderBrush>
                        <Border.Background>
                          <LinearGradIEntBrushEndPoint="0.5,1"StartPoint="0.5,0">
                            <GradIEntStopColor="#FFD04B00"Offset="1"/>
                            <GradIEntStopColor="#FFFF7816"Offset="0.5"/>
                            <GradIEntStopColor="#FFF26802"Offset="0.5"/>
                            <GradIEntStopColor="#FFFF9D56"Offset="0"/>
                          </LinearGradIEntBrush>
                        </Border.Background>
                        <TextBlockText="{TemplateBindingContent}"/>
            </Border>
                      <ControlTemplate.Triggers>
                        <TriggerProperty="IsChecked"Value="True">
                          <SetterProperty="Foreground"Value="#B84901"/>
                          <SetterTargetName="tag"Property="Margin"Value="0"/>
                          <SetterTargetName="tag"Property="Padding"Value="18,4"/>
                          <SetterTargetName="tag"Property="Background">
                            <Setter.Value>
                              <LinearGradIEntBrushEndPoint="0.5,1"StartPoint="0.5,0">
                                <GradIEntStopColor="#FFF1D1"Offset="1"/>
                                <GradIEntStopColor="#FFF7E5"Offset="0.5"/>
                                <GradIEntStopColor="#FFF1D0"Offset="0.5"/>
                                <GradIEntStopColor="#FFF9EA"Offset="0"/>
                              </LinearGradIEntBrush>
                            </Setter.Value>
                          </Setter>
                          <SetterTargetName="tag"Property="BorderBrush"Value="#FFFBF0"/>
                        </Trigger>
                      </ControlTemplate.Triggers>
                    </ControlTemplate>
                  </Setter.Value>
                </Setter>
              </Style>
            </Grid.Resources>
            <PathVerticalAlignment="Bottom"Grid.ColumnSpan="10"Height="1"Stretch="Fill"StrokeLineJoin="Round"Stroke="#FFFFFFFF"Data="F1M52,307L252.003,307"/>
            <RectangleOpacity="0.7"Grid.Column="0"Width="28"Fill="{StaticResourceShadowLeft}"/>
            <RectangleOpacity="0.7"Grid.Column="9"Width="28"Fill="{StaticResourceShadowRight}"/>
            <RadioButtonIsChecked="True"VerticalAlignment="Bottom"Grid.Column="1">簡介</RadioButton>
            <RadioButtonVerticalAlignment="Bottom"Grid.Column="2">使用指南</RadioButton>
            <RadioButtonVerticalAlignment="Bottom"Grid.Column="3">更新及下載</RadioButton>
            <RadioButtonVerticalAlignment="Bottom"Grid.Column="4">注冊</RadioButton>
            <RadioButtonVerticalAlignment="Bottom"Grid.Column="5">廣告投放</RadioButton>
            <RadioButtonVerticalAlignment="Bottom"Grid.Column="6">海外推廣合作</RadioButton>
            <RadioButtonVerticalAlignment="Bottom"Grid.Column="7">關於</RadioButton>
          </Grid>
        </Border>
        <Borderx:Name="Footer"Background="#666"BorderBrush="#888"BorderThickness="0,4,0,0"DockPanel.Dock="Bottom"Height="55"></Border>
        <DockPanelx:Name="Body"Background="#FFFFFCD1">
          <DockPanelx:Name="Side"Background="#1E874900"DockPanel.Dock="Right"Width="245"></DockPanel>
          <StackPanelx:Name="Content"></StackPanel>
        </DockPanel>
      </DockPanel>
    </Grid>
  </ScrollVIEwer>
</Page>


XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved