The Windows 10 UWP app CleanupVS is now in The Store. Its a free app for cleaning up Visual Studio workspaces by recursively deleting bin and obj folders from Visual Studio project folders. This article covers some of the code techniques used in he app.
Including, quick folder count, app metadata, using the Feedback Hub and populating a RichTextbox.
Read the rest of entry »
Solved: How to use one line per item in a UWP XAML ListView
The previous post outlined in an XAML UI using a ListView how to display a List of instances of a class of public properties using data binding. Layout and padding issues were examined as well as binding to a dictionary of objects. This article covers programmatically adding elements of a collection to an XAML UI.
I had a Dictionary of values that I wanted to display in an XAML UI as part of a UWP app. My initial foray was to use a ListView with a binding to the dictionary ListView.ItemTemplate/DataTemplate. The dictionary was then bound to the ListView’s ItemsSource. The problem with the ListView is that there is a lot of padding between items vertically and within items.I wanted to compact the rows of data vertically though as if I had manually placed each dictionary item (key and values) in a grid of rows of TextBlocks in a row (one row for each item). This article discusses my trials and tribulations with this issue and includes my final solution.
This is the final part of the trilogy. I have a brief look at UWP app development on the VM, running the Bash shell which provides a command shell for running Linux commands on the and the Windows Bridge for IOS which facilities running Objective-C apps as UWP apps on the VM.
Universal Windows(10) Apps settings is easy. Its simple to specify as part of the build, save them to storage, get them back and modify .. I mean dead easy!
In developing a Universal Windows app, when you add an existing XAML and its Codebehind page, they often end up unlinked in the Solution Explorer. This limits the ability to autogenrate event handlers in the codebehind page for UI elements.Spaso Lazarevic has a good solution that involves a little editing of the project file.
A truly Universal App will run on all Windows 10 targets, with only a targeted CPU change and rebuild required. This second part of this blog series sets up a UAP/UWP project to make use of the file base SQLite database engine. This part creates the project, gathers the required bits and sets up the user interface. Parts three covers the functional code.
This blog is a Tutorial on how to implement Win 10 IoT Universal Apps that make use of Raspberry PI 2 (RPI2) General Purpose Input Output (GPIO) pins. This covers:
The interrupt (event driven) version addresses the InvokeRequired pattern in the XAML context. (Controls can't be updated directly from another thread).
The complete solutions are available (in source) on Codeplex at:
"Windows 10 IoT Samples": https://IoTSampler.Codeplex.com
How to modify the Mobile Services sample ToDo List application into something useful.