Results 1 to 6 of 6

Thread: x:Light Version 2

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2008
    Location
    Rep of Ireland
    Posts
    1,380

    x:Light Version 2

    Xaml:
    Code:
    <UserControl  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"  
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"  
      mc:Ignorable="d"  
      x:Class="CustomProgBar"  
      x:Name="UserControl" Width="370" Height="55" ClipToBounds="True">
      <UserControl.Resources>  
    	<Storyboard x:Key="ProgressAnimationSB"     RepeatBehavior="Forever">  
    		<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowLayer" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">  
    		       <SplineDoubleKeyFrame KeyTime="00:00:00" Value="-395"/> 
    		       <SplineDoubleKeyFrame KeyTime="00:00:02" Value="401"/>  
    		</DoubleAnimationUsingKeyFrames>  
    	</Storyboard>  
      </UserControl.Resources>  
      
      <UserControl.Triggers>  
    	<EventTrigger RoutedEvent="FrameworkElement.Loaded">  
    		<BeginStoryboard Storyboard="{StaticResource ProgressAnimationSB}"/>  
    	</EventTrigger>  
      </UserControl.Triggers>  
    
      <Border Width="Auto" Height="Auto" ClipToBounds="True" BorderBrush="#FF000000" BorderThickness="1,1,1,1" CornerRadius="2,2,2,2">  
    	<Border.Background>  
    		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">  
    			<GradientStop Color="#FFFFFBFB" Offset="0"/>  
    			<GradientStop Color="#FFC1C1C1" Offset="1"/>  
    		</LinearGradientBrush>  </Border.Background>  
    		
    		<Rectangle Stroke="{x:Null}" RenderTransformOrigin="0.5,0.5" x:Name="GlowLayer" RadiusX="0" Margin="0,-17,0,0" ClipToBounds="True" Opacity="1" StrokeThickness="1" IsEnabled="True">  
    			<Rectangle.RenderTransform>  
    				<TransformGroup>  
    					<ScaleTransform ScaleX="1" ScaleY="1"/>  
    					<SkewTransform AngleX="0" AngleY="0"/>  
    					<RotateTransform Angle="0"/>  
    					<TranslateTransform X="0" Y="0"/>  
    				</TransformGroup>  
    			</Rectangle.RenderTransform>  
    
    		<Rectangle.Fill>  
    			<RadialGradientBrush GradientOrigin="0.503,0.563">  
    				<RadialGradientBrush.RelativeTransform>  
    					<TransformGroup>  
    						<ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="1" ScaleY="1.695"/> 
    						<SkewTransform AngleX="0" AngleY="0" CenterX="0.5" CenterY="0.5"/>  
    						<RotateTransform Angle="0" CenterX="0.5" CenterY="0.5"/>  
    						<TranslateTransform X="-0.001" Y="0.483"/>  
    					</TransformGroup>  
    				</RadialGradientBrush.RelativeTransform>  
    
    				<GradientStop Color="#FF01CC0F" Offset="0"/>  
    				<GradientStop Color="#00E2E2E2" Offset="0.996"/>  
    			</RadialGradientBrush>  
    		</Rectangle.Fill>  
    	</Rectangle>  
      </Border> 
    </UserControl>

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2008
    Location
    Rep of Ireland
    Posts
    1,380

    Re: x:Light Version 2

    XML:
    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    <Store>
      <SubRules>
        
        <SubRule SourceType="XAML" OutputType="BBCODE">
          <Name>Get Tags</Name>
          <Expression>(&lt;/|&lt;|&gt;|/&gt;)</Expression>
          <IsMatchExpression>(&lt;/|&lt;|&gt;|/&gt;)</IsMatchExpression>
          <OpeningElement>[COLOR="Blue"]</OpeningElement>
          <ClosingElement>[/COLOR]</ClosingElement>
        </SubRule>
    
        <SubRule SourceType="XAML" OutputType="BBCODE">
          <Name>Get Property Values</Name>
          <Expression>(=&quot;[()\[\]\-\w#,. =:/{}]+&quot;)</Expression>
          <IsMatchExpression>(=&quot;[()\[\]\-\w#,. =:/{}]+&quot;)</IsMatchExpression>
          <OpeningElement>[COLOR="RoyalBlue"]</OpeningElement>
          <ClosingElement>[/COLOR]</ClosingElement>
        </SubRule>
    
        <SubRule SourceType="XAML" OutputType="BBCODE">
          <Name>Get Property Names</Name>
          <Expression>( [\w:.]+(?=\=&quot;))</Expression>
          <IsMatchExpression>( [\.\w:]+)</IsMatchExpression>
          <OpeningElement>[COLOR="Red"]</OpeningElement>
          <ClosingElement>[/COLOR]</ClosingElement>
        </SubRule>
    
        <SubRule SourceType="XAML" OutputType="BBCODE">
          <Name>Get Object Names</Name>
          <Expression>((?&lt;=&lt;/|&lt;)[\w:.]+)</Expression>
          <IsMatchExpression>(^[A-Za-z]+)</IsMatchExpression>
          <OpeningElement>[COLOR="DarkRed"]</OpeningElement>
          <ClosingElement>[/COLOR]</ClosingElement>
        </SubRule>
        
      </SubRules>
    
      <FormatBoxes>
        
      </FormatBoxes>
    </Store>

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2008
    Location
    Rep of Ireland
    Posts
    1,380

    Re: x:Light Version 2

    HTML:

    Code:
    <html>
    <body>
    
    <p>
    This paragraph
    contains a lot of lines
    in the source code,
    but the browser 
    ignores it.
    </p>
    
    <p>
    This paragraph
    contains      a lot of spaces
    in the source     code,
    but the    browser 
    ignores it.
    </p>
    
    <p>
    The number of lines in a paragraph depends on the size of your browser window. If you resize the browser window, the number of lines in this paragraph will change.
    </p>
    
    </body>
    </html>

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2008
    Location
    Rep of Ireland
    Posts
    1,380

    Re: x:Light Version 2

    RSS:

    Code:
    <?xml version="1.0" encoding="UTF-8" ?>
    <rss version="2.0">
    
    <channel>
    <title>RSS Example</title>
    <description>This is an example of an RSS feed</description>
    <link>http://www.domain.com/link.htm</link>
    <lastBuildDate>Mon, 28 Aug 2006 11:12:55 -0400 </lastBuildDate>
    <pubDate>Tue, 29 Aug 2006 09:00:00 -0400</pubDate>
    
    <item>
    <title>Item Example</title>
    <description>This is an example of an Item</description>
    <link>http://www.domain.com/link.htm</link>
    <guid isPermaLink="false"> 1102345</guid>
    <pubDate>Tue, 29 Aug 2006 09:00:00 -0400</pubDate>
    </item>
    
    </channel>
    </rss>

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2008
    Location
    Rep of Ireland
    Posts
    1,380

    Re: x:Light Version 2

    Nice!

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2008
    Location
    Rep of Ireland
    Posts
    1,380

    Re: x:Light Version 2

    Checking difference in database placement:

    Code:
    <UserControl  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"  
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"  
      mc:Ignorable="d"  
      x:Class="CustomProgBar"  
      x:Name="UserControl" Width="370" Height="55" ClipToBounds="True">
      <UserControl.Resources>  
    	<Storyboard x:Key="ProgressAnimationSB"     RepeatBehavior="Forever">  
    		<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowLayer" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">  
    		       <SplineDoubleKeyFrame KeyTime="00:00:00" Value="-395"/> 
    		       <SplineDoubleKeyFrame KeyTime="00:00:02" Value="401"/>  
    		</DoubleAnimationUsingKeyFrames>  
    	</Storyboard>  
      </UserControl.Resources>  
      
      <UserControl.Triggers>  
    	<EventTrigger RoutedEvent="FrameworkElement.Loaded">  
    		<BeginStoryboard Storyboard="{StaticResource ProgressAnimationSB}"/>  
    	</EventTrigger>  
      </UserControl.Triggers>  
    
      <Border Width="Auto" Height="Auto" ClipToBounds="True" BorderBrush="#FF000000" BorderThickness="1,1,1,1" CornerRadius="2,2,2,2">  
    	<Border.Background>  
    		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">  
    			<GradientStop Color="#FFFFFBFB" Offset="0"/>  
    			<GradientStop Color="#FFC1C1C1" Offset="1"/>  
    		</LinearGradientBrush>  </Border.Background>  
    		
    		<Rectangle Stroke="{x:Null}" RenderTransformOrigin="0.5,0.5" x:Name="GlowLayer" RadiusX="0" Margin="0,-17,0,0" ClipToBounds="True" Opacity="1" StrokeThickness="1" IsEnabled="True">  
    			<Rectangle.RenderTransform>  
    				<TransformGroup>  
    					<ScaleTransform ScaleX="1" ScaleY="1"/>  
    					<SkewTransform AngleX="0" AngleY="0"/>  
    					<RotateTransform Angle="0"/>  
    					<TranslateTransform X="0" Y="0"/>  
    				</TransformGroup>  
    			</Rectangle.RenderTransform>  
    
    		<Rectangle.Fill>  
    			<RadialGradientBrush GradientOrigin="0.503,0.563">  
    				<RadialGradientBrush.RelativeTransform>  
    					<TransformGroup>  
    						<ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="1" ScaleY="1.695"/> 
    						<SkewTransform AngleX="0" AngleY="0" CenterX="0.5" CenterY="0.5"/>  
    						<RotateTransform Angle="0" CenterX="0.5" CenterY="0.5"/>  
    						<TranslateTransform X="-0.001" Y="0.483"/>  
    					</TransformGroup>  
    				</RadialGradientBrush.RelativeTransform>  
    
    				<GradientStop Color="#FF01CC0F" Offset="0"/>  
    				<GradientStop Color="#00E2E2E2" Offset="0.996"/>  
    			</RadialGradientBrush>  
    		</Rectangle.Fill>  
    	</Rectangle>  
      </Border> 
    </UserControl>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width