Vertical Swipe Recognizer Sencha touch 2 enabling - mobile

I am currently developing an application with the Sencha Touch 2 mobile.
I have to handle a swipe down event in the application on particular control but by default the VerticalSwipe Recognizer is disabled.
Can anyone tell me how to enable it as i am not able to find much of the relevant information on this.
I have already checked a few posts on sencha that describes to use the Ext.setup method. But I am using a MVC architecture so I only have Ext.application() available to me.
I have gone through it somewhere, that it can be done using the eventPublishers in Ext.application().

Take a look at this tutorial:
http://www.chrisrossi.com/2011/03/16/how-to-add-updown-swipe-functionality-to-sencha-touch/

Related

WPF UI not refresh (Revit pluggin)

I have developed a pluggin on Revit in WPF but I have a problem.
I load a family from a button in the user interface but the user interface does not update or refresh.
I force the refresh by resizing the window.
I did some research on the net but I did not find any information.
I post a youtube link to show you the manipulation.
Link: https://www.youtube.com/watch?v=9gb_YZH6i9s&feature=youtu.be
I have heard of similar issues in the past. In general I prefer using Windows Forms over WPF, since they seem to be easier to handle. Afaik, all WPF problems have been solved, though. Here is a whole list of related discussions on The Building Coder:
http://thebuildingcoder.typepad.com/blog/wpf/
You can try a "WPF DoEvents" after the loading of your family. See the answer here: https://stackoverflow.com/a/11899439/200443

UFT identifying checkbox as an Image and not able to click or set "ON" or "OFF" on it

I have a check box in my application and UFT is identifying it as an "Image Object" and I am not able to click or Set "ON" or "OFF" anything on it.
My application is developed in EXT JS 4.2, Only for this checkbox I am facing this issue....for all others I got the webCheckButton.
What can be done please help.
JS toolkits sometime render different HTML from what you would expect, usually this is done for improved visual effects. It may be that ExJS puts an image over the checkbox in order to make it look nicer (I'm not familiar with it).
In any case UFT comes with a built in ExJS web extensibility which may solve your problem. You can install this by running the special Web2.0 installation under UFT's installations sub-folder.
Easy way to do this is using UFT image based identification feature

wpf disable swiping windows 8

I am building a wpf touch oriented app for windows 8 and I need to remove the posibility of accidentally swiping the left edge of the screen and end up in another application not meant for the user. Is there a way to disable this for this specific application? Perhaps programatically. I have the same problem with the charm bar. Can anybody help?
Have a look on below link
http://social.msdn.microsoft.com/Forums/en-US/visualstudiogeneral/thread/1882cba3-8e6a-44c7-a1ba-b309e469aef8
I think rather than stackoverflow you should go for msdn forum

Alternatives to WebBrowser control in WPF?

We are working on a WPF app with the web browser control. When the user drags the window, the web browser lags behind the window as it drags.
Does anyone know how to solve this issue? Failing that, does anyone know an alternative to the web browser control itself?
Thanks!
Yes, as long as you don't require IE specific features you can use Awesomium which basically gives the same browser engine used by Google Chrome except for everything is rendered in pure WPF. For a while it was open source but I believe it is becoming a commercial product.
I haven't heard about any Native WPF WebBrowser Control. The only options I know are based on Win32 controls which are wrapped into WPF controls in order to displayed. (See more details at http://msdn.microsoft.com/en-us/library/ms752055.aspx )
Recently I have to use the WPF wrapper for the WebBrowser control, and it's very limited regarding the options available for the developer. During my research I found that you are able to inject scripts or html content in order to modify the page behavior. Also, you can call .NET code (e.g. CSharp function from Javascript).
However tasks such as accessing the cache, modifying cookies are difficult task or changing the web browser behavior are very difficult. Here is when you will have to use DLL Imports in order to invoke unmanaged routines (see http://msdn.microsoft.com/en-us/library/aa984739(v=vs.71).aspx )
It's possible to look for an alternative WebBrowser control such as:
http://code.google.com/p/csexwb2/
http://wpfchromium.codeplex.com/
I hope this helps
You can try CefSharp.Wpf which uses Chromium as a base browser. You can find it on NuGet

Running a Silverlight Website

When using silverlight in a browser is there anyway to switch xaml pages? I'm also wondering how to go about using my encryption class I've wrote in c# to validate users in silverlight. Any help would be much appreciate!
If you're using Silverlight 3 Beta then what you're looking for is the Navigation system using the Frame and Page controls. There are lots of tutorials available online for this.
In Silverlight 2 the easiest solution is to replace the RootVisual with a Panel (like Grid or Canvas) and have your own code to switch the child elements (which are usually your own UserControls).
There's a good tutorial available at Flawless Code
We are using Jesse Liberty's method of doing the page switching in SL2. It is explained here. Jesse Liberty SL2 page switching
It also look or feels a lot like how SL3 does it with the Navigation mentioned above.
Caution: If you do this, the back button on the browser will need to be handled - users will exit out of your SL2 app when hitting the back button. SL3 has built in support for handling and responding correctly to the back button.

Resources