UWP: Mouse wheel on horizontal ListView

Problem: By default ListView is vertical orientation and scrollable. To change ListView horizontal we set in it ItemsPanelTemplate: <ItemsStackPanel Orientation="Horizontal"/>. But in mouse wheel is not working on horizontal ListView Solution: Fixed width for the ListView Disable parent scrollviewer horizontal by setting ScrollViewer.HorizontalScrollMode = "Disabled" if the ListView inside scrollviewer

Continue ReadingUWP: Mouse wheel on horizontal ListView

UWP: ListViewItem remove spacing

Problem: Space is not balance between list view item. Solution: <Setter Property="ItemContainerStyle"> <Setter.Value> <Style TargetType="ListViewItem"> <Setter Property="Padding" Value="2"/> <Setter Property="Margin" Value="0"/> <Setter Property="MinHeight" Value="0"/> <Setter Property="MinWidth" Value="0"/> </Style> </Setter.Value> </Setter> Result:

Continue ReadingUWP: ListViewItem remove spacing

UWP: Disable Pivot swipe left/right while horizontal scroll ListView inside

Problem: - You have Pivot - You have horizontal ListView inside PivotItem - When you scroll ListView items to the last, the pivot automatically swipe to next PivotItem. So you want remain the current PivotItem view without go to next PivotItem? Cause: - Both Pivot and ListView have ScrollViewer by…

Continue ReadingUWP: Disable Pivot swipe left/right while horizontal scroll ListView inside

UWP: Set status bar to remove empty white space on top in Mobile Emulator

Problem: - Having empty white space on top of Windows 10 Mobile Emulator Cause: - The status bar is not set correctly Solution: - Set background color for the status bar - Hide the status bar if needed Set the code below in App.cs OnLaunched Code: Note: You must add…

Continue ReadingUWP: Set status bar to remove empty white space on top in Mobile Emulator

UWP: Open Store Rating to request user review and rate from your Windows 10 app

In Windows Phone 8.x, you can use the Marketplace review task to launch the Store or Marketplace and then display the review page for the current app. The code is simple as below Unfortunately, UWP Windows 10 app does not support this kind of Marketplace review task. So the question…

Continue ReadingUWP: Open Store Rating to request user review and rate from your Windows 10 app

[WP8.1]: Changing Windows Phone 8.1 WebView default User-Agent in all outbound HTTP requests

Recently, I'm developing Windows Phone 8 app which hosting our cloud services. We need to add some custom HTTP Headers in to requests. Unfortunately, Windows Phone 8 WebBrowser control doesn't have properties to set custom User-Agent by default. The only way you can do is the method: But with this…

Continue Reading[WP8.1]: Changing Windows Phone 8.1 WebView default User-Agent in all outbound HTTP requests

[Solved]: The Windows Phone Emulator wasn’t able to create the external network switches

The error when you are try to starting Windows Phone Emulator with configuring Internet connection optionSolution: Following steps below:Disable Internet Connection Sharing on your Network AdapterManual create Windows Phone Emulator Internal SwitchManual create Windows Phone Emulator External Switch.I resolved this error in my machine with configuration below:Sony Vaio Tab 11Hyper-V…

Continue Reading[Solved]: The Windows Phone Emulator wasn’t able to create the external network switches

Windows Store 8.1: Save visual element to bitmap image file

If you has already familiar with Windows Phone development. You may able to capture screen or visual element to image file using the Render method of WriteableBitmap object. When develop Windows Store app, the Render method will not exist at this time. If you are developing Windows Store 8.0 application,…

Continue ReadingWindows Store 8.1: Save visual element to bitmap image file

Windows Store RT: Access controls in other page

When develop Windows Store App, sometime you may want to access controls in another page. For example: In the MainPage, you are playing background music using MediaElment control. Your app has SettingsFlyout page to allow user enable/disable the background music via ToggleSwitch control. You want Application must stop/start music right…

Continue ReadingWindows Store RT: Access controls in other page