Pete Brown's Blog (POKE 53280,0)
Pete Brown writes on a variety of topics from XAML with the Windows Runtime (WinRT), .NET programming using C#, WPF, Microcontroller programming with .NET Microframework, .NET Gadgeteer, Windows on Devices, and even plain old C, to raising two children in the suburbs of Maryland, woodworking, CNC and generally "making physical stuff". Oh, and Pete loves retro technology, especially Commodore (C64 and C128). If the content interests you, please subscribe using the subscription link to the right of every page.
Archive for tag:
Tutorial-General-WPF
-
A reader of my Silverlight 5 book recently reached out to
me about threading and why I create some objects on the UI thread
in the examples. We discussed some of the reasons, but I felt this
would be a good topic to share with everyone. In fact, this is one
area where it would have been fun to go into great detail in my
book, but there simply wasn't the space. Threading and cross-thread
...
-
WPF currently, and Silverlight
in v5, enables you to create your own custom markup extensions.
Markup extensions are those little strings in XAML that are
typically (but not always) enclosed in {curly braces} which, as the
name implies, add new functionality to XAML. The most commonly used
markup extensions are the {StaticResource}, {TemplateBinding}, and
{Binding} extensions.
Creati...
-
An asynchronous network call is one in which you fire off a
method and don't block the thread while waiting for it to return.
This introduces some complexities since you have to somehow be
notified of the success or failure of the call, and need to somehow
retrieve the results.
Silverlight developers are used to making asynchronous network
calls because that's all the stack has suppor...
-
NuGet is package management system for .NET and Visual Studio.
It allows people to create simple packages that install files into
your projects, adds references etc. It makes it super simple to get
working components and even scaffolding into your application
without having to search your drive, manually find references,
resolve dependencies etc.
NuGet is a Visual Studio extension t...
-
In my previous post on creating a simple WPF Screen
Capture program, I showed the basics of using the Win32 API and
some WPF to take screen shots of other applications, regions on the
screen, or the full screen. In this post, we'll enhance that sample
to add a visible indicator of what window is being captured.
This example uses the full-screen almost-invisible WPF Window we
created i...
-
I keep a backlog of project/blog/video ideas on my machine here.
One that I've had sitting there for a bit, and something that
really interests me, is how to create a simple screen capture
(still image) program using WPF.
I use a ton of screen shots in my applications. Before I joined
Microsoft (when I was an MVP), I used Snag-it for just about
everything. On this new machine, I haven...
-
Starting with Windows Vista, the open and save file dialog boxes
have a panel on the left side containing favorite links. These
links are known as "Custom Places". Previously, the built-in
Windows dialogs were available only if you used the Windows Forms
versions. However, starting with WPF 4 on Windows 7 and Windows
Vista support of native file dialogs with custom places via the
FileDi...
-
Yesterday I wrote a post about different ways of working with
INotifyPropertyChanged. One of my readers (who only went by
"Guest") pointed out that binding "magically" worked in WPF with
POCOs (Plain Old CLR Objects) that didn't bother to implement
INotifyPropertyChanged. I thought for sure he/she was wrong … until
I tried it myself. Magic, I say! Magic!
Then again, as one of the WPF ...
-
The Silverlight and WPF binding system is extremely powerful.
With it, you can bind your UI to your viewmodels (or other backing
objects), bind control values to each other (for example, a slider
controlling an object's scale or rotation) all with little or no
code.
In order for binding to work, it requires a little cooperation
from code. The target of a binding statement (typically a...
-
Some of the Windows Forms developers I've spoken to have said
that one thing they want to learn is how to dynamically create
controls in WPF and Silverlight. In this post I'll show you several
different ways to create controls at runtime using Silverlight 4
and WPF 4.
First, we'll start with how to create controls in XAML. From
there, we'll move to dynamically-loaded XAML before we ta...
-
I've made it a personal goal this coming year to help Windows
Forms developers (who want to move) move to Silverlight and/or
WPF.
A common sticking point for development shops planning to adopt
Silverlight or WPF after years of work in something like Windows
Forms, is that they feel they need a design professional on-team in
order to build the same quality apps they've been used to bu...
Published
Friday, November 19, 2010 |
Tagged:
.NET, User-Experience-(UX), WPF, Silverlight, Windows-Forms, WindowsClient, Tutorial-General-Silverlight, Tutorial-Winforms-Modernization, Tutorial-General-WPF |
-
When meeting with other people at Microsoft, my computer is also
my phone. I rely on Office Communicator 2007 R2 more than many
other applications.
Family members wandering into my home office can't really tell
I'm on a call unless I happen to be talking right then. I normally
have my headphones on anyway, and I use my Samson mic for voice.
Usually my wife stands out of camera range a...
-
I've been tripped up on a problem in Shoebox Scan for several
weeks now. I'll pick it up for an hour or two on a Friday, get
nowhere, and put it down until later the next week. Today, I
finally figured out what the problem is. (Yes, I have been piddling
with this application since early this year. I'm pretty sure Scott has a
special ulcer just for me and Shoebox scan <g>)
Backgr...