Sign in
|
Join
|
Help
Pavel's Blog
Pavel is a software guy that is interested in almost everything
software related... way too much for too little time
Home
Contact
About
RSS
Atom
Comments RSS
Go
Tags
.NET
.NET 4
.NET 4.0
.NET 4.5
.NET2
64 bit
AI
AJAX
Algorithms
ASP.NET
Audio
Azure
BUILD
C#
C# 3.0
C# 4.0
C# 5.0
C++
C++/CX
C++0X
C++11
CLR
CLR Explorer
COM
COM Apartments
Console
courses
D&D
Debugging
DEV
Developer Academy 3
Device Drivers
DirectCompute
DirectX
food
Fun
Games
Graphics
Intel
Intellisense
Internals
Interop
ITPRO
LINQ
LINQ to XML
Mathematics
Media Foundation
MEF
Memory Map Viewer
Metro
MFC
Multithreading
Native API
Native Development
NLP
Numerics
OFFTOPIC
OpenDay
PARSING
PDC2008
ReSharper
Robotics
Roslyn
Silverlight
Silverlight 2
Task Parallel Library
TECH
teched
teched_il
TechEd2010
TechedIsrael2008
thoughts
Threading
Tips
Tutorial
video
Vista
Visual Basic
Visual C++
Visual Studio
Visual Studio 11
Visual Studio 2005
Visual Studio 2008
Visual Studio 2010
Visual Studio 2012
WebTech
Win32
WinDbg
Windows 8
Windows Devices User Group
Windows Phone
Windows Phone 8
Windows Phone User Group
Windows Platfrom User Group
Windows Runtime
Windows7
WPF
XAML
XNA
מכללת הי-טק
Archives
May 2013 (2)
April 2013 (2)
March 2013 (3)
February 2013 (2)
January 2013 (2)
December 2012 (3)
November 2012 (3)
October 2012 (5)
September 2012 (6)
August 2012 (4)
July 2012 (2)
June 2012 (4)
May 2012 (5)
April 2012 (4)
March 2012 (7)
February 2012 (7)
January 2012 (6)
December 2011 (6)
November 2011 (5)
October 2011 (5)
September 2011 (5)
August 2011 (5)
July 2011 (3)
June 2011 (3)
May 2011 (3)
April 2011 (3)
March 2011 (8)
February 2011 (4)
January 2011 (5)
December 2010 (5)
November 2010 (13)
October 2010 (4)
September 2010 (5)
August 2010 (7)
July 2010 (1)
June 2010 (3)
May 2010 (4)
April 2010 (1)
March 2010 (2)
February 2010 (2)
January 2010 (3)
December 2009 (1)
November 2009 (4)
October 2009 (5)
September 2009 (3)
August 2009 (1)
July 2009 (4)
June 2009 (3)
May 2009 (2)
April 2009 (3)
March 2009 (2)
February 2009 (5)
January 2009 (3)
December 2008 (2)
November 2008 (4)
October 2008 (7)
September 2008 (6)
August 2008 (5)
July 2008 (6)
June 2008 (3)
May 2008 (5)
April 2008 (2)
March 2008 (9)
February 2008 (4)
January 2008 (9)
December 2007 (6)
Navigation
Home
All Posts
RSS
Popular Tags
Browse by Tags
All Tags
»
.NET 4.5
(
RSS
)
.NET
.NET 4
C#
C# 5.0
C++
C++/CX
C++11
CLR
CLR Explorer
COM
DEV
Metro
MVVM
Numerics
OpenDay
PARSING
Silverlight
Task Parallel Library
Threading
Tips
video
Visual C++
Visual Studio
Visual Studio 11
Visual Studio 2010
Visual Studio 2012
Win32
Windows 8
Windows Phone 8
Windows Runtime
WPF
XAML
XAML as DSL
05 May 13 04:14 PM
|
pavely
|
2 comment(s)
About 3 years ago, when .NET 4 and Visual Studio 2010 were just released, I’ve blogged (part 1, part 2) about the changes that took XAML from its WPF inception to the System.Xaml namespace and System.Xaml.Dll assembly, to be available more generally, not just for WPF. I’ve shown that XAML is just a declarative way of creating objects, setting their properties – sometimes in interesting ways. I did promise at the end of that second post that I’d show how to use attached properties, but never did have...
C# 5.0: await and Reentrancy
28 January 13 04:45 AM
|
pavely
| with
no comments
The relatively new async/await keywords in C# 5.0 are truly great. I’ve been using them for a while now, and I always contrast these to the way things can be done in C++11 ; and even with the help of PPL tasks – it stands out as clearly victorious, with its ease of use and lack of verbosity. In fact, it’s so easy to use that I find myself creating new methods that are mostly “Async”, even if the benefit may not be that great – just because it’s easy to do. For example, suppose there is a method that...
Making HTTP calls in WinRT with C++
14 January 13 04:36 AM
|
pavely
| with
no comments
When working with Windows Store applications (“metro”), it’s sometimes necessary to make HTTP calls. one classic example is to register for push notifications . After obtaining a unique channel URI, the app needs to send that URI to its application server, as that particular URI is the one to use by the application server to execute a push notification against the Windows Notification Service (WNS). Getting the channel URI is fairly simple, with a call to the static PushNotificationChannelManager...
Preview of Blend 5 available
25 December 12 03:41 AM
|
pavely
| with
no comments
When Visual Studio 2012 came out, one thing was sorely missing. An Expression Blend tool that can handle WPF 4.5 applications. Blend for Visual Studio that is currently available only supports Windows 8 Store Apps, but not WPF (or Silverlight). A few days ago, Microsoft released a preview of Blend 5 (with Sketchflow), that’s able to work with WPF and Silverlight, along with Windows 8 Store apps. The tool can be downloaded from here: http://www.microsoft.com/en-us/download/details.aspx?id=30702 Microsoft...
Windows Phone 8: Integrating with the Wallet
08 November 12 11:18 AM
|
pavely
| with
no comments
Earlier this week, Microsoft held the Discovery event in Tel Aviv, Israel, with a distinguished guest, Steve Ballmer. In the event, Microsoft has officially launched Windows 8 and Windows Phone 8 (and XBOX 360 and Kinect…) in Israel. During the presentations, a wallet application on Windows Phone was shown, which was developed by us, CodeValue (and specifically by me ). This article and this one describe something about the app (in Hebrew). Here are some screenshots (some text is in Hebrew): In this...
Windows 8 Store Apps: Class Library vs. Windows Runtime Component
30 October 12 03:14 PM
|
pavely
|
1 comment(s)
When working with Windows 8 Store apps in C# (or VB, but I’ll stick with C#), there are several ways of creating reusable (or at least seemingly reusable) class libraries for Windows 8 Store projects. In this post, I’ll take a to look at the options, contrasting their features and usefulness. Looking at the new project dialog in Visual Studio 2012, under the Windows Store node (under Visual C# ), we can see the following: There is a third option, the traditional Class Library project located under...
WPF 4.5: Accessing bound collections on non UI threads
21 July 12 12:23 PM
|
pavely
| with
no comments
The single threaded behavior of WPF (and other UI technologies) requires that anything tied to the user interface be manipulated on the UI thread, incuding data bound objects. There are several ways to do that, assuming the code is on a non-UI thread, such as using Dispatcher .( Begin ) Invoke , capturing and using the current SynchronizationContext , etc. Specifically, if some collection is data bound, items cannot be added or removed from it from a non-UI thread. WPF 4 (and earlier) throws an exception...
Windows 8 Metro: C++/CX vs. C#
25 June 12 10:05 PM
|
pavely
|
9 comment(s)
Lately, I’ve been doing development of a Windows 8 Metro application using C++ only (yes, that’s right, no C#) for a client. The reasons for that are mainly an existing C++ code base and a good C++ acquaintance that the team in question has. I’ve been using the new C++/CX extensions that make it easier to work with the Windows Runtime (WinRT); easier with respect to the Windows Runtime Library (WRL) that uses standard C++ with a bunch of helpers (such as ComPtr<T> as a smart pointer for a COM...
My Visual Studio 2012 & C# 5.0 Presentation
18 June 12 02:02 PM
|
pavely
|
1 comment(s)
This morning I presented a session on new features in Visual Studio 2012 and the new language features in C# 5.0. Thank you all for attending! The presentation and demos can be downloaded from https://skydrive.live.com/?cid=45C1880107EBE12C&id=45C1880107EBE12C%2118700
Visual Studio 2012 and C# 5.0: Upcoming session
02 June 12 03:47 PM
|
pavely
| with
no comments
I’m going to give a session at Microsoft offices in Ra’anana (Israel), on the 18th of this month, showing new features in Visual Studio 2012 (RC released a few days ago) and the new features of C# 5.0 (there are two. If you think about async/await – that’s one). The event is free, but you should register at https://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032514296&Culture=he-IL See you there!
WPF 4.5 Cookbook
26 April 12 07:40 PM
|
pavely
| with
no comments
A few months back, I was approached by Packt publishing , asking me to write a WPF book, in their “cookbook” style, and I accepted. I haven’t written an entire book before, but I have written dozen of courses for Hi-Tech College, John Bryce Training and now for CodeValue , in a range of topics, from Windows Internals and device driver development, to advanced C++, to basic and advanced .NET topics, to WPF, and even some oddities such as the Windows Media Foundation . Writing a book, however, is different...
WPF 4.5: Markup Extension for Events
07 April 12 06:34 PM
|
pavely
| with
no comments
One of the new features coming in WPF 4.5 (already available through the Visual Studio 11 Beta and .NET 4.5 Beta) is the ability to create markup extensions that work on events (as opposed to properties, which have always had this capability). Markup extensions for properties are crucial, and there are quite a few useful ones, such as {Binding } and {StaticResource} . Would this ability be useful for events? One such case is when a command is needed to be invoked ( ICommand ) because of some event...
What’s New in CLR 4.5 Debugging API?
03 April 12 07:51 PM
|
pavely
| with
no comments
The most used command in the SOS extension DLL is probably !dumpheap . This command is able to show every object on the managed heap. This capability has no match within Visual Studio. The reason is that Visual Studio uses the CLR debugging API , that doesn’t seem to have this capability. At first glance, the ICorDebugProcess interface has the perfect method: EnumerateObjects . What could be better than that? Unfortunately, the documentation states that this method is not implemented… bummer. A while...
My Async Programming with C# 5.0 & .NET 4.5 session is available for viewing
28 March 12 10:26 PM
|
pavely
| with
no comments
The session I gave at Microsoft Ra’anana two days is available on channel 9 . This was in Hebrew, so if this is not your native tongue, you can probably still enjoy the code demos. Here are the links: Part 1 Part 2 Enjoy!
Asynchronous Programming with C# 5.0 & .NET 4.5 Session
26 March 12 01:38 PM
|
pavely
|
1 comment(s)
This morning I gave a session on asynchronous programming with C# 5.0 at Microsoft offices in Ra’anana. Thank you all for attending, it was great fun! As promised, the presentation slides and demos are attached below (the Windows 8 demos can naturally be run on Windows 8 only). The session was recorded, so if you missed it, or just want to hear the same jokes again, the recording will be available in a few days – check out the MSDN blog for details of availability. Async Demos Async Metro Demo Presentation...
More Posts
Next page »