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 SPConferences, SPDev, SPUserGroups, Silverlight | Leave a Comment »
Posted by Steve Pietrek on January 28, 2010
I will be in Indianapolis this weekend attending SharePoint Saturday Indianapolis. My presentation will be:
Developing Silverlight Applications for SharePoint
Learn how Silverlight 3 can be used to integrate rich, powerful applications into SharePoint. Walk through Silverlight basics (XAML, styles, layouts, and application settings), retrieving data from SharePoint lists and document libraries, managing code using the MVVM development pattern, and deploying the Silverlight controls to SharePoint.
Hope to see you there.
Posted in SPConferences, SPUserGroups | Leave a Comment »
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 | Leave a Comment »
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 »