I need to use the event ScrollChanged of the ScrollViewer control, but it is only available on Windows 8. Windows Phone 8 RT which method I can use that is equivalent?
Windows Phone 8.1 Runtime apps can use the same ScrollViewer events as Windows Store 8.1 apps: ViewChanged and ViewChanging.
Windows Phone Silverlight's ScrollViewer doesn't have a direct analog to this event. If I recall correctly, the ScrollChanged event is specific to WPF's ScrollViewer.
Related
I write handwriting application on Windows Phone 8(there is link https://msdn.microsoft.com/en-us/windows/uwp/input-and-devices/convert-ink-to-text) but there is no InkCanvas in Windows Phone.
You can use Pointer Events to detect the touch and move and in those events construct path and display it.
I am migrating my Windows Phone 8 app to Windows Universal Apps. I am currently working on Windows 8.1 project.In my Windows Phone 8 app , I used Pivot Control to show multiple pages and for each App bar was different and in that when I used to slide the other view was visible. I showed different listbox on each page and the values comes from database. I want to do the same for Windows 8.1 but I found that there is not a Pivot Control in Windows 8.1. Can anyone suggest me any control using which I can do that. If possible explain me with some code.
Please help.
See XAML controls comparison between Windows Phone 8 and Windows 8 on MSDN.
Not all controls are available for both Windows and Windows Phone. Specifically, there is no direct analogue to the Pivot on Windows 8.1. You will need to either redesign your UI to use a different control or write your own (or find a 3rd party control) Pivot control.
Two likely options are a FlipView or a Hub Control, but the specifics will really depend on the details of your app.
Is there any way to use Inking for Windows phone 8.1 application. I am able to use it in Silverlight application for freehand drawing.
But is there anything available to use for this purpose in WinRT?
There is no special purpose inking control. You can handle pointer events to track the touch point and draw your own strikes from those positions.
Is it possible to add/include a textbox under commandbar of windows phone 8.1 app as present in Internet Explorer 10..
This is not possible, you can only use AppBarButton and AppBarToggleButton.
Apps like IE and the app store where you can see rectangular buttons in the command bar, are special apps in which Microsoft can do whathever they want.
But you could try to implement your own custom CommandBar that immitates the system command bar, but this seems like too much work and error prone.
Yolo
This project aims to create useful controls for WinRT (Windows Phone, Windows 8.1, and later XBOX One). The first one is a customizable AppBar control, which is in a early stage of development.
You can use this app bar to suit your requirements.
I having problems finding documentation or examples regarding the proper way to use the Accelerometer to trigger a Shake event. Seems like it should be easy, but all the examples are 8.0 which apparently are using Microsoft.Devices.Sensors;
Apparently you are supposed to use using Windows.Devices.Sensors; which you would think are the same, but things like Start() and Stop methods no longer exist. I was trying to use a Microsoft AccelerometerHelper class from Microsoft and it also uses the older namespace. The Shaken event in the Accelerometer class is only triggered on the tablets and not phones according to:
MSDN : here
Windows Phone 8: The accelerometer sensor does not raise the Shaken
event on the Windows Phone 8 platform. If you add an event handler for
the Shaken event in your Windows Phone 8 app, no error is raised, but
the code in the event handler won’t run.
The last resort or another option if you can't port the code to WP 8.1 Runtime is to switch the project to Windows Phone 8 Silverlight or even 8.1 Silverlight, all code work perfectly, I've worked with AccelerometerHelper class before and face the same problem.