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

[Quartz.NET]: Configure AdoJobStore JobStore

JobStore's are responsible for keeping track of all the "work data" that you give to the scheduler: jobs, triggers, calendars, etc. RAMJobStore RAMJobStore is the simplest JobStore to use, it is also the most performant (in terms of CPU time). RAMJobStore gets its name in the obvious way: it keeps…

Continue Reading[Quartz.NET]: Configure AdoJobStore JobStore

[Quartz.NET]: Configure Job in XML using Quartz plug-in XMLSchedulingDataProcessorPlugin

You can initialize the scheduler with predefined jobs and triggers using the XMLSchedulingDataProcessorPlugin. This plugin loads XML file(s) to add jobs and schedule them with triggers as the scheduler is initialized, and can optionally periodically scan the file for changes.The XML schema definition can be found here: http://www.quartz-scheduler.org/xml/job_scheduling_data_2_0.xsd Here are…

Continue Reading[Quartz.NET]: Configure Job in XML using Quartz plug-in XMLSchedulingDataProcessorPlugin

[Quartz.NET]: JobDataMap

What is JobDataMap? The JobDataMap can be used to hold any number of (serializable) objects which you wish to have made available to the job instance when it executes. JobDataMap is an implementation of the IDictionary interface, and has some added convenience methods for storing and retrieving data of primitive…

Continue Reading[Quartz.NET]: JobDataMap

[Quartz.NET]: Configure NLog for logging

In previous article Configure Logging I described how to configure Logging in configuration file using Common.Logging.Simple.ConsoleOutLoggerFactoryAdapter. In this article, I will describe how to configure NLog in Quartz application. Because Quartz.NET using Common.Logging frameworks, so there are two implementations dependency when you want to use NLogLoggerFactoryAdapter: Common.Logging.NLog20 is linked against…

Continue Reading[Quartz.NET]: Configure NLog for logging