silverlight

Map tap event / mouse down event in windows phone 8?

女生的网名这么多〃 提交于 2019-12-31 01:57:08
问题 I am using the windows phone emulator. I wrote a very simple program: draw a marker on the map when the user tap the map once. Then I used map_tap event, and get the tapped location as follows, private void map_Tap(object sender, System.Windows.Input.GestureEventArgs e) { Point p = e.GetPosition(null); GeoCoordinate s = map.ConvertViewportPointToGeoCoordinate(p); Ellipse myCircle = new Ellipse(); myCircle.Fill = new SolidColorBrush(Colors.Blue); myCircle.Height = 20; myCircle.Width = 20;

What is best way to learn silverlight? [closed]

大憨熊 提交于 2019-12-31 01:49:26
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I would like to learn Silverlight. What books or websites are recommended? 回答1: The best places to start are: http://www.silverlight

What is best way to learn silverlight? [closed]

跟風遠走 提交于 2019-12-31 01:49:00
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I would like to learn Silverlight. What books or websites are recommended? 回答1: The best places to start are: http://www.silverlight

How to expose objects through WCF?

天大地大妈咪最大 提交于 2019-12-31 01:46:06
问题 My project is split up into a typical 3 layer structure for a Silverlight app. That is: A base layer, which is a class library that contains all my business objects, logic, data access etc. A middle layer which is a WCF service which communicates with; My Silverlight front end The problem I have is that currently the BO's exposed through WCF to my UI only contain the private variables, and none of the propertys or methods. Is there an easy way to expose the full object (via attributes or

How to expose objects through WCF?

为君一笑 提交于 2019-12-31 01:46:02
问题 My project is split up into a typical 3 layer structure for a Silverlight app. That is: A base layer, which is a class library that contains all my business objects, logic, data access etc. A middle layer which is a WCF service which communicates with; My Silverlight front end The problem I have is that currently the BO's exposed through WCF to my UI only contain the private variables, and none of the propertys or methods. Is there an easy way to expose the full object (via attributes or

Silverlight webservice call works in Studio but fails when run from website

戏子无情 提交于 2019-12-31 01:13:26
问题 We are building a Silverlight application and have calls to a Silverlight-WCF service. When running the application from Visual Studio everything works perfectly. When we deploy to the website and run the application we get the following error (or one much like it) every time we call the web-service. Message: Unhandled Error in Silverlight Application An exception occurred during the operation, making the result invalid. Check InnerException for exception details. at System.ComponentModel

Silverlight webservice call works in Studio but fails when run from website

笑着哭i 提交于 2019-12-31 01:13:07
问题 We are building a Silverlight application and have calls to a Silverlight-WCF service. When running the application from Visual Studio everything works perfectly. When we deploy to the website and run the application we get the following error (or one much like it) every time we call the web-service. Message: Unhandled Error in Silverlight Application An exception occurred during the operation, making the result invalid. Check InnerException for exception details. at System.ComponentModel

Problems with XamlReader generating DataTemplate

别等时光非礼了梦想. 提交于 2019-12-30 19:52:08
问题 I'm trying to implement the code below in my WPF project in order to generate DataTemplates on the fly for a DataGrid with dynamic columns. I found the code on StackOverflow here public DataTemplate Create(Type type) { return (DataTemplate)XamlReader.Load( @"<DataTemplate xmlns=""http://schemas.microsoft.com/client/2007""> <" + type.Name + @" Text=""{Binding " + ShowColumn + @"}""/> </DataTemplate>" ); } However, on the XamlReader.Load code, I get the error "cannot convert from 'string' to

Getting UI virtualization working with ItemsControl in Silverlight

◇◆丶佛笑我妖孽 提交于 2019-12-30 18:50:49
问题 I'm trying to create a scrolling list of fairly large textblocks. I want there to be a vertical scrollbar to show them all, and if they overflow a certain size I want them to display an ellipsis. I actually have all this working pretty good. I have the following Silverlight XAML: <Grid x:Name="LayoutRoot" MaxWidth="500" MinWidth="100" MaxHeight="500" MinHeight="100"> <Grid.DataContext> <app:MainPageViewModel/> </Grid.DataContext> <ScrollViewer> <ItemsControl ItemsSource="{Binding TextItems}"

Is there no Label control in Silverlight?

眉间皱痕 提交于 2019-12-30 18:45:22
问题 I can't seem to find a Label control in Silverlight. I get compile errors if I put anywhere in my XAML. 回答1: TextBlock is roughly the same as a Label from WinForms. As per MSDN: The TextBlock control is the primary element for displaying text in Silverlight based applications. Provides a lightweight control for displaying small amounts of text... EDIT : I just noticed your tag for Silverlight 3. Label should be built into Silverlight 3 so are you sure your not using 2? You might want to