Enjoy
Showing posts with label Silverlight. Show all posts
Showing posts with label Silverlight. Show all posts
Friday, June 22, 2012
ArcGIS API for Silveright 3.0 Released
I like Silverlight as a programming language, and now the ArcGIS API for Silveright is released. You can check out the announcement here.
Labels:
Programming,
Silverlight
Friday, May 11, 2012
In the Esri's ArcGIS for SharePoint SDK, you can create buttons in the SharePoint ribbon. In this example, I will talk about the OnHidden event. This event fires when the Hide() is called on the floating window after it is displayed. This can be used to signal a process that the event is finished, and now you can do some other process or show another form etc...
Here I just implemented ICommand, and kept everything default. I created a custom event EventHandler called OnHidden that will get call when the floating window is hidden or closed by a user.
Enjoy
Here I just implemented ICommand, and kept everything default. I created a custom event EventHandler called OnHidden that will get call when the floating window is hidden or closed by a user.
[Export(typeof(ICommand))]
[DisplayNameAttribute("This is a Demo")]
[DefaultIcon("/DemoFun;component/Images/Demo.png")]
public class cmdGenerateExcelTemplate : ICommand
{
public bool CanExecute(object parameter)
{
return true;
}
public event EventHandler CanExecuteChanged;
public event EventHandler OnHidden;
public void Execute(object parameter)
{
MapApplication.Current.ShowWindow("This is my control",
<controlobject>,
false,
null,
OnHidden,
WindowType.Floating);
this.OnHidden += new EventHandler(cmdGenerateExcelTemplate_OnHidden);
}
void cmdGenerateExcelTemplate_OnHidden(object sender, EventArgs e)
{
MessageBox.Show("I'm hidden now!");
}
That's It. It's very easy to do, and helpful in some instances.Enjoy
Wednesday, June 29, 2011
Silverlight Charting
Here is a great resource for developing Silverlight charts using the Silverlight Toolkit: http://cesso.org/Samples/ChartBuilder/
Labels:
Programming,
Silverlight
Wednesday, September 8, 2010
Working with Special Characters
Every once in awhile you need to work with the following characters in XAML:
Error 5 Entity references or sequences beginning with an ampersand ‘&’ must be terminated with a semicolon ‘;’.
Error 4 ‘"’ is an unexpected token. The expected token is ‘;’.
You can encode invalid characters for use in XAML by using the following encoding syntax:
- >
- <
- "
- &
Error 5 Entity references or sequences beginning with an ampersand ‘&’ must be terminated with a semicolon ‘;’.
Error 4 ‘"’ is an unexpected token. The expected token is ‘;’.
You can encode invalid characters for use in XAML by using the following encoding syntax:
Character |
Encoding |
< |
< |
> |
> |
& |
& |
“ |
" |
space |
  |
‘ |
' |
(numeric character mappings) |
&#[integer]; or &#x[hex]; |
(nonbreaking space) |
  (assuming UTF-8 encoding) |
Labels:
Silverlight,
Silverlight 4.0
Wednesday, June 10, 2009
Embed Silverlight Map
I navigated over to www.rexhansen.com, I found a nice silverlight example for the sdk, but I wanted to embed a map into the blogger posts. Here is how I did it. I used the iframe tag to hold the silverlight reference as such.
ESRI Silverlight Map Control Example
Make sure you close the iframe tag, or it won't work.
Enjoy
iframe style="WIDTH: 400px; HEIGHT: 300px" src="http://www.drivehq.com/file/df.aspx/publish/rex_hansen/SampleCode/ArcGIS_SOAP_Silverlight_AppTestPage.html" frameborder="0" scrolling="no"
ESRI Silverlight Map Control Example
Make sure you close the iframe tag, or it won't work.
Enjoy
Labels:
Silverlight
Subscribe to:
Posts (Atom)