.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

GridSplitter 'lockup'

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :JQuery


I'm noticing a strange behavior with a GridSplitter.  With only two columns in the grid it works as I would expect, you can slid the splitter R-L and it stops just shy of the windows edge.  With three columns (uncomment the two lines in code below, but not the MaxWidth), when you get near the edge the splitter 'snaps' giving the full window to the third column.  After this 'snap' occurres the GridSplitter no longer functions.  While writing this I threw in a MaxWidth for the third column and got rid of the 'snap' behavior, but I'm still curios what causes this 'snap'.  I've done quite a bit of searching for an answer to no avail.  Any ideas?  BTW, the smiley face part of the code below is from one of Petzold's examples in Applications = Code + Markup (credit where credit is due you know).



Code Block



View Complete Post

More Related Resource Links

Strange lockup in multithreaded application - Visual Studio debugger unable to break execution

Multithreaded C# application, Visual Studio 2008, Windows XP, Framework 3.5 SP1. This application is a little crawling utility to download pages from our website, extract some information and upload it into a database. It runs for a while, then somewhere between about 10 minutes and an hour in, it locks up totally, user interface and all. When I try to "break all" in the VS debugger, I get a message "cannot break execution". Now the confusing thing about this is that since the UI was locking up, I thought that some deadlock must be happening on the main UI thread. So I started stripping out any code and locks that were being acquired on that thread that might cause problems ... until there was nothing left. Even with the window simply spawning a bunch of worker threads on create, then totally forgetting about them and giving no reverse access, the lockup still happens, the UI still freezes and VS still can't break the execution.   There are 10 threads to do the crawling, and one each to do the processing and the uploading. The next thing I did was take out the uploading entirely to remove the possiblity of a deadlock in the SqlClient libraries. No difference. So now, the only things that could be really deadlocking the main thread that I can see are the centrally created HTTPWebRequest objects I'm using. WebRequest.create is supposedly thread safe

Conditional resizing using GridSplitter

I am having a Grid with 5 rows (only one column). Each row has a Canvas on it and I am using the GridSplitter control to resize the rows. I am having a minimum height and maximum height for all these canvases and do not want the user to resize beyond that range. How can I do this?

Different behavior of horizontal and vertical GridSplitter

I'm trying to learn WPF. While it does appear to be quite powerful and flexible, some things are also rather confusing. The GridSplitter is my current headsplitter... Take a look at this XAML: <Grid> <Grid.RowDefinitions> <RowDefinition MinHeight="50"/> <RowDefinition Height="Auto" /> <RowDefinition MinHeight="50" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition MinWidth="50"></ColumnDefinition> <ColumnDefinition Width="Auto"></ColumnDefinition> <ColumnDefinition MinWidth="50"></ColumnDefinition> </Grid.ColumnDefinitions> <Button Grid.Row="0" Grid.Column="0" Margin="2">Top Left</Button> <Button Grid.Row="0" Grid.Column="2" Margin="2">Top Right</Button> <Button Grid.Row="2" Grid.Column="0" Margin="2">Bottom Left</Button> <Button Grid.Row="2" Grid.Column="2" Margin="2">Bottom Right</Button> <!-- <GridSplitter Grid.Row="0" Grid.Column="1" Grid.RowSpan="3" Width="3" HorizontalAlignment="Center" /> --> <GridSplitter Grid.Row="1" Gri
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend