Free Online Courses for Software Developers - MrBool
× Please, log in to give us a feedback. Click here to login
×

You must be logged to download. Click here to login

×

MrBool is totally free and you can help us to help the Developers Community around the world

Yes, I'd like to help the MrBool and the Developers Community before download

No, I'd like to download without make the donation

×

MrBool is totally free and you can help us to help the Developers Community around the world

Yes, I'd like to help the MrBool and the Developers Community before download

No, I'd like to download without make the donation

How to give an Appealing User Interface to Windows Mobile Applications - AlphaMobileControls

Introduction of AlphaMobileControls. The article will explain the process to develop a mobile application making use of .NET that would possess attributes such as backdrop simplicity.

There is one set of reins that are generated with the assistance of AlphaMobileControls. The controls offer the developer with the conditions such as images, image buttons and labels. We need to add the below objects or attributes to library that is usually presented by Alphamobilecontrols:

  • AlphaButton
  • AlphaListBox
  • Modified the AlphaImage control so that we can elongate the image depending on the segment of the controls buttons.

The other set of controls that are available for AlphaMobileControls are explained below.

The source code is actually offered or presented but initially it was just limited to fulfil the specific needs of the application only. It was quite difficult to deploy this in order to make use of the same to come with an application with the help of Visual Studio Form Designer. So it was decided to introduce some of the controls that could handle images with Alpha Channel and Alpha Blending. This is what all is required and hence it is named as AlphaMobileControls.

Talking about the available controls, we have the below ones:

"AlphaControl":
AlphaLabel
AlphaPictureBox
AlphaImageButton

They must be contained in a particular container, either an AlphaPanel or an AlphaForm.

Introduction of AlphaMobileControls:

AlphaMobileControls is based on the .NET condensed Framework API that is useful in coming across with the WinForm controls particularly for Windows Phone so as to touch descriptions with alpha outlet and alpha combination. The main issue once can face over here is that the User interface is generally not provided though there are basic symbols visible but still the requirement of function can be met with the help of the Visual Studio Form Designer. This would make us to enforce lot of controls to manage the images with the help of Alpha outlet and Alpha combination. This would assist us to share the controls and named it as AlphaMobileControls.

Talking about the Mobile thick client applications, they are reaching to new peaks and getting more and more highlighted nowadays. One needs to have a good knowledge on the .NET Framework before he/she starts developing a client application. One thing to note here is that the CF set library reins or controls are not adequate enough for coming with a look of the User interface that is elegant. One needs to look in for a good number of third gathering reins or controls, majority of them should be very significant to make use of the same and utilize it in a handheld strategy. They shouldn’t be on the list that could result in some blunders or unexpected outcomes.

Though sometimes you may end with very less characters in comparison to what is required like a key navigable button control and a record control to exhibited record of objects however the same can be avoided by selecting the objects from the library provided by AlphaMobileControls

The Working of AlphaMobileControls:

public class AlphaControl : Control
public class AlphaButton : AlphaControl

The position of Alpha controls should be over and above the alpha storage place class - either Alphaform or Alphapanel. This storage place module comprises of the most important swindle of transparency. It has a paint technique which actually triggers the method known as draw that contains alpha reins:

   /// <summary>
  /// Handles the Paint event, it is where the magic happens :-
  Public void Onpaint (PaintEventArgs  e)
   {
        If  (_backBuffer  != null )
        {
           // We need a Graphics object on the buffer to get an HDC
          using    (Graphics   gxBuffer = Graphics.FromImage (_backBuffer))
           {
               //  Since we nop’d OnPaintBackground, take care of it here
              gxBuffer.Clear(_control.BackColor);

             Region gxClipBounds = new
Region(Rectangle.Ceiling(gxBuffer.ClipBounds));

                          // Iterates the child control list in reverse order
                        //  to respect the Z-order
                            for (int i  =  _control.Controls.Count – 1;  I >= 0;  i--)
                            {
                                //  Handle controls inheriting AlphaControl only
                               AlphaControl ctrl = _control.Controls [i]  as AlphaControl;
                               If  (ctrl ==  null)
                                     Continue;
                                     // Something to draw?
                                     Rectangle  clipRect  =
                                                Rectangle.Intersect (e.ClipRectangle,  ctrl.Bounds);     
                                                  If  (clipRect.IsEmpty)
                                                        Continue;

                                              // Clip to the control bounds
                                                 gxBuffer.Clip  =  new Region (clipRect);
                                            // Perform the actual drawing 
                                            Ctrl.DrawInternal (gxBuffer);
                              }
                                      // Restore clip bounds
                                      gxBuffer.Clip   =  gxClipBounds;
                           }

                             // Put the final composed image on screen.
                            e.Graphics.DrawImage
                                          (_backBuffer,  e.ClipRectangle,  e.ClipRectange,  GraphicsUnit.Pixel ) ;
                 }
                 else
                 {
                             // This should never happen,   should it ?
                             e.Graphics.Clear(_Control.BackColor) ;
                  }
        }
 }

AlphaControl inherits from the Control class and hides itself.

///  <summary>
/// Default constructor.
/// </summary>
Public AlphaControl ()
{
     Base.Visible  =  false;
}

It has a technique drawinternal which is actually pointed from its parent container. This would be one of either AlphaPanel or AlphaForm. This drawinteral technique is helpful in calling the the draw scheme of the derived classes. The methods such as drawline, drawrectangle, drawstring are made us of by the draw method or technique that helps in paints/draws the control of the contsiner.

///  <summary>
/// Internal Draw method, called by the container.
/// Will call the actual Draw method if the control is visible.
///  </summary>
internal void DrawInternal (Graphics   gx)
{
       If  (_visible)
             Draw (gx);
}
///  <summary>
/// Must be overridden.
///  </summary>
Public virtual void Draw(Graphics  gx)
{
}

Conclusion

AlphaMobile controls have been very vital in terms of extending the scope to bring in more functionalities and control collections.



Software Developer from India. I hold Master in Computer Applications Degree and is well versed with programming languages such as Java, .Net, C and C++ and possess good working knowledge on Mobile Platforms as well.

What did you think of this post?
Services
[Close]
To have full access to this post (or download the associated files) you must have MrBool Credits.

  See the prices for this post in Mr.Bool Credits System below:

Individually – in this case the price for this post is US$ 0,00 (Buy it now)
in this case you will buy only this video by paying the full price with no discount.

Package of 10 credits - in this case the price for this post is US$ 0,00
This subscription is ideal if you want to download few videos. In this plan you will receive a discount of 50% in each video. Subscribe for this package!

Package of 50 credits – in this case the price for this post is US$ 0,00
This subscription is ideal if you want to download several videos. In this plan you will receive a discount of 83% in each video. Subscribe for this package!


> More info about MrBool Credits
[Close]
You must be logged to download.

Click here to login