Sign In
Yet Another Coding Blog
A Redmond dev blog... from Sydney; by Avi Pilosof.
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
About
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
api
architecture
asp.net
bacon
games
graphics
mesh
mvp
mvvm
programming
silverlight
software
ui
visual studio
win8
windows phone
wpf
Archive
Archives
September 2011
(4)
August 2011
(1)
December 2010
(2)
October 2010
(6)
April 2010
(1)
November 2009
(1)
October 2009
(1)
July 2009
(1)
March 2009
(1)
February 2009
(2)
December 2008
(1)
October 2008
(3)
September 2008
(3)
August 2008
(4)
July 2008
(8)
June 2008
(12)
MSDN Blogs
>
Yet Another Coding Blog
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Yet Another Coding Blog
Development Tip – Dispatching calls to the UI thread
Posted
7 months ago
by
AviP
1
Comments
In Silverlight and WPF, if you wanted to update the UI from a thread you had launched, it was important that the UI update be executed on the UI thread, lest you get an invalid-cross-thread-access error. You could ensure this by initially getting a...
Yet Another Coding Blog
Development Tip – Tab Control
Posted
8 months ago
by
AviP
0
Comments
I'm trying to replicate a tab control in the Windows 8 //BUILD release. I’m not talking about your traditional tab control with grey tabs and a static appearance; rather something that we’ve seen throughout the demos at //BUILD; a set of clean...
Yet Another Coding Blog
Development Tip – Packaging and loading files
Posted
8 months ago
by
AviP
0
Comments
In Windows 8 I want to have a file in my solution which is packaged as part of the application, then read at runtime. It’s not immediately obvious how to do this because the app is running in an environment we’re not used to, and using StorageFile...
Yet Another Coding Blog
Development Tip - ObservableCollection doesn't work
Posted
8 months ago
by
AviP
7
Comments
Just getting started with Win8 development, and will note what I learn in a series of posts. I'm finding that ObservableCollection isn't being honored by XAML elements in the //BUILD version of the tools. More specifically, either it's not firing...
Yet Another Coding Blog
A simple pattern for AJAX with MVC
Posted
9 months ago
by
AviP
2
Comments
This is mostly brainstorming; I’ve written some proof-of-concept (POC) code, and would love feedback. I expect to hear that this has already been done earlier/better/prettier. The requirements: A very common pattern for our intranet sites is a page with...
Yet Another Coding Blog
Windows Phone App 4: BabySoother
Posted
over 2 years ago
by
AviP
0
Comments
They say necessity is the mother of invention... A new baby plus a few weeks of paternity leave were the drivers in this case. The idea for this app started as a simple white-noise generator, and was basically a big “Play” button that played a recording...
Yet Another Coding Blog
The simplest way to do design-time ViewModels with MVVM and Blend.
Posted
over 2 years ago
by
AviP
4
Comments
The problem is this: You’ve created your Views and ViewModels, but when you view them in Blend, you either see nothing, or the data you see is not useful for testing what you want in the view. There are various ways to deal with this, including...
Yet Another Coding Blog
Windows Phone App 3: Fact-Of-The-Day
Posted
over 2 years ago
by
AviP
1
Comments
No prizes for guessing what this application does, but I will reveal it just in case: When you start the application, it loads a bunch of trivia/facts from its own database as well as various RSS feeds, then shows them to you randomly. Here’s...
Yet Another Coding Blog
Windows Phone App 2: MobileMobile, a fun game for toddlers.
Posted
over 2 years ago
by
AviP
0
Comments
The second application I wrote for WP7 is a simple and fun game for tiny kids. The name - which I expect will confuse people – is a combination of “mobile” as in “This is running on a mobile phone”, and “mobile” as in “babies like to bash the animals...
Yet Another Coding Blog
Windows Phone App 1: Feedr, an RSS reader.
Posted
over 2 years ago
by
AviP
0
Comments
My favorite way to learn a platform/language/technique is to just dive in and experiment, so for Windows Phone 7 (WP7) I started writing some apps. The first one I wrote is “Feedr”, which is an RSS reader: Here’s the marketplace link (you need Zune installed...
Yet Another Coding Blog
Expression Design: Problems with exporting slices, wrong image sizes.
Posted
over 2 years ago
by
AviP
3
Comments
These little things can drive you nuts… I found a great blog post that makes it trivial to [re]generate the multiple images required for a Windows Phone Marketplace submission. For some reason, it was pulled (maybe due to the bug I’m about to describe...
Yet Another Coding Blog
Programmatically supporting Windows Phone themes with differing colors for text
Posted
over 2 years ago
by
AviP
0
Comments
The marketplace guys just rejected my application because the text was unreadable when the user switched from the “Dark theme” to the “Light theme”. Firstly, amazing that they went through manual testing to find a bug like this. Secondly, I feel silly...
Yet Another Coding Blog
Windows Phone: Taking screenshots for marketplace submissions
Posted
over 2 years ago
by
AviP
3
Comments
When you submit your application to the marketplace, there’s an option for including screenshots. However, your submission will be rejected if the screenshots aren’t exactly to spec: They must be 480x800, and not include any of the emulator chrome. Taking...
Yet Another Coding Blog
Windows Phone: Frame/Page navigation and transitions using the TransitioningContentControl
Posted
over 2 years ago
by
AviP
1
Comments
Windows Phone 7 supports the built-in Silverlight Frame/Page navigation system , which is easy to use and maintain. Unfortunately, it’s not as slick-looking as the panorama navigation shown in all the phone demos. Sooner or later there will be a few panorama...
Yet Another Coding Blog
MVVM – This might hurt a little…
Posted
over 3 years ago
by
AviP
5
Comments
This is an attempt at a collaborative post; I’ll fill in more data if/when people make suggestions; please add comments on more problems and other/better solutions – I’ll add the links. Overall, MVVM is very attractive – but all the screen casts I’ve...
Yet Another Coding Blog
Real-time list filtering with Silverlight, MVVM, and PagedCollectionView
Posted
over 3 years ago
by
AviP
13
Comments
The Model-View-ViewModel pattern is very good for forcing clean UI code. Ideally, you want to end up with zero code in your .xaml.cs file – everything should be data-bound. As nice as this sounds, sometimes it can get so tempting to break this rule in...
Yet Another Coding Blog
Useful C# method for unit testing
Posted
over 3 years ago
by
AviP
3
Comments
I’m unit testing a UI that needs to show some lists in various sorted orders, and I wanted to ensure that my tests would cover that. I found this method to come in handy: 1: public static bool IsOrderedBy<T>( this IEnumerable<T> coll...
Yet Another Coding Blog
Silverlight RPG: Steel Saga
Posted
over 3 years ago
by
AviP
0
Comments
My friend Darren who wrote the hilarious Buddy Knavery game has released a preview of his new project called Steel Saga. http://www.steelsaga.com It’s an old-style RPG written in Silverlight, and seems quite deep. At the moment there are only two “zones...
Yet Another Coding Blog
Live Mesh Applications – whoah.
Posted
over 3 years ago
by
AviP
1
Comments
I’ve been playing with Live Mesh for a long time now, and have been loving it. During this time I’d been hearing about applications for Live Mesh, and while it sounded interesting in theory I didn’t really get what the point would be. Then I watched this...
Yet Another Coding Blog
Silverlight Game Contest: $5000 prize
Posted
over 3 years ago
by
AviP
3
Comments
The site is a little low on details/rules, but the prize seems pretty sweet: http://www.serverquestcontest.com
Yet Another Coding Blog
Be Paranoid. Be Very Paranoid.
Posted
over 4 years ago
by
AviP
2
Comments
Do you maintain an application with a backend database? Does that application ever write to the database? Be afraid. The worst situation to be in with respect to the above is when a customer mails you and says: “Why is my data gone?” 99% of the time,...
Yet Another Coding Blog
WPF: Allow your users to define their own styles using XAML
Posted
over 4 years ago
by
AviP
0
Comments
An application I’ve been working on has the vague property of “displaying items on the screen”, and a fairly unusual requirement which specifies that users be able to completely define how the items look. Our items are displayed on a timeline and can...
Yet Another Coding Blog
WPF: Supporting command line arguments and file extensions
Posted
over 4 years ago
by
AviP
6
Comments
Traditionally, handling command-line args in an app has been a simple case of reading arguments from the “int main()” function (or equivalent). In WPF this changes somewhat. The usual setup is that you have your App.xaml.cs, which loads your initial window...
Yet Another Coding Blog
You’re asking for the wrong thing.
Posted
over 4 years ago
by
AviP
7
Comments
Just stumbled upon this article by John Dvorak titled “My Windows 7 Wish List”, and I see the same pattern as many of the other fruitless wish list articles. Maybe IHBT … As a user, the user experience (UX) is the only thing that ever matters to you ...
Yet Another Coding Blog
Trivial but useful extension method
Posted
over 4 years ago
by
AviP
3
Comments
Don’t know why I didn’t write this before; it makes code very readable. Often when you write anything graphics related, you want to constrain coordinates to window edges (for example). So a simple method: 1: /// <summary> 2: /// Ensure that...
Page 1 of 3 (51 items)
1
2
3