Posts Tagged ‘ XAML ’

Create Event Handlers for WPF frontends in Java

In one of the previous posts I showed how a WPF frontend can be controlled by a Java application. Furthermore, I demonstrated how proxies can be generated automatically that allows for more convenient way of programming the Java part. However, there is no way so far, to handle interaction of the user with the WPF frontend in the Java backend. This posts demonstrates the basics for such an implementation.

It uses the existing socket communication to send an event to the Java program whenever a relevant user interaction with the WPF frontend occurs. The java program interprets the received event and calls the corresponding handler that is selected depending on the type of event. Thus, to determine which event handler is to be called the type of event need to be set during modeling the user interface in XAML. To enable this, we will introduce a new attached property available to all controls.
Continue reading

Examples of Visual Effects in WPF/XAML

In this post we will create a WPF application that shows an color changing logo reflected on a polished surface. We will use nothing but XAML to create visual effects such as mirroring, a horizon, a spotlight and dynamic colorization of a grayscale image.

Continue reading