Monthly Archives: May 2011 - Page 3

Making an activity’s display name readonly in the Workflow 4 designer

To make an activity’s display name readonly, it isn’t enough to use the ReadOnlyAttribute on the DisplayName. In order to do this, create a custom PropertyValueEditor that displays a string in a text block, then declare an editor attribute on the “DisplayName” property of your activity. The following code demonstrates how to create a read-only custom PropertyValueEditor.

public class ReadOnlyStringEditor : PropertyValueEditor
{
    public ReadOnlyStringEditor()
    {
        FrameworkElementFactory factory = new FrameworkElementFactory(typeof(TextBlock));
        factory.SetBinding(TextBlock.TextProperty, new Binding("Value"));
        this.InlineEditorTemplate = new DataTemplate();
        this.InlineEditorTemplate.VisualTree = factory;
    }
}

 

The following code demonstrates how to assign the custom property editor. This should be done in the constructor for the designer.\

// Add attribute onto MyCustomActivity.DisplayName
AttributeTableBuilder builder = new AttributeTableBuilder();
builder.AddCustomAttributes(typeof(Activity), "DisplayName", new EditorAttribute(typeof(ReadOnlyStringEditor), typeof(PropertyValueEditor)));
MetadataStore.AddAttributeTable(builder.CreateTable());

Finally, assign the display name in the custom activity’s constructor.

?

this.DisplayName = "Custom Sequence Activity";

MSP Voice: Omri Wallach’s big app idea

It is common for the human brain to sometimes have the best ideas on a certain subject when completely focused on something else. This is exceptionally true to University students, but can also be referred to as ‘procrastinating’. Case in point: There I was, studying for my final exams and living off of coffee and hot pockets, when a brilliant idea for a Windows Phone 7 app finally lodges itself in my brain. You get ideas from the strangest sources, and mine was of course spur-of-the-moment.

I listen to music constantly when I study (or work, or live for that matter), and when there is no source of music I make my own. Tapping on tables, humming tunes… I must be the pet peeve of every co-worker in existence. So, in the midst of studying with no music and humming some nonsensical tune, I get an epiphany. What if there was an app for that? Then, instead of studying (because my brain hurt of boredom), I expanded the idea. An app that could make basic beats and background music for songs. You set a bass-line, set a snare on repeat, set a couple of notes on a trumpet to loop every 4 bars, and you have the building blocks to the next great pop-song. Save all your blocks together as an mp3, plug it into your computer program later, and really make the music happen.

The key is that instead of having to jot down notes on a piece of paper or try to remember a great idea in your head (think “dum dum da da daaaa dum dum”), you literally save your idea and master it later. That being said, no one steal my idea, as the 3rd and final round of the Battle of the Apps is accepting submissions right now. A free phone and a potential trip to Australia? You bet I’m going to submit my app. See you on the judging side.

Omri Wallach
Microsoft Student Parter | UBC

The third and final round of Battle of the Apps (http://battleoftheapps.ca) closes on June 15th.

MSP Voice: Omri Wallach’s big app idea

It is common for the human brain to sometimes have the best ideas on a certain subject when completely focused on something else. This is exceptionally true to University students, but can also be referred to as ‘procrastinating’. Case in point: There I was, studying for my final exams and living off of coffee and hot pockets, when a brilliant idea for a Windows Phone 7 app finally lodges itself in my brain. You get ideas from the strangest sources, and mine was of course spur-of-the-moment.

I listen to music constantly when I study (or work, or live for that matter), and when there is no source of music I make my own. Tapping on tables, humming tunes… I must be the pet peeve of every co-worker in existence. So, in the midst of studying with no music and humming some nonsensical tune, I get an epiphany. What if there was an app for that? Then, instead of studying (because my brain hurt of boredom), I expanded the idea. An app that could make basic beats and background music for songs. You set a bass-line, set a snare on repeat, set a couple of notes on a trumpet to loop every 4 bars, and you have the building blocks to the next great pop-song. Save all your blocks together as an mp3, plug it into your computer program later, and really make the music happen.

The key is that instead of having to jot down notes on a piece of paper or try to remember a great idea in your head (think “dum dum da da daaaa dum dum”), you literally save your idea and master it later. That being said, no one steal my idea, as the 3rd and final round of the Battle of the Apps is accepting submissions right now. A free phone and a potential trip to Australia? You bet I’m going to submit my app. See you on the judging side.

Omri Wallach
Microsoft Student Parter | UBC

The third and final round of Battle of the Apps (http://battleoftheapps.ca) closes on June 15th.

Silverlight ???5?27?????

?????????

UX??????5??????Silverlight????????????????

Silverlight??

?320??????????????????????????????????????????????????????????????????????????????????????????????????????????

??????MVVM?????????????????????????????????????????????????????P&P?????????????????????????

?????????????????????????

?????

The Windows Azure Pricing Calculator

  Um dos pedidos recorrentes é alguma ferramenta para auxiliar as empresas no cálculo de contratação dos serviços da Plataforma Windows Azure. A Microsoft liberou publicamente “The Windows Azure Pricing Calculator”. Através dela, um usuário pode manipular facilmente a taxa de cada serviço e identificar na hora quais os valores e ofertas que adequadas na contratação. Ref.: http://www.microsoft.com/windowsazure/pricing-calculator/ Até mais, JP Clementi @jpclementi…(read more)

Infragistics Developer Days 8, ????????

?????????

4??????????????????????????????????7??????????????????????????????????????????

image

12?????????????????????????????????????

??????????????Silverlight 5 Beta????????????????WCF RIA Services ?Toolkit April????(DomainCollectionView?MVVM?)???????????????

????????????????????????????????????

?????

Logon request for CRM 2011 IFD is not redirected to CRM from the external Endpoint ADFS

Recently we were confronted with the following situation:

“Logon request for CRM 2011 IFD is not redirected to CRM from the external Endpoint ADFS.”

No further useful error messages.

This is because you are using an "-" or an "number" in the auth endpoint.

We could address this behavior, by creating a new DNS record named auth.yourcloud.de (and updating all host files):

  1. Run through the IFD wizard in Deployment Manager and change the auth URL to auth.yourcloud.de
  2. In ADFS, open the properties on the relying party for the external (IFD) CRM endpoint, then update the URL from auth-2.yourcloud.de (or auth2.yourcloud.de) to auth.yourcloud.de
  3. Close the properties and right-click on the relying party and choose update federation metadata.

This information is also included in the new version of the Microsoft Dynamics CRM 2011 and Claims-based Authentication.doc, that is available here: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=9886ab96-3571-420f-83ad-246899482fb4

Note: Please always download the latest version of this document to be sure that you have all current know information.

More additional info:

AD FS 2.0 Content Map Wiki Page (http://social.technet.microsoft.com/wiki/contents/articles/2735.aspx).

sviluppaperwindows.it, il nuovo punto di ingresso per chi vuole sviluppare per Windows, in tutte le sue forme

E’ online da qualche giorno sviluppaperwindows.it, la nuova pagina su MSDN che permette di entrare nel mondo dello sviluppo per Windows in tutte le sue forme: Windows 7, Windows Phone, Windows Azure, Windows Live, passando da Internet Explorer 9 (e 10 Smile), Silverlight e .NET, utilizzando Visual Studio 2010 per sfruttare al meglio tutte queste tecnologie.

Nel sito troverete in primo piano download come le Native Extension per Silverlight e il Windows API Code Pack per .NET, una serie di White Paper, gli esempi di codice, i kit di autoformazione, i video su Channel 9 e BE IT, i forum.

Buona navigazione!

PowerShell Diversion #3: PowerShell Week

Last week was “PowerShell Week” in our office*.  In an effort to introduce my colleagues to the wonders of PowerShell, I arranged a series of “PowerLunches”, each one lasting an hour and covering a different aspect of PowerShell scripting.   Enrolment was open to anyone in the office, and people were free to attend as many of the sessions as they wanted.

The week was a great success, but now I need to send a follow-up email.   I have to target it to just the attendees, so can’t just send an office-wide mail. The problem is that all I have are the separate attendee lists for each session (as CSV files), and, since attendance was more-or-less random, there is a lot of duplication between lists:

Attendee Lists

Can you use PowerShell to generate a single list of attendees and email addresses?  While making your list, consider these points:

  • The list must be in alphabetical order by surname
  • The list must account for everyone who attended at least one session, but should have no duplicate entries
  • Although there are no two people in my office with same name, make sure your code could handle a situation where two attendees did have the same name (but, of course, different email addresses)?

While you’re at it, can you work out who attended the most sessions, and who attended the fewest?

Some hints, if you need them.

* – If any of my colleagues are reading this, no, you didn’t miss out – last week wasn’t “PowerShell Week”.  I made that up.  Wouldn’t it be great, though?

WPC 2011: Why Attend and How to Make the Most of Your Investment – Web Seminar

Are you still seeking that compelling reason to attend Microsoft Worldwide Partner Conference 2011 in Los Angeles? Join us on June 9 at 10:00 AM PT to hear from Lori Stutsman of Extra Mile Marketing, Inc. as she virtually navigates you through WPC 2011. Building off of her past experiences she’ll share information on keynote sessions, session tracks, structured networking, social networking, the Expo, fun parties for US partners, the US partner lounge, and other special events.

Register for this web seminar on the Partner Learning Center.

Also, don’t forget to visit PartnerSource for a comprehensive list of the various Microsoft Dynamics related activities happening at WPC 2011.

–Kevin