Results 1 to 19 of 19

Thread: test

  1. #1

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

    test

    A lora lora bugs gotten!

    Code:
    <Window x:Class="Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Window1" Height="300" Width="300">
        <Grid>
            <RichTextBox Height="79" Name="RichTextBox1" Width="278" IsDocumentEnabled="False" VerticalAlignment="Top" />
            <Button HorizontalAlignment="Right" Margin="0,85,0,0" Name="Button1" Width="75" Height="23" VerticalAlignment="Top">Button</Button>
            <TextBox Margin="0,126,0,61" Name="TextBox1" />
            <Button Height="23" HorizontalAlignment="Right" Margin="0,0,0,12" Name="Button2" VerticalAlignment="Bottom" Width="75">Button</Button>
        </Grid>
    </Window>
    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> Key="{xtatic SystemColors.HighlightBrushKey}"
    x:Key="{xstatic SystemColors.HighlightBrushKey}"
    <VisualBrush Visual="{Binding ElementName=ImageContainer}" />

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: test

    Code:
    <Page xmlns="http://schemas.microsoft.com/winfx/avalon/2005" xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005"> <DockPanel> <Border Background="SkyBlue" BorderBrush="Black" BorderThickness="1" DockPanel.Dock="Top"> <Menu Background="SkyBlue"> <MenuItem Header="Language" > <MenuItem Header="English" Name="english" /> <MenuItem Header="German" Name="german" /> <MenuItem Header="Italian" Name="italian"/>    <Border Height="25" Background="SkyBlue" BorderBrush="Black" BorderThickness="1" DockPanel.Dock="Top">  <Border Height="25" Background="#ffff99" BorderBrush="Black" BorderThickness="1" DockPanel.Dock="Bottom"> <TextBlock Foreground="black">Dock = "Bottom"   <Border Width="200" Background="PaleGreen" BorderBrush="Black" BorderThickness="1" DockPanel.Dock="Left"> <TextBlock Foreground="black">Dock = "Left"   <Border Background="White" BorderBrush="Black" BorderThickness="1"> <TextFlow Background="LightSkyBlue" Foreground="Black" FontFamily="Palatino Linotype" FontSize="14" FontWeight="Normal" TextAlignment="Left" TextWrap="Wrap"> <Paragraph> <LineBreak/>     <Page.Resources> <Style TargetType="{x:Type MenuItem}" x:Key="{x:Type MenuItem}" > <Setter Property="HeaderTemplate"> <Setter.Value> <DataTemplate DataType="{x:Type MenuItem}" > <Grid Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" > <Rectangle x:Name="GelBackground" Opacity="1" RadiusX="9" RadiusY="9" Fill="{TemplateBinding ContentControl.Background}" Stroke="VerticalGradient #cc000000 white " StrokeThickness="1" /> <Rectangle x:Name="GelShine" Margin="4,3,4,0" VerticalAlignment="top" RadiusX="6" RadiusY="6" Opacity="1" Fill="VerticalGradient #ccffffff transparent" Stroke="transparent" Height="15px" > <ContentPresenter x:Name="GelButtonContentShadow" VerticalAlignment="center" HorizontalAlignment="center" Content="{TemplateBinding ContentControl.Content}" Margin="15,5,15,5" TextBlock.Foreground="black" RenderTransform="translate 0 1" /> <ContentPresenter x:Name="GelButtonContentWhite" VerticalAlignment="center" HorizontalAlignment="center" Content="{TemplateBinding ContentControl.Content}" Margin="15,5,15,5" TextBlock.Foreground="white" />  <DataTemplate.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="MenuItem.Background" Value="Red">  <Trigger Property="IsMouseOver" Value="False"> <Setter Property="MenuItem.Background" Value="SkyBlue">

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: test

    Code:
    <Page xmlns="http://schemas.microsoft.com/winfx/avalon/2005" 
        xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005">
        <DockPanel>
            <Border Background="SkyBlue" BorderBrush="Black" 
            BorderThickness="1" DockPanel.Dock="Top">
                <Menu Background="SkyBlue">
                    <MenuItem Header="Language" >
                        <MenuItem Header="English"
                                          Name="english" />
                        <MenuItem Header="German"
                                  Name="german"  />
                        <MenuItem Header="Italian"
                                  Name="italian"/>
                    </MenuItem>
                </Menu>
            </Border>
            <Border Height="25" Background="SkyBlue"
                    BorderBrush="Black" BorderThickness="1" 
                    DockPanel.Dock="Top">
            </Border>
            <Border Height="25" Background="#ffff99" 
                BorderBrush="Black" BorderThickness="1" 
                DockPanel.Dock="Bottom">
                <TextBlock Foreground="black">Dock = "Bottom"
                </TextBlock>
            </Border>
            <Border Width="200" Background="PaleGreen" 
                BorderBrush="Black" BorderThickness="1" 
                DockPanel.Dock="Left">
                <TextBlock Foreground="black">Dock = "Left"
                </TextBlock>
            </Border>
            <Border Background="White" BorderBrush="Black"
                    BorderThickness="1">
                <TextFlow Background="LightSkyBlue" 
                    Foreground="Black" 
                    FontFamily="Palatino Linotype" 
                    FontSize="14" 
                    FontWeight="Normal" TextAlignment="Left" 
                    TextWrap="Wrap">
                    <Paragraph>
                        <LineBreak/>
                    </Paragraph>
                </TextFlow>
            </Border>
        </DockPanel>
        <Page.Resources>
            <Style TargetType="{x:Type MenuItem}" 
                x:Key="{x:Type MenuItem}" >
                <Setter Property="HeaderTemplate">
                    <Setter.Value>
                        <DataTemplate DataType="{x:Type MenuItem}" >
                            <Grid Width="{TemplateBinding Width}" 
                                Height="{TemplateBinding Height}" >
                                <Rectangle x:Name="GelBackground"
                         Opacity="1" RadiusX="9" RadiusY="9"
                         Fill="{TemplateBinding ContentControl.Background}" 
                         Stroke="VerticalGradient #cc000000 white " 
                         StrokeThickness="1"  />
                                <Rectangle x:Name="GelShine" 
                                    Margin="4,3,4,0" 
                                    VerticalAlignment="top" 
                                    RadiusX="6" 
                                    RadiusY="6" Opacity="1" 
                                    Fill="VerticalGradient 
                                        #ccffffff transparent" 
                                    Stroke="transparent"  
                                    Height="15px" ></Rectangle>
                                <ContentPresenter 
                                     x:Name="GelButtonContentShadow"
                                     VerticalAlignment="center" 
                                     HorizontalAlignment="center" 
                                     Content="{TemplateBinding
                                            ContentControl.Content}" 
                                     Margin="15,5,15,5" 
                                     TextBlock.Foreground="black" 
                                     RenderTransform="translate 0 1" />
                                <ContentPresenter 
                                    x:Name="GelButtonContentWhite" 
                                    VerticalAlignment="center" 
                                    HorizontalAlignment="center" 
                                    Content="{TemplateBinding 
                                        ContentControl.Content}" 
                                    Margin="15,5,15,5"

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: test

    Code:
    <Window x:Class="Window1"  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  Title="Window1" Height="300" Width="300">  <Grid>  <RichTextBox Height="79" Name="RichTextBox1" Width="278" IsDocumentEnabled="False" VerticalAlignment="Top" />  <Button HorizontalAlignment="Right" Margin="0,85,0,0" Name="Button1" Width="75" Height="23" VerticalAlignment="Top">Button</Button>  <TextBox Margin="0,126,0,61" Name="TextBox1" />  <Button Height="23" HorizontalAlignment="Right" Margin="0,0,0,12" Name="Button2" VerticalAlignment="Bottom" Width="75">Button</Button>  </Grid> </Window> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> Key="{xtatic SystemColors.HighlightBrushKey}" x:Key="{xstatic SystemColors.HighlightBrushKey}" <VisualBrush Visual="{Binding ElementName=ImageContainer}" />

  5. #5

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

    Re: test

    The fill seems to be an issue, i will look at that tonight.

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: test

    What fill?

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: test

    Code:
    <Window x:Class="Window1"  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  Title="Window1" Height="300" Width="300">  <Grid>  <RichTextBox Height="79" Name="RichTextBox1" Width="278" IsDocumentEnabled="False" VerticalAlignment="Top" />  <Button HorizontalAlignment="Right" Margin="0,85,0,0" Name="Button1" Width="75" Height="23" VerticalAlignment="Top">Button</Button>  <TextBox Margin="0,126,0,61" Name="TextBox1" />  <Button Height="23" HorizontalAlignment="Right" Margin="0,0,0,12" Name="Button2" VerticalAlignment="Bottom" Width="75">Button</Button>  </Grid> </Window> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> Key="{xtatic SystemColors.HighlightBrushKey}" x:Key="{xstatic SystemColors.HighlightBrushKey}" <VisualBrush Visual="{Binding ElementName=ImageContainer}" />

  8. #8
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: test

    Hmm... new lines. How do I get newlines?

  9. #9
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: test

    Code:
    <Page xmlns="http://schemas.microsoft.com/winfx/avalon/2005" 
        xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005">
        <DockPanel>
            <Border Background="SkyBlue" BorderBrush="Black" 
            BorderThickness="1" DockPanel.Dock="Top">
                <Menu Background="SkyBlue">
                    <MenuItem Header="Language" >
                        <MenuItem Header="English"
                                          Name="english" />
                        <MenuItem Header="German"
                                  Name="german"  />
                        <MenuItem Header="Italian"
                                  Name="italian"/>
                    </MenuItem>
                </Menu>
            </Border>
            <Border Height="25" Background="SkyBlue"
                    BorderBrush="Black" BorderThickness="1" 
                    DockPanel.Dock="Top">
            </Border>
            <Border Height="25" Background="#ffff99" 
                BorderBrush="Black" BorderThickness="1" 
                DockPanel.Dock="Bottom">
                <TextBlock Foreground="black">Dock = "Bottom"
                </TextBlock>
            </Border>
            <Border Width="200" Background="PaleGreen" 
                BorderBrush="Black" BorderThickness="1" 
                DockPanel.Dock="Left">
                <TextBlock Foreground="black">Dock = "Left"
                </TextBlock>
            </Border>
            <Border Background="White" BorderBrush="Black"
                    BorderThickness="1">
                <TextFlow Background="LightSkyBlue" 
                    Foreground="Black" 
                    FontFamily="Palatino Linotype" 
                    FontSize="14" 
                    FontWeight="Normal" TextAlignment="Left" 
                    TextWrap="Wrap">
                    <Paragraph>
                        <LineBreak/>
                    </Paragraph>
                </TextFlow>
            </Border>
        </DockPanel>
        <Page.Resources>
            <Style TargetType="{x:Type MenuItem}" 
                x:Key="{x:Type MenuItem}" >
                <Setter Property="HeaderTemplate">
                    <Setter.Value>
                        <DataTemplate DataType="{x:Type MenuItem}" >
                            <Grid Width="{TemplateBinding Width}" 
                                Height="{TemplateBinding Height}" >
                                <Rectangle x:Name="GelBackground"
                         Opacity="1" RadiusX="9" RadiusY="9"
                         Fill="{TemplateBinding ContentControl.Background}" 
                         Stroke="VerticalGradient #cc000000 white " 
                         StrokeThickness="1"  />
                                <Rectangle x:Name="GelShine" 
                                    Margin="4,3,4,0" 
                                    VerticalAlignment="top" 
                                    RadiusX="6" 
                                    RadiusY="6" Opacity="1" 
                                    Fill="VerticalGradient 
                                        #ccffffff transparent" 
                                    Stroke="transparent"  
                                    Height="15px" ></Rectangle>
                                <ContentPresenter 
                                     x:Name="GelButtonContentShadow"
                                     VerticalAlignment="center" 
                                     HorizontalAlignment="center" 
                                     Content="{TemplateBinding
                                            ContentControl.Content}" 
                                     Margin="15,5,15,5" 
                                     TextBlock.Foreground="black" 
                                     RenderTransform="translate 0 1" />
                                <ContentPresenter 
                                    x:Name="GelButtonContentWhite" 
                                    VerticalAlignment="center" 
                                    HorizontalAlignment="center" 
                                    Content="{TemplateBinding 
                                        ContentControl.Content}" 
                                    Margin="15,5,15,5"

  10. #10
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: test

    Code:
    <Page xmlns="http://schemas.microsoft.com/winfx/avalon/2005" 
        xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005">
        <DockPanel>
            <Border Background="SkyBlue" BorderBrush="Black" 
            BorderThickness="1" DockPanel.Dock="Top">
                <Menu Background="SkyBlue">
                    <MenuItem Header="Language" >
                        <MenuItem Header="English"
                                          Name="english" />
                        <MenuItem Header="German"
                                  Name="german"  />
                        <MenuItem Header="Italian"
                                  Name="italian"/>
                    </MenuItem>
                </Menu>
            </Border>
            <Border Height="25" Background="SkyBlue"
                    BorderBrush="Black" BorderThickness="1" 
                    DockPanel.Dock="Top">
            </Border>
            <Border Height="25" Background="#ffff99" 
                BorderBrush="Black" BorderThickness="1" 
                DockPanel.Dock="Bottom">
                <TextBlock Foreground="black">Dock = "Bottom"
                </TextBlock>
            </Border>
            <Border Width="200" Background="PaleGreen" 
                BorderBrush="Black" BorderThickness="1" 
                DockPanel.Dock="Left">
                <TextBlock Foreground="black">Dock = "Left"
                </TextBlock>
            </Border>
            <Border Background="White" BorderBrush="Black"
                    BorderThickness="1">
                <TextFlow Background="LightSkyBlue" 
                    Foreground="Black" 
                    FontFamily="Palatino Linotype" 
                    FontSize="14" 
                    FontWeight="Normal" TextAlignment="Left" 
                    TextWrap="Wrap">
                    <Paragraph>
                        <LineBreak/>
                    </Paragraph>
                </TextFlow>
            </Border>
        </DockPanel>
        <Page.Resources>
            <Style TargetType="{x:Type MenuItem}" 
                x:Key="{x:Type MenuItem}" >
                <Setter Property="HeaderTemplate">
                    <Setter.Value>
                        <DataTemplate DataType="{x:Type MenuItem}" >
                            <Grid Width="{TemplateBinding Width}" 
                                Height="{TemplateBinding Height}" >
                                <Rectangle x:Name="GelBackground"
                         Opacity="1" RadiusX="9" RadiusY="9"
                         Fill="{TemplateBinding ContentControl.Background}" 
                         Stroke="VerticalGradient #cc000000 white " 
                         StrokeThickness="1"  />
                                <Rectangle x:Name="GelShine" 
                                    Margin="4,3,4,0" 
                                    VerticalAlignment="top" 
                                    RadiusX="6" 
                                    RadiusY="6" Opacity="1" 
                                    Fill="VerticalGradient 
                                        #ccffffff transparent" 
                                    Stroke="transparent"  
                                    Height="15px" ></Rectangle>
                                <ContentPresenter 
                                     x:Name="GelButtonContentShadow"
                                     VerticalAlignment="center" 
                                     HorizontalAlignment="center" 
                                     Content="{TemplateBinding
                                            ContentControl.Content}" 
                                     Margin="15,5,15,5" 
                                     TextBlock.Foreground="black" 
                                     RenderTransform="translate 0 1" />
                                <ContentPresenter 
                                    x:Name="GelButtonContentWhite" 
                                    VerticalAlignment="center" 
                                    HorizontalAlignment="center" 
                                    Content="{TemplateBinding 
                                        ContentControl.Content}" 
                                    Margin="15,5,15,5"

  11. #11
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: test

    Testing with HTML

    Code:
    				
    			<form id="Formmail" method="post" action="/menuprocessor.aspx">
    			    
    			    <div id="sendtoafriend" style="display:none; overflow:hidden; height:95px; position:absolute; top:30px; float:right; right:30px; background:black; border:solid 2px gray;">
    			    <input type="hidden" value="Mendhak" name="hidPT" id="hidPT" />
    			        <input type="text" value="Your name" id="txtSFYourName" name="txtSFYourName" onfocus="clearthis(this);" /><br />
    			        <input type="text" value="Your email address"  id="txtSFYourEmail" name="txtSFYourEmail" onfocus="clearthis(this);" /><br />
    			        <input type="text" value="Friend's email address"  id="txtFriendEmail" name="txtFriendEmail" onfocus="clearthis(this);"  /><br />
    			        <div style="text-align:center;"><input type="image" src="/images/send.gif" id="btnSFSendFriend" name="btnSFSendFriend" alt="Send" title="Send" value="SF" /></div>
    			    </div>
    
    			    <div id="contactme" style="display:none; width: 350px; overflow:hidden; height:175px; position:absolute; top:30px; float:right; right:0px; background:black; border:solid 2px gray;">
    			        <input type="text" value="Your name" id="txtEMYourEmail" name="txtEMYourEmail" onfocus="clearthis(this);"  /><br />
    			        <input type="text" value="Your email address"  id="txtYourName" name="txtYourName" onfocus="clearthis(this);"  /><br />
    			        <textarea id="txtMessage" name="txtMessage" rows="5" cols="40"></textarea>
    			        <div style="text-align:center;"><input type="image" src="/images/send.gif" id="btnEMMailMe" name="btnEMMailMe" alt="Send" title="Send" value="EM" /></div>
    			    </div>
        			
    			
    			</form>

  12. #12
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: test

    Testing with my RSS feed

    Code:
    <?xml version='1.0' ?><rss version='2.0'><channel><title>Mendhak</title><link>http://www.mendhak.com/</link><description>Articles on the Paranormal, Thoughts, and Philosophy</description><language>en-us</language><docs>http://www.mendhak.com/rss.aspx</docs>
    <item>
    <title>The 10 Greatest Eclipses in History</title>
    <link>http://www.mendhak.com/177-the-10-greatest-eclipses-in-history.aspx</link>
    <description>&lt;img class=&quot;floatLeft&quot; src=&quot;/images/website/other/eclipsethumb.jpg&quot; alt=&quot;Eclipse&quot; title=&quot;Eclipse&quot; /&gt;Eclipses were a source of fear and reverence for our ancestors.  In a world where any given civilization charted their lives by the movements of these celestial bodies, eclipses were something that stood outside their knowledge; these were the exceptions to the rules and were thought to be signs from the gods. Chaos ensued, prayers went out for the Sun or the moon to return to normal.  These events were considered to be so important that they even altered the course of history.  Here is a list of the 10 most important eclipses that have either affected history to some extent or have stood out as being of special significance.</description>
    
    <pubDate>Tue, 10 Jun 2008 10:14:00 GMT</pubDate></item>
    <item>
    <title>Stonehenge Theories, Myths, Construction and Images</title>
    <link>http://www.mendhak.com/85-stonehenge-theories-myths-construction-and-images.aspx</link>
    <description>&lt;img src=&quot;/images/website/mystery/stonehenge_thumb.jpg&quot; class=&quot;floatLeft&quot; alt=&quot;Stonehenge&quot; title=&quot;Stonehenge&quot; /&gt;Stonehenge, the world's most famous megalith, is located above a chalky plain about 8 km north of Salisbury, UK. It has been drawing people towards it for around 5000 years now, and to this day remains an enigmatic mystery because the questions of how it was built, who built it and why they built it remain unanswered, the theories are only ranged and debated. Standing out distinctly from the green English countryside, the monument radiates a power that must have been ingrained in the site itself. It is an aura, a power which cannot be explained by architecture alone. A lot of the mystery and inherent wonderment associated with Stonehenge stems from the fact that the stones are so shrouded in mystery, this only being amplified by its age. The very fact that the stones survived for so long must mean they are special. This article looks at the description, construction, theories, astronomy, myths and images of Stonehenge.</description>

  13. #13

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

    Re: test

    Excelent tests! I like the HTML one I will change the colors though but they look good.

    What is the issue with the newlines?

  14. #14

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

    Re: test

    Also should their be any other colors added to the RSS feed?

  15. #15

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

    Re: test

    I dont suppose you have any xml knocking about you could test?

  16. #16
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: test

    [c++]
    yada yeas
    [/c++]
    My usual boring signature: Something

  17. #17
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: test

    [c#]
    haskf
    [/c#]

    [c]
    asdf
    [/c]
    My usual boring signature: Something

  18. #18

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

    Re: test

    Now was there any need for that. Grow up man.

  19. #19
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: test

    Quote Originally Posted by DeanMc
    Now was there any need for that. Grow up man.
    huh? I was testing something.
    My usual boring signature: Something

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