Posted in General, Windows UWP 10

Windows 10 UWP Book

Finally my second e-book “Step into windows 10” released. Please download and give freed back friends..

03032016003341amsuresh20m20book20coverpage20design_small

This book describes the UI features and benefits of UWP in Windows 10. Let’s start by taking a look at some of the features that you get when you create a UWP. This book samples are written in C# and XAML.

 

Download

Table of Content
  • Quick Introduction
  • Requirements for Windows 10 UWP Development
  • Life cycle of windows 10
  • Writing your first Windows 10 UWP APP
  • Show Message Dialog in Windows 10
  • Windows 10 Application Bar
  • Change Apps Title Bar Colour and Enable Back Button In Windows 10 UWP
  • Windows 10 Split View-Hamburger Menu
  • Send E-mail and SMS in windows 10
  • Map control to show your current location and get the street address using GPS Co-ordinates in Windows 10 UWP
  • 3D Map for Windows 10 UWP
  • File Picker in Windows 10 UWP
  • Pick text file in Windows 10 UWP
  • Drag and Drop functionality instead of File Picker in Windows 10 UWP
  • Local Data Base SQLite for Windows 10 UWP
  • Consume web service using HttpClient to POST and GET json data in Windows 10 UWP
  • HTTP Live Streaming in Windows 10
  • Background File Downloader for Windows 10 UWP
  • RSS Reader in Windows 10 UWP App
  • Sensors in Windows 10 UWP App
  • Set Specific Device Family XAML Views In Windows 10 UWP
  • Drawing and Inking Using New InkCanvas Control for Windows 10 UWP App
  • Disable screen capture in Windows 10 UWP

For more windows 10 related articles follow my articles in my blog windows 10 section and also in my C# Corner articles

Posted in WIN_7

Send Email from GMail, Yahoo! And Hotmail Using C# in ASP.Net and WCF

 

Send Email from GMail, Yahoo! And Hotmail Using C# in ASP.Net and WCF

In this article we are going to see how to send email using C#.

Most of the applications we need to send mail to the user here I am going to explain how you will send mail using your Gmail, Yahoo and Hotmail account.

For sending mail we need the server details like smtp host name and port to configure SMTP.  See the list of server details for sending mail.

Name Host name Port
Gmail smtp.gmail.com 587
Yahoo! smtp.mail.yahoo.com 587
Hotmail smtp.live.com 587

Create new asp.net or WCF application according to your requirement. Then go to your code behind page and write the following code for example using Gmail.

public void SendEmail()

{

try

{

SmtpClient clientSMTP = new SmtpClient(“smtp.gmail.com”, 587);

 

clientSMTP.EnableSsl = true;

clientSMTP.DeliveryMethod = SmtpDeliveryMethod.Network;

clientSMTP.UseDefaultCredentials = false;

clientSMTP.Credentials = new NetworkCredential(“yourgmailid@gmail.com”,”password”);

using (MailMessage message = new MailMessage())

{

message.From = new MailAddress(“yourgmailid @gmail.com”);

message.Subject = “Subject”;

message.IsBodyHtml = true;

message.To.Add(“toemailid@gmail.com”);

message.Body=”Hi ” + “Suresh” + “!\n” +

“Welcome to C# Corner!” +

“Please <a href='” + ” https://windowsapptutorials.wordpress.com/ ” + “‘>click</a> here to activate your account. \nThanks!”;

clientSMTP.Send(message);

}

}

catch(Exception ex)

{

 

}

finally

{

 

}}

You can send email with attachment also using Attachment property. If you need to CC to someone or BC to someone use the following code

message.Cc.Add(“ccmailID”);

message.Bc.Add(“bcmailID”);

 

 

 

Posted in Windows 10 UWP, WIN_7

How to show image in circle shape

In this article we are going to see how to show the image in circular shape and decode the pixel in windows 10 UWP.

To perform this task we are going to use two controls Ellipse and ImageBrush.

The following code will show image we set to the ImageBrush as circular

<Ellipse Width="150" Height="150">
            <Ellipse.Fill>
                <ImageBrush ImageSource="Assets/w10.jpg" />
            </Ellipse.Fill>
   </Ellipse>

You can set the ImageSource as url like the following code

<Ellipse Width="150" Height="150">
       <Ellipse.Fill>
            <ImageBrush ImageSource="http://csharpcorner.mindcrackerinc.netdna-cdn.com/UploadFile/AuthorImage/2b876a20140602051459.png" />
       </Ellipse.Fill>
 </Ellipse>

Now run the app and looks the output like the following image

2015-12-31_1213

Posted in WIN_7

Introducing Xamarin Evolve Student Scholarships

evolve-650__x__178__blog-1-1024x280

 

Xamarin helps students to become cross-platform mobile C# developers – through Microsoft DreamSpark.

Now Xamarin Evolve 2016 is the place to be if you are a student interested in mobile development.

Students can get free licence and training

For more details see  https://blog.xamarin.com/introducing-xamarin-evolve-student-scholarships/

Mobile development skills are in demand, using Xamarin for Students, you can build native iOS, Android, and Windows apps with Xamarin Studio and Visual Studio, for free.