Geeks With Blogs

Vitaly Dilmukhametov .NET
Windows Phone 7 TextBox style margin issue
I just found an interesting behaviour of Windows Phone 7 TextBox default template. When TextBox is disabled, inner text is rendered with margin: To reproduce it, create new Silverlight WP application and add following XAML inside default grid named “ContentPanel”: <StackPanel Margin="0,12,0,0"> <StackPanel.Resources> <Style TargetType="TextBlock"> <Setter Property="Margin" Value="25,0,25,0"/> </Style> <Style TargetType="TextBox"> <Setter Property="Margin" Value="33,0,13,0"/> ......

Posted On Tuesday, December 25, 2012 12:13 PM

[VS2010]: C# statement collapsing
If you need to explore big amount of another’s C# code, C# outline add-in may be helpful. It allow you to collapse statements between { and }. Here is a sample screenshot: This add-in available for Visual Studio 2010. Also, it’s not compatible with some other plugins like Presentation Zoom – outline nodes displaces, if both installed ......

Posted On Thursday, June 23, 2011 11:09 PM

.NET 4: “Slim”-style performance boost!
RTM version of .NET 4 and Visual Studio 2010 is available, and now we can do some test with it. Parallel Extensions is one of the most valuable part of .NET 4.0. It’s a set of good tools for easily consuming multicore hardware power. And it also contains some “upgraded” sync primitives – Slim-version. For example, it include updated variant of widely known ManualResetEvent. For people, who don’t know about it: you can sync concurrency execution of some pieces of code with this sync primitive. Instance ......

Posted On Thursday, April 15, 2010 2:28 AM

Client part of WCF REST Starter Kit
WCF REST Starter Kit Preview 2 contains not only tools for creating REST services. It include rich set of client tools, that allow to do HTTP-requests and process service response in more convenient way. I create small overview of it basic features. We’ll create a simple WPF desktop client for Yahoo Shopping Web Services. Our client sill search products by the keyword. Details of Search API is available here, but information about GET-request format and service URI is enough. For example, if we want ......

Posted On Wednesday, October 28, 2009 1:05 PM

Thread-safe data structures .NET 4.0 (part 2)
Today I tell you about BlockingCollection<T>. It’s more complex and more interesting data storage. BlockingCollection<T> is a thread-safe data structure, which is called “blocking”, because it based on following principles: if the collection is empty, and some code try to take an element, the thread, that executes this code, is blocked while any at least one element is not added; if the collection already contains maximum elements, the thread, attempting to add new element, will be blocked ......

Posted On Sunday, October 25, 2009 4:01 AM

Thread-safe data structures .NET 4.0 (part 1)
.NET 4 contains rich set of tools, that allow to create parallelized code more easy. But when we start processing chunk of data in parallel threads, we need to synchronize these threads, and we need some storage for the results of work. Now exist a big number of methods, solving sync issues, and we can realize in code any of them. But MS Parallel Extensions team already do it, and .NET 4 beta versions include set of thread-safe data structures. They implement some popular types of collections, and ......

Posted On Saturday, October 24, 2009 10:20 AM

Copyright © Vitus | Powered by: