Welcome to MSDN Blogs Sign in | Join | Help

Pedro Silva's Blog

Development lead on Visual Studio Platform team focusing on the extensibility of Visual Studio.

Syndication

News

My name is Pedro Silva. I’m the development lead in the Visual Studio Platform team at Microsoft, working on VS Extensibility features, enabling VS extensions and the VS SDK.

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Browse by Tags

All Tags » C Sharp   (RSS)
WpfAboutBox: Dialog Layout and Styles
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 Read More...

Posted Friday, May 08, 2009 10:40 AM by PedroSilva | 1 Comments

Filed under: , ,

Attachment(s): WpfAboutBox v0.1.zip

WpfAboutBox: Intro
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 Read More...

Posted Wednesday, May 06, 2009 8:26 PM by PedroSilva | 2 Comments

Filed under: , ,

Programmatic Access to XmlDataProvider
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 > < Read More...

Posted Monday, May 04, 2009 10:30 AM by PedroSilva | 2 Comments

Filed under: , ,

A WPF Dialog Window
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 Read More...

Posted Monday, April 27, 2009 2:24 PM by PedroSilva | 1 Comments

Filed under: , ,

Attachment(s): DialogWindow.cs

WPF LinkLabel
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 Read More...

Posted Friday, April 17, 2009 3:30 PM by PedroSilva | 2 Comments

Filed under: , ,

An old friend talking about Perf
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 Read More...

Posted Wednesday, April 15, 2009 6:14 PM by PedroSilva | 1 Comments

Filed under: ,

Testing When Exceptions Are Expected
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 Read More...

Posted Monday, September 24, 2007 10:27 AM by PedroSilva | 8 Comments

Filed under: ,

List of WinForms and C# Links
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 Read More...

Posted Monday, March 06, 2006 9:40 AM by PedroSilva | 0 Comments

Filed under: ,

Check Out Gel Buttons for Winforms
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 Read More...

Posted Wednesday, March 01, 2006 11:40 AM by PedroSilva | 1 Comments

Filed under: ,

Using 'Open With' System Dialog in C#
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 Read More...

Posted Wednesday, February 22, 2006 11:05 AM by PedroSilva | 0 Comments

Filed under: ,

Using XBox 360 Controller in C#
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 ] Read More...

Posted Wednesday, February 15, 2006 10:46 AM by PedroSilva | 0 Comments

Filed under: ,

Radio Button in a .NET 2.0 MenuStrip
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 Read More...

Posted Thursday, February 09, 2006 3:39 PM by PedroSilva | 0 Comments

Filed under: ,

Minimize to System Tray Revisited
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, Read More...

Posted Friday, February 03, 2006 8:51 AM by PedroSilva | 0 Comments

Filed under: ,

Using My Namespace for Splash Screen
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 Read More...

Posted Thursday, February 02, 2006 8:43 AM by PedroSilva | 0 Comments

Filed under: ,

Couple of Cool Utility Libraries
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 Read More...

Posted Wednesday, February 01, 2006 8:56 AM by PedroSilva | 0 Comments

Filed under:

More Posts Next page »
Page view tracker