ragingben's Profile User Rating: -----

Reputation: 177 Stalwart
Active Posts:
651 (0.24 per day)
07-October 08
Profile Views:
Last Active:
User is offline Feb 28 2016 04:17 PM

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Your Car:
Who Cares
Dream Kudos:

Latest Visitors

Icon   ragingben has not set their status

Posts I've Made

  1. In Topic: It's incredible how fast time passes!

    Posted 28 Feb 2016

    You're not wrong, I've joined a fair few boards over the years but this is one I always come back too, and it's always reassuring to see so many familiar faces still here!
  2. In Topic: WPF Dockpanel/Stackpanel Problem

    Posted 8 Jan 2016

    It's because the StackPanel is a child of the DockPanel, which is constrained to Row 0 Column 0, and the cumulative width of it's content exceeds the width of the column. The layout logic of the StackPanel knows nothing about wrapping, so when the contents exceeds the available width it just isn't rendered, but it is still loaded. With a WrapPanel the layout logic determines that the width of the content exceeds the width the panel is allowed to expand to horizontally, and so the content that overflows is wrapped.
  3. In Topic: WPF Dockpanel/Stackpanel Problem

    Posted 7 Jan 2016

    Hi Chris,

    If you want the content to wrap, try using WrapPanel rather than StackPanel.

    Without looking to deeply at it, the dock panel appeared to be acting strange. I usually wouldn't bother using DockPanel for the menu - I normally use a grid for the main area, which would have its content set to a grid with 3 rows - menu, main content and status. Then I would use an inner Grid, StackPanel, UserControl or whatever for the content. By removing the DockPanel and switching the StackPanel for a WrapPanel it does what you would wanted.
    <Window x:Class="Inventory_and_Locations.MainWindow"
            Title="MainWindow" Height="350" Width="525">
        <Grid Name="MainGrid">
                <RowDefinition Name="MenuRow" Height="Auto"/>
                <RowDefinition Name="ContentRow" Height="*"/>
            <Menu Background="White" Grid.Row="0">
                <MenuItem Header="_File">
                    <MenuItem Header="_Load"/>
                    <MenuItem Header="_Exit"/>
                <MenuItem Header="_Parts">
                    <MenuItem Header="_Search Item"/>
                    <MenuItem Header="_Edit Item"/>
                    <MenuItem Header="_Delete Item" Click="MenuItem_onclick"/>
            <Grid Name="ContentGrid" ShowGridLines="True" Grid.Row="1">
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="*"/>
                    <ColumnDefinition Width="200"/>
                    <ColumnDefinition Width="100"/>
                    <ColumnDefinition Width="100"/>
                <WrapPanel Orientation="Horizontal">
                    <TextBox Name="tbNameInput" Width="100" Height="20" FontSize="20" TextAlignment="Center"/>
                    <TextBlock Name="tbName" TextAlignment="Center" Width="100" Height="Auto" Text="Chris"/>
                    <TextBlock Name="tbColor" Background="Chocolate" Width="20" Text="Chocolate"/>
  4. In Topic: C# First program Hello world error?

    Posted 6 Jan 2016

    C# is a case sensitive language, with that in mind, take a look at the error message, it is essentially saying it can't find a method called 'Main'...
  5. In Topic: C# FileSystemWatcher The directory name Fonts is invalid.

    Posted 28 Nov 2014

    I would use a combination of the Environment.GetFolderPath() and Environment.SpecialFolder enum to get the font directory path:
    String fontsPath = Environment.GetFolderPath(Environment.SpecialFolder.Fonts);

My Information

Member Title:
D.I.C Addict
30 years old
May 11, 1985
Somerset, England, Uk
Playing football, punk rock, guitar, retro games, FX pedal building
Full Name:
Ben Pollard
Years Programming:
Programming Languages:
VB6, C#, WPF, MML, Flowcode, Python (a bit), GPProX for ProFace PLC's, CAN

Contact Information

Click here to e-mail me
Website URL:
Website URL  http://www.0xdfx.wordpress.com


Showing 50 random friends of 13


Page 1 of 1
  1. Photo

    Frinavale Icon

    21 Sep 2011 - 09:22
  2. Photo

    Frinavale Icon

    20 Sep 2011 - 13:50
    ..I figuered if they phrased their question differently I could help...
  3. Photo

    Frinavale Icon

    20 Sep 2011 - 13:50
    The reason I posted my "useless" comment is to pull more information from the OP about the topic. I didn't realize how old the thread was. I simply started answering a few of the newest questions in the forum. I took the OP's code, and played with it: trying to envision what on earth they were trying to accomplish and couldn't. I figured if they phrased their question differ...
  4. Photo

    Frinavale Icon

    20 Sep 2011 - 13:50
    I'm not having a "hissy fit" I just found your comment a harsh and wanted you to be aware of it.
  5. Photo

    Frinavale Icon

    20 Sep 2011 - 06:52
    <sarcasm>Thank you very much for the wonderful "welcome to the forum" message you left me in thread. It's SOOO nice to be back trying to help people</sarcasm>
Page 1 of 1