Everything SharePoint and XAML

My continuous learning of SharePoint, XAML, Silverlight, Windows Phone 7, Windows 8, Office, VSTO, C#…

Archive for the ‘Silverlight’ Category

2012 SharePoint Technical Conference (SPTechCon) Presentations

Posted by Steve Pietrek on March 3, 2012

I was fortunate to speak at the 2012 SPTechCon in San Francisco. I presented two topics:

1. Creating Native Windows Phone 7 Applications for SharePoint Deck Source
2. Creating Silverlight Line of Business Applications for SharePoint Deck Source

I uploaded the decks and source to Skydrive.

Advertisements

Posted in Silverlight, SPConferences, Windows Phone 7, XAML | Comments Off on 2012 SharePoint Technical Conference (SPTechCon) Presentations

Slide Deck from SharePoint Saturday Indianapolis 2010

Posted by Steve Pietrek on February 1, 2010

Thank you to everyone who attended my “Silverlight 3 in SharePoint 2007” presentation at SharePoint Saturday Indianapolis on 1/31/2010. The deck and source code are available. I received many great questions and I will be working on updating my deck to incorporate the answers.

Thinking about starting a series of blog posts on my Silverlight in SharePoint experiences. Heck, have 3 blog posts based on my experiences today only. Any interest?

Posted in Silverlight, SPConferences, SPDev, SPUserGroups | Comments Off on Slide Deck from SharePoint Saturday Indianapolis 2010

Silverlight: Tooltip for each ListBox item

Posted by Steve Pietrek on January 13, 2010

Below is a code example of defining a tooltip for each ListBox item.

<ListBox.ItemTemplate>
 <DataTemplate>
  <StackPanel>
   <ToolTipService.ToolTip>
    <ToolTip>
     <TextBlock Text="{Binding Summary}" Style="{StaticResource TooltipFont}"/>
    </ToolTip>
   </ToolTipService.ToolTip>
   <HyperlinkButton NavigateUri="{Binding DisplayLinkUrl}" TargetName="_blank" BorderThickness="0">
    <TextBlock Text="{Binding Published, Converter={StaticResource ShortDateConverter}}" Style="{StaticResource TitleFont}"/>
   </HyperlinkButton>
   <TextBlock Text="{Binding TruncSummary}" Style="{StaticResource SummaryFont}"/>
  </StackPanel>
 </DataTemplate>
</ListBox.ItemTemplate>

Posted in Silverlight | Comments Off on Silverlight: Tooltip for each ListBox item

Silverlight: Avoid Caching When Using WebClient Class

Posted by Steve Pietrek on November 13, 2009

I have run into a puzzling issue the past few weeks. When using the WebClient class to retrieve SharePoint content, the content would not update when refreshing the page (F5) or refreshing the content (execute the WebClient object).

The issue was actually quite easy once I thought through what was happening. It also didn’t hurt that Fiddler only showed the initial query. Definitely a “Doh!” moment. To solve the issue, I pass another query string named “IgnoreCache” with the current date/time as the parameter.

public void FetchEvents() {
string sUrl = siteUrl + "_vti_bin/owssvr.dll?Cmd=Display&List=" + eventsListId + "&XMLDATA=TRUE&IgnoreCache=" + DateTime.Now;

WebClient sp = new WebClient();
sp.OpenReadCompleted += SpOpenReadEventsCompleted;
sp.OpenReadAsync(new Uri(sUrl));
}

More on Silverlight/SharePoint later…

Posted in Silverlight | 1 Comment »