PageRenderTime 24ms CodeModel.GetById 20ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/IronPython_Main/Languages/Ruby/Samples/Tutorial/app/design/TutorialSL/MainPage.xaml

#
XAML | 149 lines | 124 code | 4 blank | 21 comment | 0 complexity | 3bef30bc40d5a48a9486a97b9644af5d MD5 | raw file
  1<UserControl
  2	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6    mc:Ignorable="d"
  7	xmlns:local="clr-namespace:TutorialSL"
  8	xmlns:control="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
  9	xmlns:syswin="clr-namespace:System.Windows;assembly=System.Windows.Controls"
 10
 11	x:Class="TutorialSL.MainPage" Width="Auto" d:DesignWidth="604.333" d:DesignHeight="513.333">
 12	<UserControl.Resources>
 13		<Storyboard x:Key="tutorial_nav_OnMouseEnter" AutoReverse="False">
 14			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="tutorial_nav" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
 15				<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0" KeySpline="0.5,0,0.5,1"/>
 16			</DoubleAnimationUsingKeyFrames>
 17		</Storyboard>
 18		<Storyboard x:Key="tutorial_nav_OnMouseLeave">
 19			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="tutorial_nav" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
 20				<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="275" KeySpline="0.5,0,0.5,1"/>
 21			</DoubleAnimationUsingKeyFrames>
 22		</Storyboard>
 23		<Storyboard x:Key="action_MouseEnter">
 24			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="action" Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)">
 25				<SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="#FFE5E5E5" KeySpline="0.5,0,0.5,1"/>
 26			</ColorAnimationUsingKeyFrames>
 27			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="action" Storyboard.TargetProperty="(TextElement.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
 28				<SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="#FF424242" KeySpline="0.5,0,0.5,1"/>
 29			</ColorAnimationUsingKeyFrames>
 30			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="action" Storyboard.TargetProperty="(TextElement.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
 31				<SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="#FF5F5F5F" KeySpline="0.5,0,0.5,1"/>
 32			</ColorAnimationUsingKeyFrames>
 33		</Storyboard>
 34		<Storyboard x:Key="action_MouseLeave">
 35			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="action" Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)">
 36				<SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="#FFC1C1C1" KeySpline="0.5,0,0.5,1"/>
 37			</ColorAnimationUsingKeyFrames>
 38			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="action" Storyboard.TargetProperty="(TextElement.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
 39				<SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="#FF424242" KeySpline="0.5,0,0.5,1"/>
 40			</ColorAnimationUsingKeyFrames>
 41		</Storyboard>
 42		<Storyboard x:Key="header_navigation_MouseEnter">
 43			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="header_navigation" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
 44				<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0" KeySpline="0.5,0,0.5,1"/>
 45			</DoubleAnimationUsingKeyFrames>
 46		</Storyboard>
 47		<Storyboard x:Key="header_navigation_MouseLeave">
 48			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="header_navigation" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
 49				<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="-18" KeySpline="0.5,0,0.5,1"/>
 50			</DoubleAnimationUsingKeyFrames>
 51		</Storyboard>
 52	</UserControl.Resources>
 53
 54	<Grid x:Name="LayoutRoot" Margin="0">
 55		<Grid x:Name="loading" Background="#BF545454" Visibility="Collapsed">
 56			<Border BorderBrush="#FF484848" BorderThickness="10" Margin="150" CornerRadius="10" Background="White">
 57				<Border.Effect>
 58					<DropShadowEffect BlurRadius="37" Direction="180"/>
 59				</Border.Effect>
 60				<TextBlock FontSize="48" Text="Loading ..." TextWrapping="Wrap" Margin="0" VerticalAlignment="Center" HorizontalAlignment="Center"/>
 61			</Border>
 62		</Grid>
 63		<Grid x:Name="Page">
 64			<Border x:Name="header" BorderBrush="Black" BorderThickness="0" Padding="8,10,8,20" Margin="0" VerticalAlignment="Top" Canvas.ZIndex="10">
 65				<Border.Background>
 66					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
 67						<GradientStop Color="#55000000" Offset="0.777"/>
 68						<GradientStop Offset="1"/>
 69						<GradientStop Color="#FFEFEFEF" Offset="0.773"/>
 70					</LinearGradientBrush>
 71				</Border.Background>
 72				<TextBlock x:Name="header_name" HorizontalAlignment="Left" FontSize="32" Text="Pick a tutorial" TextWrapping="Wrap" Margin="0,0,0,-8" FontFamily="Segoe UI"/>
 73			</Border>
 74			<Border x:Name="header_navigation" VerticalAlignment="Top" BorderBrush="#FF424242" BorderThickness="1" Margin="5,0" d:LayoutOverrides="Width" Background="#FF424242" CornerRadius="0,0,10,10" RenderTransformOrigin="0.5,0.5" Canvas.ZIndex="100" Visibility="Collapsed">
 75				<Border.RenderTransform>
 76					<TransformGroup>
 77						<ScaleTransform/>
 78						<SkewTransform/>
 79						<RotateTransform/>
 80						<TranslateTransform Y="-18"/>
 81					</TransformGroup>
 82				</Border.RenderTransform>
 83				<StackPanel Background="{x:Null}" Orientation="Horizontal" Margin="0" VerticalAlignment="Top" >
 84					<TextBlock x:Name="action" Cursor="Hand" Margin="10,0,5,0" Foreground="#FFC1C1C1" Padding="5,3" Text="&lt; back" TextWrapping="Wrap" FontFamily="Segoe UI" FontSize="10.667"/>
 85				</StackPanel>
 86			</Border>
 87			<Grid x:Name="body" Margin="0,50,0,25" Background="White">
 88				<ScrollViewer x:Name="tutorial_scroll" Margin="0,0,25,0" Padding="0" VerticalScrollBarVisibility="Auto">
 89					<local:TutorialPage Margin="0" Background="{x:Null}" Padding="0"/>
 90				</ScrollViewer>
 91				<ScrollViewer x:Name="main_scroll" Margin="0" Padding="8,0,8,16" VerticalScrollBarVisibility="Auto" Visibility="Collapsed">
 92					<StackPanel x:Name="main" VerticalAlignment="Top" Background="White" Margin="0,15,0,0">
 93						<local:TutorialControl Margin="0"/>
 94						<local:TutorialControl Margin="0"/>
 95					</StackPanel>
 96				</ScrollViewer>
 97			</Grid>
 98			<Border x:Name="tutorial_nav" HorizontalAlignment="Right" Width="300" Background="White" BorderBrush="#FF7B7B7B" BorderThickness="5,2,0,2" CornerRadius="10,0,0,10" Padding="2,2,0,2" Margin="0,30,0,10" RenderTransformOrigin="0.5,0.5" Canvas.ZIndex="20" Visibility="Collapsed">
 99				<Border.Resources>
100					<!-- Chapter TEMPLATE -->
101					<!--<DataTemplate x:Key="ChapterTemplate">
102						<TextBlock Text="{Binding name}" />
103					</DataTemplate>-->
104
105					<!-- Section TEMPLATE -->
106					<!--<syswin:HierarchicalDataTemplate 
107						x:Key="SectionTemplate"
108						ItemsSource="{Binding chapters}"
109						ItemTemplate="{StaticResource ChapterTemplate}"
110          >
111						<TextBlock Text="{Binding name}" />
112					</syswin:HierarchicalDataTemplate>-->
113				</Border.Resources>
114				<Border.RenderTransform>
115					<TransformGroup>
116						<ScaleTransform/>
117						<SkewTransform/>
118						<RotateTransform/>
119						<TranslateTransform X="275"/>
120					</TransformGroup>
121				</Border.RenderTransform>
122				<Grid>
123					<TextBlock Margin="0" Width="130" Height="18" RenderTransformOrigin="0.5,0.5" Text="Jump to another section" HorizontalAlignment="Left" VerticalAlignment="Center" FontFamily="Segoe UI" FontSize="12" >
124						<TextBlock.RenderTransform>
125							<TransformGroup>
126								<ScaleTransform/>
127								<SkewTransform/>
128								<RotateTransform Angle="-90"/>
129								<TranslateTransform X="-58"/>
130							</TransformGroup>
131						</TextBlock.RenderTransform>
132					</TextBlock>
133					<control:TreeView x:Name="chapters" BorderBrush="{x:Null}" FontSize="13.333" Margin="20,0,0,0" RenderTransformOrigin="0.5,0.5" Padding="0" BorderThickness="0" d:LayoutOverrides="Width" Background="{x:Null}" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" MaxWidth="293" FontFamily="Segoe UI">
134					</control:TreeView>
135				</Grid>
136
137				<!--<ListView Margin="0" Background="White" BorderBrush="White" BorderThickness="0" IsSynchronizedWithCurrentItem="True" FontSize="16">
138				<ListView.View>
139					<GridView>
140						<GridViewColumn/>
141					</GridView>
142				</ListView.View>
143				<ListViewItem Margin="0" Content="Chapter 1"/>
144				<ListViewItem Margin="0" Content="Chapter 2"/>
145			</ListView>-->
146			</Border>
147		</Grid>
148	</Grid>
149</UserControl>