Sign in
Pedro Silva's Blog
Development lead on Visual Studio Platform team focusing on the extensibility of Visual Studio.
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Tags
C Sharp
DSL Tools
Extension
Humor
Links
Misc
News
Unit Testing
Visual Studio
Visual Studio SDK
VSX
Window Forms
WPF
XAML
Browse by Tags
MSDN Blogs
>
Pedro Silva's Blog
>
All Tags
>
c sharp
Tagged Content List
Blog Post:
WpfAboutBox: Dialog Layout and Styles
Pedro Silva [Visual Studio]
I wanted to make an AboutBox that is as easy to use as the one that comes with Winforms. But, I also wanted to make use of some of the cool new UI capabilities in WPF and make it look a little snazzier than the default WinForms one… Below are the two different AboutBoxes: As you can see the...
on
8 May 2009
Blog Post:
WpfAboutBox: Intro
Pedro Silva [Visual Studio]
I've been testing out some of the different possibilities in WPF with a sample AboutBox -- every program has one and they're not overly complex (so they make a good starting point). Also, for those of you WinForms-turned-WPF devs out there, you've probably noticed that there's no WPF equivalent of the...
on
6 May 2009
Blog Post:
Programmatic Access to XmlDataProvider
Pedro Silva [Visual Studio]
It’s pretty easy to set up an XmlDataProvider as a resource in your WPF application. This lets you databind controls to XML data islands pretty easily. The following XAML puts an XML data island into my application. < Application.Resources > < XmlDataProvider x : Key ="aboutProvider" XPath...
on
4 May 2009
Blog Post:
A WPF Dialog Window
Pedro Silva [Visual Studio]
I’m continuing to work through learning more about WPF and XAML. I was trying a simple dialog and noticed that it didn’t look like typical Windows dialogs… for example, all WPF windows have an icon, but if you look at dialogs in most apps (and what WinForms produces), they don’t have a visible icon and...
on
27 Apr 2009
Blog Post:
WPF LinkLabel
Pedro Silva [Visual Studio]
WPF doesn't have a built in LinkLabel control as you'd find in WinForms. But, I have found a couple of neat ways of doing one in WPF. The first was creating a new WPF control that derives from Label and then adds functionality to have it behave like a hyperlink. While this will certainly work, it's more...
on
17 Apr 2009
Blog Post:
An old friend talking about Perf
Pedro Silva [Visual Studio]
I was just reading over some blogs and ran across a couple of interesting topics on usage and perf on an Immutable Collection in the .NET runtime. Turns out to have been written by an old friend and collegue - Jared . He's always written about some interesting topics and good to see that hasn't changed...
on
15 Apr 2009
Blog Post:
Testing When Exceptions Are Expected
Pedro Silva [Visual Studio]
Been thinking about and looking at unit testing a lot recently. And, one of the items that came up was how do you test for expected exceptions to make sure that they're being thrown correctly. So, I wrote of few tests that did just that and noticed how similar they were, so I decided to create a helper...
on
24 Sep 2007
Blog Post:
List of WinForms and C# Links
Pedro Silva [Visual Studio]
There's been lots of WinForms and C# related content posted recently, and I have a list of things that I had meant to blog about, but never got around to. I'm going to post of list of some of these, so I can clear my backlog, keep track of them, and let other folks know about them... Priority Queue...
on
6 Mar 2006
Blog Post:
Check Out Gel Buttons for Winforms
Pedro Silva [Visual Studio]
Chris Jackson has two posts about Gel Buttons that he's created for WinForms. They look really good and implement design-time support, so they're good examples on how to do that as well. Creating Gel Buttons With Window Forms: Part 1 Creating Gel Buttons With Window Forms: Part 2 Not sure...
on
1 Mar 2006
Blog Post:
Using 'Open With' System Dialog in C#
Pedro Silva [Visual Studio]
Vivek has a project where he's written the interop layer to access the Windows shell's 'Open With' Dialog -- the one where you can associate a file extension with the application that should open it. It's a dialog that you may find useful in one of your applications, but isn't supported in the .NET libraries...
on
22 Feb 2006
Blog Post:
Using XBox 360 Controller in C#
Pedro Silva [Visual Studio]
Here's a very cool sample that uses Managed DirectX to support input from the new XBox 360 controller in a simple Windows Form in C#. Paul Stubbs : MDX: XBOX 360 Controller Windows Forms Application [via Greg ]
on
15 Feb 2006
Blog Post:
Radio Button in a .NET 2.0 MenuStrip
Pedro Silva [Visual Studio]
I just ran into a problem doing this and found a great post about how to work around it. It appears that the MenuStrip doesn't support radio button items be default, but you can create a radio button effect by using the ToolStripMenuItem.Checked property and some drawing.
on
9 Feb 2006
Blog Post:
Minimize to System Tray Revisited
Pedro Silva [Visual Studio]
Earlier in the week, I posted about a project that implemented system tray support for .NET applications. That seems like a good project, but it's a bit complicated. I was just trying to add this functionality to an app that I've been playing around with, and I found another sources that has a more...
on
3 Feb 2006
Blog Post:
Using My Namespace for Splash Screen
Pedro Silva [Visual Studio]
I posted earlier about using the My namespace in VS 2005 to create a single instance application in C#. You can also do a similar thing to use the My functionality for displaying a splash screen when your .NET application is loading. Here is Tyler's post on how to do this in VB, but if you include...
on
2 Feb 2006
Blog Post:
Couple of Cool Utility Libraries
Pedro Silva [Visual Studio]
I saw these two posts on Greg's blogs, and they look very intriguing: FileHelpers and Screen Grabbing . These two libraries appear to be very useful - who doesn't need simplified file read/write functionality. And, the screen capture one is cool because it wraps some Win32 APIs for screen capture and...
on
1 Feb 2006
Blog Post:
.NET Application Running on the System Tray
Pedro Silva [Visual Studio]
Here's a link to sample code by Chris Szurgot for creating an application that can be placed on the system tray . It's become much more common to have things on the system tray recently, and this code allows you to implement this feature using .NET 2.0. I haven't had a chance to use the code yet,...
on
31 Jan 2006
Blog Post:
Using C# 2.0 Iterators
Pedro Silva [Visual Studio]
Developer.com has a great article on how to use Interators in C# 2.0 to reduce the amount of code you need to write to implement a class with IEnumerable. It use generics as well to make them type-specific. It's a good example of how C# 2.0 is trying to simplify coding tasks for developers.
on
10 Jan 2006
Blog Post:
Generic Tree <T> Class
Pedro Silva [Visual Studio]
I was back from Christmas and New Year's break at the start of the week. It was nice having an extended period of time off. Now, it's back to work and blogging. Here's a really good generic Tree<T> class that Peter Chen posted on The Code Project . It looks like a good implementation and shows...
on
6 Jan 2006
Page 1 of 1 (18 items)