Translations of the original Italian posts, for the largest worldwide diffusion possible :-)
Windows 8 Store Apps created by Alessandro Del Sole use an Internet connection only to retrieve information from RSS feeds, to open Web pages. If an app uses Bing Maps, the Internet connection is only required to show information about a specific place. If an app uses SkyDrive services, the Internet connection is only required to save and restore the application data. No other usage of the Internet connection is made. Your personal information will be never collected nor transmitted over the Internet.
Le app per Windows 8 create da Alessandro Del Sole usano la connessione a Internet solo per ottenere informazioni da...
The Visual Basic Tips & Tricks team is pleased to announce the availability of the newest release of a tool for developers called Vsi Builder, created by Alessandro Del Sole to our Community.
Vsi Builder is a unique graphical interface tool about creating .vsi installation packages for redistributing and installing additional contents for Visual Studio (code snippets, macros, add-ins, projects/elements templates and starter kits, IDE settings) with a few mouse clicks!
Vsi Bulder is a completely free tool and it’s for developers who use Microsoft Visual Studio, both in 2005 edition and 2008 edition! Moreover, Vsi Builder can be used by...
Most of the people who visit my blog well know that I'm not really interested in the ASP.NET world. But I wanted to understand something more about web applications in Visual Studio 2005, so I started to take a (little) look.
Being helped by a great friend of mine, whose name is Alessandro Ardovini from Rome (I want to thank him in front of everyone of you, because he also agreed to prepare a download for what I'm going to describe), I've realized a simple Web application which implements a particular calendar. Controls allow to select a date via Comboboxes; on the other side you can select...
Introducing Vsi Builder
Vsi Builder is an application for developers who use Microsoft Visual Studio 2005/2008 or single Express editions.
It can build redistributable .vsi (Visual Studio Content Installer) installation packages to deploy additional contents for Visual Studio as code snippets, add-ins, macro projects, templates and starter kits, Visual Studio settings, debugger visualizers, toolbox controls.
Even if it is not a code snippet editor, Vsi Builder allows you to create .vsi packages containing multiple code snippet, in a different way from Microsoft Snippet Editor 2005 which allows you to export to .vsi only one snippet at a time. By the way, you should still use this application...
There is another interesting panel in Windows Presentation Foundation, called WrapPanel. Its main feature is to place controls from left to right, wrapping controls that go over the container itself width or of the window width.
Consider the following XAML:
<Label Margin="10,10,10,10">Esempio di contenitore WrapPanel< SPAN>Label>
<Button Margin="10,10,10,10" Width="50">Hello!</< SPAN>Button>
<Button Margin="10,10,10,10" Width="150">Second Hello!</< SPAN>Button>
This is what it produces on video:
If you try to enlarge the window, this is what automatically happens:
Obviously, if you reduce window's width the first button will be wrapped too.
Until now we've seen a lot of code samples about Windows Presentation Foundation. In these samples we used to place controls particularly inside Grid and StackPanel panels. There is another exciting panel which WPF exposes and that is called Canvas. This panel is really interesting: width and height are always zero but children controls maintain their original size. Morevore, controls can just specify their position inside the container. In this way we have an absolute control positioning and controls maintain their size, just specifying their position in Canvas.
Consider the following XAML: <Canvas Background="Orange">
<Image Canvas.Top="10" Canvas.Left="10" Source="logovbtt.gif" />
It produces the following result to...
In Windows Presentation Foundation we can use a control called Expander, which is a sort of controls contanier and that can be expanded and closed just with a mouse click. Let's see a graphical sample.
In Visual Studio 2005, type the following XAML: <Grid>
<Expander Margin="10,10,10,10" Background="LightBlue">
Expander control sample
<ListBox Margin="20,10,0,0" Background="LightGreen">
<ListBoxItem Content="First item"...
In Windows Presentation Foundation, the most of controls expose a property called OpacityMask which allows to create transparency areas along the object itself and diffuse those areas in different manners.
Let's see a practical sample on a Button. Start Visual Studio 2005 and create a new empty WPF project, then type the following XAML from within the Grid: <Button Width="220" Height="75">
<GradientStop Color="Transparent" Offset="0"/>
Windows Presentation Foundation allows computers to speak by using some features of the DirectX libraries according to Microsoft's implementation of Text-To-Speech technology. You just have to add a reference to the following assembly: System.Speech.dll.
Let's see how it works. Open Visual Studio 2005 and create a new Windows Application (WPF) project either in VB 2005 or in C#. Then add a reference to System.Speech.dll.
Let's draw a very simple button, which contains some text, writing the following XAML: <Grid>
<Button Name="Button1" Width="250" Height="50" Click="Speak">Hello Windows Presentation Foundation!</Button>
We assigned a Button1 identifier which is necessary to interact with...
When implementing menus in WPF applications, you can assign different fonts (each with different properties) to each single header or command.
Consider the following XAML: <DockPanel LastChildFill="True">
<Menu DockPanel.Dock="Top" VerticalAlignment="Top">
<MenuItem Name="FileMenu" Header="File" FontFamily="Script MT Bold" FontSize="14" FontStyle="Italic" FontWeight="Medium">
<MenuItem Name="FileVivaldiCommand" Header="Command with Vivaldi Font" FontFamily="Vivaldi" FontSize="16" FontWeight="Heavy">
<GradientStop Color="Red" Offset="0" />
Full English posts Archive