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
// Visual elements can react to events or property changes. | |
// Triggers can be thought of for "conditional styles". | |
// Types: Trigger, EventTrigger, DataTrigger, MultiTrigger | |
//EXAMPLE: hooking trigger to a property | |
//You have a trigger that fires when a property changes | |
//create the trigger | |
var trigger = new Trigger(typeof(Entry)); | |
trigger.Property = Entry.IsFocusedProperty; // hooked to the "IsFocused" property! |
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
//db interface in shared pcl | |
using System; | |
using SQLite.Net; | |
namespace SampleApp | |
{ | |
public interface ISQLite | |
{ | |
SQLiteConnection GetConnection(); |
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
public class IOHelper | |
{ | |
public enum IosSpecialFolder | |
{ | |
Documents, | |
Library, | |
Cache, | |
Preferences, | |
Tmp | |
} |
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
/* | |
This example shows how to dynamically load assembly, how to create object instance, how to invoke method or how to get and set property value. | |
Create instance from assembly that is in your project References | |
*/ | |
//The following examples create instances of DateTime class from the System assembly. | |
// create instance of class DateTime | |
DateTime dateTime = (DateTime)Activator.CreateInstance(typeof(DateTime)); |
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
<html> | |
<!-- | |
POC that detects DOM mutations on FF13+ and Chrome. | |
Uses MutationObserver, or DOM events as a fallback. | |
################################################### | |
For IE compatibility, replace: | |
myElement.addEventListener ('eventNameHere', callBackNameOrFunctionHere, false); |
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
<html class="csstransforms3d1"> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/masonry/2.1.07/jquery.masonry.min.js"></script> | |
<style> | |
/* CARDS | |
*****************************************************/ | |
.card { | |
/* styling */ |
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
<html class="csstransforms3d"> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> | |
<style> | |
/* CARDS | |
*****************************************************/ | |
.card { | |
/* styling */ | |
width: 200px; | |
height: 200px; |
NewerOlder