Marcelo's WebLog

Improving the world one entity at a time (now tweeting on @mlrdev)

Browse by Tags

Tagged Content List
  • Blog Post: PropertyGrid in WinForms and elsewhere

    The other day someone was asking a question on the WinForms forums about the PropertyGrid class. This control is what you typically interact with to set properties in Visual Studio, and it's a very handy class that you can use at runtime as well for a quick way to allow users to edit an object. It is...
  • Blog Post: Time categories with WPF and Exchange - Part II

    Today’s post is a continuation of yesterday’s post . Today, we’ll look at how the app works its magic. To communicate with our Microsoft Exchange server, the first thing to do is to choose the technology. In our case we’ll use Exchange Web Services , which provide a SOAP-based interface that is very...
  • Blog Post: Time categories with WPF and Exchange

    Today and tomorrow I will present a short app I wrote for myself that others may find useful as a starting point. Here at Microsoft, the use of Outlook and Exchange are of course ubiquitous (thanks WLW spell checker). So it’s no surprise that I have a vast amount of information stored in my folders for...
  • Blog Post: Blast from the past: updating links in my most popular post

    I recently got a message through the blog, letting me know about broken links on Showing drag/drop feedback on the WPF adorner layer . Now, this post is from over four years ago, so I hadn't given it much thought in a long time. I'm happy to say that even though WPF has evolved quite a bit since then...
  • Blog Post: Previewing fonts in WPF with no code or executable

    Sometimes I just love loose XAML. It has been around for a long time , but not every developer that works with WPF knows about this feature. In any case, I wanted to play with fonts and font sizes specifically to see how WPF would render different combinations, and I was able to whip this up in a...
  • Blog Post: StackPanel, DockPanel and scrolling items

    I spent a little bit of time with this the other day, and I thought I'd pass the learnings on, in hopes it helps someone. This is the layout what I was trying to accomplish with WPF. In a section of my window, I wanted a bit of text at the top, and then the rest filled with items. The items in this...
  • Blog Post: Gorgeous typography in Windows 7

    Gorgeous text is something I have long been passionate about . This recent Engineering Windows 7 blog post talks about Windows 7 improvements in text rendering and typography. I love the variations on the Gabriola font, and the stuff they do with the Valentines sample is amazing - note how the beginning...
  • Blog Post: Impact of text language on WPF

    Finally, the examples I mentioned on my last post about text . Let's take the WPF text rendering engine as my example of a text processor that's sophisticated enough to handle this correctly. First off, as explained in xml:lang Handling in XAML , the XAML parser is actually smart enough to know...
  • Blog Post: Profiling WPF Tools - not just for WPF

    Windows Presentation Foundation (WPF) has recently had a refresh to its performance tools. You can read more about it on the What's New for Performance Profiling Tools for WPF post. The suite of tools includes a bunch of very interesting tools, one of which is a string allocator profiler. The good...
  • Blog Post: Mutability in the .NET Framework

    Long on prose and short on code, this post just explores some patterns involving mutable/immutable objects in the .NET Framework (mutability from an external point-of-view, at least). The punch line comes at the end, for all of those interested in how this relates to ADO.NET Data Services. In the...
  • Blog Post: XAML Snippets in XamlPad

    One somewhat obscure feature of XamlPad is the ability to insert snippets in the text editor area. Right-clicking on this area shows a number of items you can insert, such as "Comment Selection" or "Multiline TextBox" (note that "Animated Background" accidentaly shipped using old syntax for animations...
  • Blog Post: Vacations and connecting dots

    I'll be leaving on vacations for a couple of weeks soon, so it's very unlikely that you'll see updates in that time frame here. Vacations are a good time to recharge batteries and spend time broadening horizons, which also helps connect dots sometimes... ADO.NET Data Services, the ADO.NET Entity...
  • Blog Post: Windows Performance Tools Kit available

    The Windows Performance Tools Kit is now shipping along with Windows SDK for Windows Server 2008 and .NET Framework 3.5 . A mouthful both, to be sure, but if you use either regularly it won't be long before they become just "xperf" and "the SDK". The tools are a great help to analyze performance,...
  • Blog Post: Drag and Drop with shell-style previews

    Adam Root has posted a step-by-step post on how to enable nice preview images across windows when implementing drag and drop. I haven't written on the topic in a while, but it's turned out to be a very popular source of emails even today, so I'm sure old-time readers will enjoy. Which gets me thinking...
  • Blog Post: VS 2008 Beta 2 available

    The announcement is right here . ScottGu has a recap of the articles he's posted so far here . For those who fell like they can't wait for the download, the "What's New" page is available on MSDN here . As you can see, there's a lot of developer love in this product. Some of the highlights that...
  • Blog Post: Rich Visualizations with Silverlight and Astoria

    How we get here I found myself wanting to have a nicer way of looking at a bunch of data I reference every now and then. Often I will whip up a quick HTML application to do this - it's ultimately a simple text file I can quickly edit and tweak, and the scripting environment allows me to access a lot...
  • Blog Post: Basics of data-bound drag-drop in WPF

    Also known as "how do I perform drag-drop between two data-bound list boxes"? Well, excellent question - here's a first shot at the answer, although there is much polish that could be added. This really isn't all that different from the series that was started a long time ago . Let's start with a...
  • Blog Post: A nice printable XAML reference page for DataColumn.Expression syntax

    I always found the text layout on the DataColumn.Expression page a bit odd. So, in the spirit of my last post , I decided to go ahead and do something similar for it - here is a reformatted version, which will print out in columns and should fit on a two-sided letter page. Of course, any and all errors...
  • Blog Post: A XAML-based System.Reflection.Emit.OpCodes reference

    So, I've been doing a bit of work with System.Reflection.Emit lately, and I've found that just having the list of the OpCodes fields around is pretty useful. I navigate to the page, but there are really a lot of opcodes, and I keep scrolling back and forth. Ideally I'd like to just be able to see them...
  • Blog Post: Quick online spell checker with WPF

    You can use the spell-checking functionality provided by the RichTextBox to quickly correct those pesky typos! Just navigate to something like the following, and you're done. <DockPanel xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " Margin='8px'> <TextBlock DockPanel...
  • Blog Post: Turning the pages with WPF

    Wicked cool application at http://www.bl.uk/ . The application allows you look at two notebooks from Leonardo da Vinci (the original stuff!), plus a few other very interesting, precious books. All powered by WPF - note that the application is an .xbap, which downloads without prompting and runs in...
  • Blog Post: XAML snippet to trigger WPF installation on IE7

    This is probably my blog post with the most acronyms in it. In any case, on to the contents. If a user navigation to a .xaml file using Internet Explorer 7 and .NET Framework 3.0 is not installed, then it will offer the user to install it. This is very handy if you, like me, are too lazy to look up...
  • Blog Post: Drag & Drop with attached properties? Must see to believe!

    Pavan has a post about a framework to implement drag & drop with attached properties in Windows Presentation Foundation - most nifty. This is just the first post of a series, so be on the lookout for future posts. He actually has a large number of interesting posts dealing with WPF or related...
  • Blog Post: GiveFeedback event in Windows Presentation Foundation Drag/Drop

    Although the documentation may not make it clear, GiveFeedback is an event that happens on the source side of a drag/drop operation. If you look at http://windowssdk.msdn.microsoft.com/en-us/library/system.windows.givefeedbackeventargs.effects.aspx , you’ll see that the arguments really have one interesting...
  • Blog Post: WPF DragDrop sample and Viewbox - beware...

    In a post a few months ago, I included a sample that showed how to use an adorner to display a 'preview' during a drag/drop operation. http://blogs.msdn.com/marcelolr/archive/2006/03/03/543301.aspx And yet... dire news came in - someone was having a problem with this. Someone played around with...
Page 1 of 2 (33 items) 12