Microsoft LiveLabs Pivot users can share the URL with the filters they applied and the view selected on their Pivot. All these applied filters are stored in the URL as query string.
1. You can see the full URL in Pivot by pressing CTRL+ALT+U anytime.
2. You can open Pivot using command line with -showfulluri option.
In Silverlight Pivot Viewer,
1. There is a Property called ViewerState, which gives the current view with applied filters and view.
This viewerstate can be used while loading the collection to go that view directly.
pivotViewer.LoadCollection("http://MyServer/MyCollection.cxml", viewerState);
Showing posts with label Silverlight. Show all posts
Showing posts with label Silverlight. Show all posts
Wednesday, June 30, 2010
Way to access current Item's facets in Microsoft LiveLabs Silverlight PivotViewer control
Here is the simple way to access PivotViewer's current selected item and its facets.
PivotItem pi = pivotViewer.GetItem(pivotViewer.CurrentItemId);
if (pi.Facets.ContainsKey("My facet name"))
textBlock.Text = pi.Facets["My facet name"][0];
To Access Title,
pi.Name
For Description, you need to use similar to facet.
pi.Facets["Description"][0];
For URL or Href,
pi.Href
PivotItem pi = pivotViewer.GetItem(pivotViewer.CurrentItemId);
if (pi.Facets.ContainsKey("My facet name"))
textBlock.Text = pi.Facets["My facet name"][0];
To Access Title,
pi.Name
For Description, you need to use similar to facet.
pi.Facets["Description"][0];
For URL or Href,
pi.Href
Labels:
C#.Net,
Livelabs,
Microsoft,
Pivot,
Pivotviewer,
Silverlight
Tuesday, June 29, 2010
Microsoft Livelabs Sivlerlight PivotViewer
Microsoft Livelabs Sivlerlight PivotViewer control is avaialble today. Here is the learn and downlaod link.
http://www.silverlight.net/learn/pivotviewer/
Pivot is a great tool to visualize data and this Silverlight client tool makes the collections to be integrated in any website.
http://www.silverlight.net/learn/pivotviewer/
Pivot is a great tool to visualize data and this Silverlight client tool makes the collections to be integrated in any website.
Subscribe to:
Posts (Atom)