This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Define the Export File. | |
/// </summary> | |
public static class Export | |
{ | |
/// <summary> | |
/// Exporters the list of items that can include the specified include header line. | |
/// </summary> | |
/// <typeparam name="T">The generic type.</typeparam> | |
/// <param name="includeHeaderLine">If set to <c>true</c> [include header line].</param> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Converts to bitmap. | |
/// </summary> | |
/// <param name="imagesSource">The images source.</param> | |
/// <returns>The bitmap.</returns> | |
private static Bitmap ConvertToBitmap(byte[] imagesSource) | |
{ | |
var imageConverter = new ImageConverter(); | |
var image = (Image)imageConverter.ConvertFrom(imagesSource); | |
return new Bitmap(image); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Converts the specified image. | |
/// </summary> | |
/// <param name="image">The image.</param> | |
/// <returns>The WriteableBitmap</returns> | |
public static WriteableBitmap ConvertToWriteableBitmap(byte[] image) | |
{ | |
var bitmapImage = new BitmapImage(); | |
var memoryStream = new MemoryStream(image); | |
bitmapImage.SetSource(memoryStream); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Converts to bitmap image. | |
/// </summary> | |
/// <param name="image">The image.</param> | |
/// <returns>the bitmap image</returns> | |
public static BitmapImage ConvertToBitmapImage(byte[] image) | |
{ | |
var bitmapImage = new BitmapImage(); | |
var memoryStream = new MemoryStream(image); | |
bitmapImage.SetSource(memoryStream); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V –All | |
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All | |
Note: Run PowerShell as Admin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cls | |
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe "C:\DevApps\GitHub\Forks\XForms-Toolkit\src\Xamarin.Forms.Labs\Xamarin.Forms.Labs.sln" /p:configuration=release | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
md "$(SolutionDir)\bin\$(ProjectName)" | |
xcopy "$(TargetDir)." "$(SolutionDir)\bin\$(ProjectName)" /E /Y /C |