Showing posts with label WPF XAML CODE. Show all posts
Showing posts with label WPF XAML CODE. Show all posts

Sunday, September 30

Drag Object with click event inside Window (WPF c# application)

NameSpace: System.Windows.Controls.Primitives.Thumb
Download Here



The Thumb control provides drag functionality that can be used to move or resize controls by monitoring the DragStartedDragDelta and DragCompleted events of the Thumb.
The user begins a drag operation by pressing the left mouse button when the mouse pointer is paused on the Thumb control. The drag operation continues as long as the left mouse button remains pressed. During the drag operation, the DragDelta can occur more than once. Each time it occurs, the DragDeltaEventArgs class provides the change in position that corresponds to the change in mouse position. When the user releases the left mouse button, the drag operation is finished. The drag operation only provides new coordinates; it does not automatically reposition the Thumb.

Thursday, July 19

Reflection Effect in WPF (XAML Code)


Refection effect in wpf(Windows Presentation foundation) very simple application. First of all start a wpf project then drag and drop rectangle control on the mainWindow. In this illustration I’m using rectangle control you can either use border control and image control according to your requirements. Fill the desired gradient in rectangle you just dropped on the mainWindow.

Tuesday, July 17

MYSQL Connection with C# WPF Application

Download Here: MySQL_C#WPF_Connection
Hello guys, today i’m gonna teach you how to connect MYSQL with MS visual studio c#. This tutorial is about MySQL workbench 5.2 and MySQL server 5.5, make sure both are installed in your PC.so let’s get started first of all open MySQL workbench 5.2 then click on New Server Instance. And follow the steps to configure your server. When you are done make a database let’s say I made a database name “Text” and Server name is Localhost.

Friday, January 27

Create custom window in Wpf Application


Hello Once again, today tutorial is about how to create a custom window in wpf application, and how to integrate this application like other normal window by adding functionality into it. So without any further delay let’s get started, this tutorial is based on WPF technology, in which you code in xaml and c# languages, WPF is an acronym for Windows Presentation Foundation, Microsoft Visual studio c# 2010 or lower version are built with WPF technology.

Friday, January 13

Paint Application in WPF (XAML) and C# Code

Hello guys, today i'm gonna show you how to make a simple paint application in wpf application using XAML for its GUI and c# for its back end coding, this application is equipped with Buttons, labels and InkCanvas,
so lets start it, first of all open MS visual Studio C# 2010, open a new project (WPF application), you will be shown a window, in the designer window we will make GUI of application, here is the screenshot, you have to follow these steps to make this application.
  • Divide your main Grid into two columns by writing this code

            <Grid.ColumnDefinitions >
                  <ColumnDefinition Width="100*" />
                    <ColumnDefinition Width="425*" />
                  </Grid.ColumnDefinitions>


          Tuesday, January 3

          LUDO Board in WPF (XAML) Code




          <Window x:Class="WpfApplication1.MainWindow"
                  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                  Title="MainWindow" Height="500" Width="500">