It’s 2015, and ever since the release of Windows 8, touch is becoming the norm for PC users. PC manufactures are releasing touch-screens for everything, including laptops. This doesn’t mean that you have to abandon you skill set and write Windows Store Apps to utilize this functionality. With Telerik UI for WPF, you can make any app touch-friendly with just a couple of lines of code. In my session from TelerikNEXT, I take a standard WPF app and turn it into an application that responds to various gestures including swipes, pinch, tap, tap and move, and tap and hold. I also explore various touch-friendly controls and explore scenarios in which you should or shouldn’t use this feature.
The post Building Touch Apps With UI for WPF (Session Recording) appeared first on Telerik Developer Network.
If you have worked with WPF and used DataBinding you would know that if you want to update the UI when an object changes other than from the binding, you have to implement INotifyPropertyChanged Interface (Or use Dependency properties) and if you are working with a collection, then the best bet is to use an Observable collection […]
via Visual Applications and Arduino.
My previous articles
all dealt with control of Arduino and their control using a WPF app and Windows Phone. Let’s scale up things a bit and let’s bring image processing to the stage. When we deal with the human-computer interface, we like to deal with easier ways to interface with our digital counterpart or let’s say a system. The article will explore the use of computer vision on an Arduino board.
via Storing files from the Portable Class Library (PCL).
A lot of applications have to persist application data or state. When developing mobile applications with C# such as for Windows or with Xamarin for iOS and Android it is a common approach to share your business logic and backend implementations in the Portable Class Library (PCL). In this blog post we’ll look at how we can also implement storage within the PCL and therefore will only need to implement the storage services once. We will be focusing on the following topics:
- Setting up the project
- Storing and loading objects to files
- Storing/using binary data such as images
So lets start off by setting up the project. I’ll be demonstrating the sample with a Xamarin.Forms project as it allows me to quickly develop, deploy and test an app on all three major mobile platforms. But as the code is in the PCL you can use the exact same approach to implement the system in Windows Store, WPF etc. applications.
via Resources in WPF and difference between Static Resource and Dynamic Resource.
In WPF, Resources are objects which can be reused anywhere in a WPF application. For example styles, brushes, Bitmap images etc. can be used as resources in different places in your WPF application.
Here’s a list of place where your resources can be declared:
- As global application scope within the application App.xaml file
- As Window level scope within the
Resources property of the current
- Within the
Resources property of any
- Separate XAML resource file.
Here’s a diagrammatic representation of the places where resources can be declared:
via Xamarin – Implementing and Using Data Binding in Xamarin.
Data binding is a popular concept in programming these days, especially for client applications. In this article, I’ll discuss what data binding is and how it’s used in technologies that support it natively, such as Windows XAML. After I cover the basic principles of data binding and observable properties, and how these can be used in technologies that don’t support data binding “out of the box,” I’ll show how data binding support can be added to Xamarin.Android and Xamarin.iOS with the MVVM Light Toolkit (mvvmlight.net). This lightweight toolkit is the most popular Model-View-ViewModel (MVVM) framework for platforms such as Windows Presentation Foundation (WPF), Silverlight, Windows Phone, Windows Store, Xamarin.Android, Xamarin.iOS, Xamarin.Forms and more.
I’ll wrap up with a discussion of data binding in Xamarin.Forms, the newest addition to the Xamarin frameworks, which allows you to build the UI in XAML once, and to run it on Android, iOS and Windows Phone.