Font Families in Silverlight PRO
Using a new font family in a Silverlight application is fairly simple. There are several ways for doing it. The simplest of them is adding the TTF file to our application (simple drag & drop when using the Visual Studio IDE) and referring it from within the XAML file. <UserControl x:Class=”SilverlightApplication15.MainPage” xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml” xmlns:d=”http://schemas.microsoft.com/expression/blend/2008″ xmlns:mc=”http://schemas.openxmlformats.org/markup-compatibility/2006″ […]
The Image Stretch Property in Silverlight PRO
The Stretch possible values include Fill, None, Uniform which is the default value and UniformToFill. Fill will stretch the image in width and height to fit the Image element. None will keep the image native size. Uniform will set the largest possible size while keeping the aspect ratio unchanged. UniformToFill will size the width and […]
Silverlight Initialization Parameters PRO
We can easily pass initialization parameters from the HTML code that invokes the Silverlight application to the Silverlight application itself. The parameters should be placed as key value pairs, while the keys are their names and the values are the values of each one of them, as a string which is the value of a […]
Creating Tooltips in Silverlight PRO
The tooltips are represented by the ToolTip content control. We don’t need to add a ToolTip element. We can set an attached property and the Silverlight platform will create the tool tip automatically. <UserControl x:Class=”SilverlightApplication15.MainPage” xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml” xmlns:d=”http://schemas.microsoft.com/expression/blend/2008″ xmlns:mc=”http://schemas.openxmlformats.org/markup-compatibility/2006″ mc:Ignorable=”d” d:DesignHeight=”300″ d:DesignWidth=”400″> <Canvas> <Button FontSize=”22″ ToolTipService.ToolTip=”This is a Simple Tooltip” Content=”OK”></Button> </Canvas> </UserControl> The following […]
Simple Style Definition in Silverlight INFO
Instead of specifying separately for each and every element how exactly it should look we can define a style and then apply it on various elements. Using styles promotes code reuse, makes our code shorter and assists with the code maintenance in the long run. Defining a style is about defining a collection of property […]
Simple Template Definition in Silverlight PRO
Templates allow us to apply a set of design rules on the controls we have on our page. They change the visual face of every common control. Unlike styles, when using a template we are not limited for those properties that were defined in the Element class. Templates are limited for those elements that extend […]
Pages & Frames in Silverlight PRO
The Frame is a content control. It contains a single child element and it inherits from ContentControl. The single child it displays can be of the type Page. We can easily use this capability for developing an application that includes pages displayed one at a time within a frame. The following code sample shows how simple […]
The Log4PHP Logging Framework PRO
Log4PHP is an open source project that provides a versatile logging framework for PHP. Log4PHP is part of the Apache Logging Services project and it works similarly to other Apache Logging Services sub projects, such as Log4J and Log4Net. I have just completed to develop the first two topics of my Log4PHP Basics course. You can […]
Stanford Introduction to Databases Free Course PRO
Stanford University allows people from all over the world to take the Introduction to Databases course over the web. The course is offered for free (for a limited period of time). This is a great opportunity for every person who is not familiar with how databases work to acquire this knowledge for free. I believe […]
Develop REStful Web Services using Jersey PRO
REST stands for Representational State Transfer. It is a web service architecture that focuses on the system resources. Each resource is identified by a URI (Unified Resource Identifier). Accessing the resources is done using HTTP. The server reply is the representation of the resource we try to access. This representation is usually an XML document. JSR 311 specifies Java API for […]