Essential WPF
The Hitchhiker’s Guide to WPF, Windows Phone and Silverlight
Sign in
|
Join
|
Help
Home
Contact
About
RSS
Atom
Comments RSS
Search
Tags
.NET
3D
Animation
Asynchronous
Blend
Blendability
CAG
CAL
ChevronWP7
Cider
Codeplex
CodeValue
Coding4Fun
Conference
Controls
Course
Custom Control
Design
DEV
DevAcademy3
Essential WPF
Expression Tools
Gadgets
Homebrew
howto
IDCC09
Imaging
ITPRO
Live
Live Blogging
Localization
MEF
Metro Style
Microsoft
Multi Touch
MVVM
noob
OFFTOPIC
Open House
Open Source
Pattern
PDC08
PDC09
PDC10
Performance
Prism
Promo
Quiz
SDP
Sela
Silverlight
TECH
TechEd
TechEdIsrael2008
Theme
Thoughts and Ideas
Tips & Tricks
Tweet Me!
Twitter
User Group
Windows 7
Windows 8
Windows Live Writer
Windows Phone
Windows Phone 7
Windows Phone Assets
Windows Phone Mango
Windows Runtime
WPF
XNA
News
Navigation
Home
All Posts
RSS
Popular Tags
Archives
March 2012 (2)
February 2012 (3)
January 2012 (5)
December 2011 (8)
November 2011 (2)
October 2011 (4)
September 2011 (4)
August 2011 (8)
July 2011 (8)
June 2011 (7)
May 2011 (5)
April 2011 (1)
March 2011 (4)
February 2011 (4)
January 2011 (8)
December 2010 (1)
November 2010 (9)
October 2010 (11)
September 2010 (1)
July 2010 (2)
January 2010 (1)
December 2009 (2)
November 2009 (15)
October 2009 (2)
September 2009 (6)
August 2009 (5)
July 2009 (1)
April 2009 (1)
January 2009 (2)
November 2008 (3)
October 2008 (1)
September 2008 (5)
August 2008 (4)
July 2008 (5)
May 2008 (1)
April 2008 (4)
March 2008 (3)
February 2008 (1)
January 2008 (2)
December 2007 (4)
November 2007 (1)
October 2007 (4)
September 2007 (3)
July 2007 (1)
June 2007 (1)
May 2007 (11)
January 2007 (1)
December 2006 (3)
November 2006 (2)
October 2007 - Posts
62
Comments
WPF Localization - On-the-fly Language Selection
by
Tomer Shamam
Download code ver 1.3 from here . Many of my customers asked me: How WPF supports localization and globalization? Is there any built-in mechanism for choosing a language on-the-fly, at runtime and without closing any window? How do I translate formatted text with parameters? Well..., you know the story,... aren't you!? No? So start by reading this , and this . Still confused? continue with this and also this . As you can see, there is more than one solution. Each has its pros and cons. The WPF...
תגים:
WPF
,
Custom Control
,
Localization
5
Comments
WPF Official Image Interop
by
Tomer Shamam
As I wrote my few last posts about how to access the BitmapSource WIC image pixels, I have found a post in the MSDN forum, which exposes a static class called Imaging . This amazing class which somehow was very hard to find, can do a great work with image-interop. Looking inside the MSDN for the Imaging class, I found the following methods: CreateBitmapSourceFromHBitmap CreateBitmapSourceFromHIcon CreateBitmapSourceFromMemorySection The CreateBitmapSourceFromMemorySection is the best match for creating...
תגים:
WPF
,
.NET
,
Imaging
,
Video
2
Comments
WPF Image Processing Under the Hood
by
Tomer Shamam
In the last two posts I have showed how to create a BitmapSource image and access its underlying WIC image, for manipulating its pixels. In this post I will explain how does the WICBitmap* works. Download the code from here . Looking inside the BitmapSource class using Reflector , it figures out that it encapsulates a WIC image (_ wicSource ). The WICBitmap class uses reflection to retrieve this private field: public WICBitmap( BitmapSource source) { Type bitmapSource = typeof ( BitmapSource ); FieldInfo...
תגים:
WPF
,
.NET
,
Tips & Tricks
,
Imaging
2
Comments
WPF Raw Video
by
Tomer Shamam
In my last post I showed how to access the WPF's BitmapSource underlying WIC image, and I promised to explain my code, and also to post an Image stream (Video) code based on my solution. In this post I will quickly talk about the unique CompositionTarget class, and I will show how to render a Raw Video using its Rendered event. Download the code from here ( FYI - I refractor the code from the last post and fixed several bugs ). I will start by reminding one of the disadvantages of my WICBitmap...
תגים:
WPF
,
.NET
,
Asynchronous
,
Tips & Tricks
,
Imaging
,
Video