silverlight-4.0

Google Analytics API - Programmatically fetch page views in server side

和自甴很熟 提交于 2019-11-27 13:19:09
问题 We have a web application that consists of several pages. We registered our web app domain to Google Analytics and page views tracking works as expected (In the Analytics panel we can see page views for each page). Now we want this page views info to be stored in the back-end inside our DB. So we want to create a back-end process that will run once each day, and fetch the page views from Analytics API. This is of course need to be done in code. From initial research it seems that in order to

How to zoom in and zoom out Images in WP7?

ε祈祈猫儿з 提交于 2019-11-27 12:08:59
I have made an application which displays Images .Now I want to implement zoom in and zoom out feature(by using two fingertip's) as in native windows phone photo viewer application.Any idea on how to proceed . Thanks in Advance. AnthonyWJones Perhaps the most expedient approach would be to include the Silverlight for Windows Phone Toolkit . This contains a GestureService that will help with pinch and rotate touch gestures. You could apply it to an image like this:- <Image Source="someSourceUrl" RenderTransformOrigin="0.5, 0.5" CacheMode="BitmapCache"> <Image.RenderTransform>

The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range?

送分小仙女□ 提交于 2019-11-27 08:14:19
I am working on application contains a datepicker and if I set the time in that picker to a very old value or far in the future when I try to save this value in the database the server throw this exception, what is the cause of it? The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value. The statement has been terminated. AnthonyWJones DateTime has the range: January 1, 1753, through December 31, 9999 DateTime2 has the range: 0001-01-01 through 9999-12-31 So if you are entering a date before 1753 you would get this error when the field in the table is

Silverlight 4 Equivalent to WPF “x:static”

泪湿孤枕 提交于 2019-11-27 05:42:43
问题 I'm working on a project that is based on an old project someone started and didn't finish. I was trying to use as much of their code as I could, so in doing so I ran into some tweaking issues. Namely, when I put some of the old xaml in the new project there were some errors that were thrown regarding the "x:static" property and "Dynamic property." here are the error messages themselves: Error 1: The type 'DynamicResource' was not found. Verify that you are not missing an assembly reference

Difference between ItemsSource and DataContext as pertains to ListBox

狂风中的少年 提交于 2019-11-27 05:25:26
问题 I am not quite grokking the difference between ItemsSource and DataContext. Can someone explain it and back it up with examples? When would I use one or the other. I am reading the docs and it says that I can bind using DataContext, but I throw an ObservableCollection at it and nothing shows up in the list. If I throw the same collection at the ItemsSource, it works fine. 回答1: Controls (including the ListBox) don't do anything with the value of DataContext at all. Its purpose is to provide a

Cannot install silverlight 4 tools on visual studio 2010 sp1

时间秒杀一切 提交于 2019-11-27 05:24:13
问题 I've installed Visual Studio 2010 (fresh install), then applied the SP1. Now I've tried to install the silverlight 4 tools, but i'm getting a strange error message : "Visual Studio 2010 or Visual Web Developer Express 2010 or Visual Phone Developer Express 2010 that matches the language version of Silverlight Tools 4 must be installed before installation of Silverlight Tools can continue. Silverlight Tools is available in other languages at http://go.microsoft.com/fwlink/?LinkId=177432. The

Is there a way to programmatically quit my App? (Windows Phone 7)

陌路散爱 提交于 2019-11-27 04:49:34
问题 I'm writing a windows phone 7 app. I have "fatal exception" handling code where I know for sure that the app is totally busted and there's no point in continuing. (I'm hoping I never get here...). Since there's nothing more my app can do other than quit I want the user to be able to close the app. But I noticed there is no System.Environment.Exit() in the Silverlight 4 SDK for Windows Phone 7. Is there another way to quit the app programmatically? 回答1: App Cert Reqt: 5.1.2 Application

Passing the value of an item selected in a Gridview to the ViewModel of a different Usercontrol

时光毁灭记忆、已成空白 提交于 2019-11-27 04:49:17
问题 After researching a solution to this for three days, finally I gave up. Now I need your help to solve this. Scenario: I've a GridView in a Usercontrol (Lets say WLMSLogs.xaml) and My GridView ItemSource is binded to a List from the ViewModel (WMLSLogsViewModel.cs) Lets say the List has 4 items (EventID, Name, Request and Response). BothRequest and Responses are XML Strings. GridView needs to display some of the List items in RowDetailsTemplate under different tab items. So I'm displaying

Is there any difference in x:name and name for controls in xaml file?

我只是一个虾纸丫 提交于 2019-11-27 04:07:25
问题 I am new in Silverlight. When I add some control to my xaml file with Visual Studio it set controls name with Name property, but there is also x:Name. Is there any difference and when to use each of them? Thanks. 回答1: In Brief Yes there is a difference. The bottom line is that x:Name can be used on object elements that do not have Name properties of their own. A longer explanation You can only use Name on an element that represents an object that actually does have a Name property. For

Binding to Converter Parameter

耗尽温柔 提交于 2019-11-26 23:06:52
问题 Is it possible to bind to a ConverterParameter in Silverlight 4.0? For instance I would like to do something like this and bind the ConverterParameter to an object in a ViewModel for instance. If this is not possible are there any other options? <RadioButton Content="{Binding Path=Mode}" IsChecked="{Binding Converter={StaticResource ParameterModeToBoolConverter}, ConverterParameter={Binding Path=DataContext.SelectedMode,ElementName=root}}" /> 回答1: Unfortunetly no, you can't bind to a