This file contains hidden or 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
using System; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Media; | |
using System.Windows.Media.Animation; | |
namespace ExpandDemo | |
{ | |
class AnimatedWrapPanel : Panel | |
{ |
This file contains hidden or 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
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
x:Name="window" | |
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" | |
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" | |
x:Class="MvvmLightExtended.MainWindow" | |
Width="800" | |
Height="600" |
This file contains hidden or 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
xcopy "$(KINECTSDK20_DIR)Redist\Face\$(Platform)\NuiDatabase" "$(TargetDir)\NuiDatabase" /S /R /Y /I |
This file contains hidden or 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
var url = (window.URL || window.webkitURL).createObjectURL(mp3blob); | |
var link = window.document.createElement('a'); | |
link.href = url; | |
link.download = 'output.mp3'; | |
var evt = new MouseEvent('click', { 'view': window, 'bubbles': true, 'cancelable': true }); | |
link.dispatchEvent(evt); |
This file contains hidden or 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
newCopy = jQuery.extend(true, {}, originalObject); |
This file contains hidden or 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
using System; | |
namespace CommandHelpers | |
{ | |
public class DelegateCommand : System.Windows.Input.ICommand | |
{ | |
#region Fields | |
private readonly Action<object> execute; |
This file contains hidden or 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
var getFileOperation = Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync(relativePath); | |
getFileOperation.AsTask().Wait(); | |
var file = getFileOperation.GetResults(); | |
var openReadOperation = file.OpenReadAsync(); | |
openReadOperation.AsTask().Wait(); | |
using (var stream = openReadOperation.GetResults().AsStreamForRead()) | |
{ | |
return Load(stream, segmentsX, segmentsY, width); | |
} |
NewerOlder