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, Silverlight, XNA, and Windows Phone, Microcontroller programming with .NET Microframework, .NET Gadgeteer 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:
Silverlight
-
This connect bug describes an issue with creating certain types
of Silverlight projects in Visual Studio. If you're referencing
Silverlight 4 DLLs from a Silverlight 5 project, you may run into
this
code analysis/FXCop issue yourself if code analysis is part of
your process. The core of the problem is a versioning decision in
Silverlight 5 which results in compile-time violation due to
loadi...
-
You may have noticed that your current copy of Expression Blend
for Silverlight 5 expires in the next day or two. A new version of
Expression Blend Preview for Silverlight 5 is now out. Get it here.
This new version has the all important go-live license, and also
extends the expiration date to June 20, 2013 (over a year from
now)..
More information on the Expression Blend Team Blog.
-
Recently, a reader asked how they should go about
setting the Typography properties from code-behind.
The original question was about Silverlight, but the approach
works in WPF, Windows 8 and more.
Given the following markup:
<StackPanel>
<TextBlock x:Name="OriginalText"
FontSize="72"
FontFamily="Gabriola"
Text="Hello World!" />
...
-
Over the years, I've conditioned myself to use the Uri class
when surfacing web URLs in my application. Early versions of
Silverlight couldn't bind an image source directly to an instance
of a Uri because they lacked an appropriate type converter; the
usual workaround was to change the property to a string type.
Subsequent versions Silverlight added that capability and the
converter. For exam...
-
At the South Florida Code Camp last week, I gave an early
morning talk titled "Getting Started with XAML". In this talk, I
covered the basics of XAML, the property system, layout, and other
things you need to know as a XAML developer for WPF, Silverlight,
or Windows 8.
Slides
Attached to this post
Demos
It was all real-time stuff in this talk. No downloadable demos.
I...
-
At the South Florida Code Camp I gave a newer version of the
REST Silverlight talk using the just released MVC 4 Beta and
ASP.NET Web API.
This talk shows how to share code between different versions of
the framework, how to use the ASP.NET Web API from Silverlight, and
how to integrate a Silverlight application into an MVC 4 site.
Powerpoint Slides
Attached to this post
...
-
At the South Florida Code Camp, I gave the "Lap Around
Silverlight 5" talk. The slides and code are all available via the
links below.
Powerpoint Slides
Attached to this post
Demos and Examples
The Big List of What's New or Improved in Silverlight 5 - Pete
Brown's 10rem.net
Threading Considerations for Binding and Change Notification in
Silverlight 5
Crea...
-
The Windows Client Developer Roundup aggregates information of
interest to Windows Client Developers, including WinRT XAML, WPF, Silverlight, Visual
C++, XNA, Expression Blend, Surface, Windows
7, Windows
Phone, Visual Studio, WCF RIA Services and
more. Sometimes I even include a little jQuery and HTML5. If you
have something interesting you've done or have run across, or you
blog regu...
Published
Wednesday, February 08, 2012 |
Tagged:
.NET, WPF, Silverlight, XNA, CPP, WindowsClient, WindowsClientRoundup, Kinect, Windows8, XAML |
-
While doing the (long!) tech review for Silverlight 5 in Action,
my friend and former coworker Tom McKearney mentioned
that we should put together some code to make handling windows
across multiple monitors a reasonable task in Silverlight 5. Then,
on a mailing list, I recently saw the question:
Hi all -- I'm wondering if there is a maximum window size for
Silverlight documented any...
-
Late last week, I cracked open the Commodore 64 emulator
code once again, in preparation to post it. However, I had to
have a change made to the source control on CodePlex, so I had a
few days to make some changes. So far, it's shaping up quite
nicely:
I went back to the latest version of the Frodo C64
emulator source code and decided to port some of their changes
over to this ve...
-
The Windows Client Developer Roundup aggregates information of
interest to Windows Client Developers, including WinRT XAML, WPF, Silverlight, Visual
C++, XNA, Expression Blend, Surface, Windows
7, Windows
Phone, Visual Studio, WCF RIA Services and
more. Sometimes I even include a little jQuery and HTML5. If you
have something interesting you've done or have run across, or you
blog regu...
Published
Wednesday, January 11, 2012 |
Tagged:
.NET, Silverlight, 3d, XNA, CPP, WindowsClient, WindowsClientRoundup, Kinect, Windows8, XAML |
-
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
...
-
I recently posted an updated version of Silverlight reporting on
codeplex. Here's the overview.
This project, a unofficial project by Pete Brown of Microsoft,
provides a a very basic framework for building simple, short,
multi-page reports using Silverlight 5.
The intent is not to be an all-encompassing reporting solution,
or a solution for large reports. Instead, this is a set ...
-
This talk was an adaptation of two chapters from Silverlight 5
in Action. I started with a brief explanation of REST, and then
explained the solution we were going to build during the session.
The idea was to show how you can use REST in place of the heavier
Soap approach in many cases, and make your services accessible to
far more clients.
I also showed how to share model objects bet...
-
Look what just came out, and well in time to beat the Christmas
rush :) Yes, it's Silverlight 5. We had originally announced that
Silverlight 5 would be out by the end of this year, and I'm glad to
report that it has made it in in time to give everyone something
interesting to play with over the holidays. My congratulations to
the engineering, marketing, support, and documentation te...
-
The Windows Client Developer Roundup aggregates information of
interest to Windows Client Developers, including WinRT XAML, WPF, Silverlight, Visual
C++, XNA, Expression Blend, Surface, Windows
7, Windows
Phone, Visual Studio, WCF RIA Services and
more. Sometimes I even include a little jQuery and HTML5. If you
have something interesting you've done or have run across, or you
blog regu...
Published
Monday, November 28, 2011 |
Tagged:
.NET, WPF, Silverlight, 3d, XNA, Surface, WindowsClient, WindowsClientRoundup, Kinect, Windows8, XAML |
-
Well, I've completed the initial writing anyway. Anyone who has
written a book understands the, umm, pleasure of the multiple
editing cycles which shall follow. I have my normal development
editor review Thursday afternoon, and then it's turned over for
tech review the following week. Tom is really going to have his
hands full with the 1191 pages this book came in at before editing
and ...
-
The Windows Client Developer Roundup aggregates information of
interest to Windows Client Developers, including WinRT XAML, WPF, Silverlight, Visual
C++, XNA, Expression Blend, Surface, Windows
7, Windows
Phone, Visual Studio, WCF RIA Services and
more. Sometimes I even include a little jQuery and HTML5. If you
have something interesting you've done or have run across, or you
blog regu...
-
The Windows Client Developer Roundup aggregates information of
interest to Windows Client Developers, including WinRT XAML, WPF, Silverlight, Visual
C++, XNA, Expression Blend, Surface, Windows
7, Windows
Phone, Visual Studio, WCF RIA Services and
more. Sometimes I even include a little jQuery and HTML5. If you
have something interesting you've done or have run across, or you
blog regu...
Published
Monday, October 10, 2011 |
Tagged:
.NET, WPF, Silverlight, XNA, Surface, WindowsClient, WindowsClientRoundup, Kinect, Windows8, XAML |
-
What follows is a small pre-editing excerpt from chapter 33 of
Silverlight 5 in Action (without footnotes, annotations and other
publishing stuff). The chapter as a whole goes into greater detail
on using COM Automation, the Native Extensions for Silverlight, and
PInvoke.
Help me avoid putting my family out on the street to support my
unquenchable robotics, synthesizer, CNC and othe...
-
I'm writing a little sample for Silverlight 5 in Action. Part of
it involves a class which integrates with a 3d accelerometer sensor
on Windows. In order to use the accelerometer, I have to check to
see if elevated permissions is enabled before I go about
constructing objects which rely on COM automation. There's also a
fair bit of construction activity after that check to create the
ac...
-
Today I got a question on twitter asking how to enumerate
printers in Silverlight, so I put together this quick blog
post.
Silverlight lacks the PrinterSettings.InstalledPrinters
collection. So, how do you go about getting a list of installed
printers in Silverlight 5? PInvoke to the Win32 API, of course.
Alexandra Rusina on the Silverlight team wrote a
great article on PInvoke....