Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
B

Barry Lapthorn

@Barry Lapthorn
About
Posts
440
Topics
53
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • The New Layout.
    B Barry Lapthorn

    My tuppence worth. Quite like it (an improvement over the previous version). The fluid layout works really well. However (you all saw that coming), I'd say that the vertical spacing in the messages is slightly too much, IMHO. Good work though!

    Regards, Barry

    The Lounge announcement

  • A message to those in charge
    B Barry Lapthorn

    Or the crafty 'fluid' link at the middle and very bottom of every page :)

    Regards, Barry

    The Lounge csharp com tools question

  • The Real Windows 8 Logo
    B Barry Lapthorn

    Last BSOD 2 months ago on Win7-64 bit. Culprit? NVidia driver...

    Regards, Barry

    The Lounge php com question

  • The Real Windows 8 Logo
    B Barry Lapthorn

    I did wonder how long it would take for someone to mock that up :)

    Regards, Barry

    The Lounge php com question

  • New Windows Logo
    B Barry Lapthorn

    Debian is ok. I have that on an VirtualBox VM.

    Regards, Barry

    The Lounge com

  • WAT?! 4 minutes of awesomeness
    B Barry Lapthorn

    (No!) apologies if this is a repost. A 4 minute (funny!) screencast about Javascript: https://www.destroyallsoftware.com/talks/wat[^] Can't remember if I found this on hacker news or not, so can't attribute it to someone else.

    Regards, Barry

    The Lounge javascript com question announcement

  • Happy Friday!
    B Barry Lapthorn

    I approve :)

    Regards, Barry

    The Lounge com question career

  • URGENT!!!
    B Barry Lapthorn

    Take a good book :D

    Regards, Barry

    The Lounge sysadmin business help

  • Javascript editor is buggy
    B Barry Lapthorn

    Chris Maunder wrote:

    Converting from HTML to Markdown wouldn't necessarily be an issue because we'd simply keep the back-end text as the original markdown.

    @chris: that's good to know - I've written some CP articles recently using markdown and the steps are: markdown, export to HTML, post to CP, then *add language type* to syntax highlight code snippets: meaning that you can't author a CP article purely in markdown if you want to have code snippets syntactically highlighted (I think!!). I know markdown supports embedded html, but I think what you've already done works sufficiently :)

    Regards, Barry

    Site Bugs / Suggestions c++ javascript com graphics help

  • Javascript editor is buggy
    B Barry Lapthorn

    Since I've written 3 articles in the past couple of weeks, I've found the easiest route to authoring articles is the following: * Choose a markdown editor of your choice (I use MarkdownPad). * Write the article in markdown on your own PC. * Export as HTML, then paste everything inside the body tags into the CodeProject editor * Add the finishing touches, and adjust image/zip links as necessary. * Have a cup of tea. I can imagine that the challenge of using Markdown as the method of submission is a huge challenge on the back-end of CodeProject, especially when regenerating markdown for article updates. Markdown would be nice, but as you say, it's not as rich as HTML. You could always add some checks for the usual suspect keywords such as map, vector, list, shared_ptr and so on followed with a < , to at least give the article write some cursory warning of a potential problem. Or do the reverse: have a list of all HTML elements: p, table, thead, img, etc. and perhaps pattern match against them, and anything that doesn't match, flag up and warn.

    Regards, Barry

    Site Bugs / Suggestions c++ javascript com graphics help

  • Open plea for wpf / silverlight's future
    B Barry Lapthorn

    For everyone out there that says that WPF is dead, I'd like them to qualify that: dead how? If Windows 8, and by extension, Windows 'Tablet' are supporting HTML5, then please show me the HTML5 for the Metro UI demos that have been shown on the web in the last couple of weeks. There has been so much baseless FUD on various sites for quite a long time now. Based on the public facts we know: windows phone 7 uses xaml and .net for UI layout and functionality, the animation effects are xaml based, windows 8/tablet has tiles, and the new xbox interface has tiles. Would you base your next billion-dollar OS on an incomplete standard, or on something you own, control, and is complete specified? I think it's fair to say that xaml and .net, and by extension, wpf and silverlight are far from 'dead'. By the same metric, MFC has been dead for 10 years. Precisely as Pete says above, WPF is a mature platform and on a slower release cycle, it's not dead, and certainly not an ex-parrot.

    Regards, Barry

    The Lounge csharp wpf beta-testing tools help

  • Trivial data binding to member variables.
    B Barry Lapthorn

    Venugopalm - thanks for the reply, this is helpful!

    Regards, Barry

    WPF wpf wcf com tutorial question

  • Trivial data binding to member variables.
    B Barry Lapthorn

    Hi, I've just created a trivial xaml window that databinds a textbox to a property:

    <Window x:Class="WpfTests.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="350" Width="525"
    x:Name="root">
    <StackPanel>
    <DockPanel>
    <Button DockPanel.Dock="Right" Height="23" Click="buttonTest_Click">Browse...</Button>
    <TextBox DockPanel.Dock="Left"
    Height="23" Margin="0,0,2,0" Name="textBoxFileName"
    Text="{Binding ElementName=root, Mode=TwoWay, Path=FileName}"/>
    </DockPanel>
    <DockPanel>
    <TextBlock DockPanel.Dock="Bottom" Text="{Binding ElementName=root, Mode=TwoWay, Path=FileName}"></TextBlock>
    <Button DockPanel.Dock="Bottom" Name="buttonToggle" Click="buttonToggle_Click">Toggle...</Button>
    </DockPanel>
    </StackPanel>
    </Window>

    And the (trivial) code behind:

    namespace WpfTests
    {
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
    public MainWindow()
    {
    InitializeComponent();
    }

        public static readonly DependencyProperty FileNameProperty = DependencyProperty.Register("FileName", typeof(string), typeof(MainWindow));
    
        public string FileName
        {
            get { return (string)GetValue(FileNameProperty); }
            set { SetValue(FileNameProperty, value); }
        }
    
        private void buttonTest\_Click(object sender, RoutedEventArgs e)
        {
            Microsoft.Win32.OpenFileDialog d = new Microsoft.Win32.OpenFileDialog();
            if (d.ShowDialog() == true)
                this.FileName = d.FileName;
        }
    
        private void buttonToggle\_Click(object sender, RoutedEventArgs e)
        {
            this.FileName = "Toggle clicked.";
        }
    }
    

    }

    I have a couple of questions (that require simple 'assume-I-know-nothing' answers): To date, this is the only trivial example I've found of binding the value of a control to a class property. Am I doing this the correct way, or is this something fundamental to databinding that I'm missing? If, in VS2010, I go to the xaml view, select the 'Text' property of 'textBoxFileName' a

    WPF wpf wcf com tutorial question

  • Ubuntu
    B Barry Lapthorn

    ..rocks. And installs on to vmware and virtual pc. Regards, Barry

    The Lounge linux

  • Media Player Recommendations
    B Barry Lapthorn

    zinf http://www.zinf.org/[^] and media player classic http://sourceforge.net/projects/guliverkli/[^] and of course cdex Regards, Barry

    The Lounge design question

  • Apple article via slashdot
    B Barry Lapthorn

    http://apple.slashdot.org/apple/05/06/14/1322208.shtml?tid=181&tid=3[^] I can't get to the original article, but it is essentially saying that if Apple allows it's intel version of OS X to be freely pirated (this is of course assuming it runs on x86, not some new PowerPC style chip) then Apple could suddenly get a huge user base overnight. It could actually work, however they don't have their own true 'killer apps' like Office to make the actual revenue off of. Sounds a bit like the BBC and the rumoured 'release' of Dr Who to the P2P networks ahead of its proper release. Regards, Barry

    The Lounge announcement sales question learning

  • Icon editor recommendations for developer
    B Barry Lapthorn

    @icon sushi, not necessarily an icon editor, but helpful for masks and stuff for xp icons: http://fileforum.betanews.com/detail/icon_sushi/1111505785/1[^] Regards, Barry

    The Lounge com question learning

  • Upgrade to XP-64?
    B Barry Lapthorn

    Perhaps they monitor this site, and it prompted them ;) Apparently my order hasn't gone through. I don't think I'll reorder.... Regards, Barry

    The Lounge com linux debugging sales question

  • Upgrade to XP-64?
    B Barry Lapthorn

    It is linked directly off of the MS site though (and I don't think I've been spoofed - I checked it on several browsers on several non-Windows OSes). Regards, Barry

    The Lounge com linux debugging sales question

  • Upgrade to XP-64?
    B Barry Lapthorn

    I mean to add that link, that's why I'm not *too* concerned - I checked it myself in several browsers on several OSes to make sure I wasn't spoofed, and I did the whois (as mentioned in the other message zomax systems). But if I get nothing back by the weekend, I'm notifying my credit card company, and getting them to cancel the thing (assuming there is still any funds left to cancel...). Incidentally, one of my friends works for a company that MS outsource to which is similar to the one I linked to. Pretty shoddy imho. :mad: Regards, Barry

    The Lounge com linux debugging sales question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups