wp7 - is it possible to have a user control loaded between pages? - windows-phone-7

I'm trying to solve some problems with AdMob control in my game, and the control takes some time to load (it hijacks UI thread for up to 1 second). Is it possible to load the control once, then store it somewhere and attach it to the visual tree for the subsequent pages?
Or this cannot be done and I do have to find some other way?

Yes you can. You need to save the states of that control on that page.
Please refer this MSDN Documentation for states of windows phone 7
I hope you can better idea from this
UPDATE ====
Deployment.Current.Dispatcher.BeginInvoke(new System.Action(delegate()
{
// Load Your Control Here
}));
It will not freeze your UI

You can simply add the control on a page in runtime with:
this.LayoutRoot.Children.Add( control )
If you statically define your control, you can then remove it from the current page on the OnNavigatingFrom event and after that load it on the next page or something similar to prevent crashing from multiple parents.

Related

My events are not being counted within Google Analytics

I will try to exemplify my problem in the best possible way.
I am not responsible for adding code to the site. Most of the events were added via code, not by GTM. The problem is that they do not fire and do not count within GA.
My doubts are:
1 - Why do events not appear in GA?
2 - Even if the events were implemented directly in the code, is it possible to see it in the GTM debug?
3 - How can I check if these events really exist inside the code?
Have you added the correct tracking ID as a Tag in Tag Manager?
Not sure here
Press F12 when you are on the page, where the code is supposed to be. You will open the Inspect tool. You will see a lot of code there, try pressing Ctrl+F and searching for your code.

Unbind/unsynchronized scrolling in source control compare function

In compare option inside the source control, the scrolling is bind together for both files.
I want to scroll just one of the sides while the other stay pinned also I want to avoid comparing outside on the VS.
I can't find any solution online and there is no obvious option in the VS.
I'm Using VS2015 with TFS.
Thank you.
EDIT
New feature request for microsoft was opened
Feature request
EDIT
In VS1029 Version 16.11.3 feature exist, by pressing it you can unbind the windows
In compare option inside the source control, the scrolling is bind
together for both files.
For this , I am afraid this is by designed. The same is true for my test in visual studio2019.
You could add your request for this feature on our UserVoice site , which is our main forum for product suggestions. After suggest raised, you can vote and add your comments for this feedback. The product team would provide the updates if they view it.

How to detect back button -vs- GoBack() in WP7 app

Maybe I'm over-thinking this, but here's what I'm trying to accomplish.
I have two MVVM projects (assemblies) in my WP7 app. One page in the main project will call another page in the second project. The second page will allow the user to browse through a list of files on the web and select one to be downloaded to Isolated Storage. The files are rather small.
For a little background: I want two assemblies because this file-selection feature is not used often in the app and I want the Main assembly to be as small as possible to decrease startup time. I also want to be able to re-use this file-selection/download component in other apps.
The simple thing I'm trying to figure out is that when the user selects the file and it is downloaded, I will execute a GoBack() to return to the calling page. On the calling page, I need to know if, in fact, the user downloaded a file or if they cancelled out of the operation by simply hitting the back button. I thought the obvious thing might be to just check for the existence of the file in Isolated storage, but that just feel like a bit of a kludge to me.
I also thought about the Messenger, but I'm not sure how that would work across two assemblies.
Any advice would be appreciated.
Thanks
It is tough to know without looking at the code. However, I would suggest that you could pass back a value to the page depending on whether you successfully downloaded your file. Navigate with the value as follows (pass true or false depending on download success):
NavigationService.Navigate(new Uri(("/Page.xaml?download=true", UriKind.Relative));
Then evaluate the page in the destination as follows:
string download = "";
if (NavigationContext.QueryString.TryGetValue("download", out imageurl))
{
}

Firefox Extension - Monitor refresh and change of tab

I need to know when a user refreshs the page and when he switches to another tab.
Does anyone has a clue how to capture this in a firefox extension?
Best regards
Christian
What you seem to want is knowing when the value in the location bar changes. This requires implementing nsIWebProgressListener interface. The only method you really need is onLocationChange, rest of them should be dummies. You can find the documentation along with code examples here: https://developer.mozilla.org/en/Code_snippets/Progress_Listeners. You can also use progress listeners to monitor page loads.

how to display a html page inside dynamically created silverlight child window

I want to a html page inside a dynamically created silverlight child window without telerik control.
The telerik control isn't doing anything you can't do yourself with enough effort - it's all just transparent user code.
So, you could create <div> and position it carefully just like the telerik control does - but of course this can be a lot of work (that's why folks would want to pay for their control).
This also only works when the plugin is windowless, which has lots of trade-offs (see MSDN - for example, accessibility support is greatly reduced or gone entirely, I can't recall which).
In out-of-browser mode, you can use the WebBrowser control, in case that helps should you wish to make your app available OOB later.
try one of these links:
1. http://forums.silverlight.net/forums/t/51784.aspx or
2. http://weblogs.asp.net/dwahlin/archive/2010/05/10/integrating-html-into-silverlight-applications.aspx
It can help

Resources