コード例 #1
0
 public static void OnAfterRender(Element[] rendered)
 {
     // Layout grid everytime an image is loaded
     jQuery.FromElements(rendered).Find("img").Load(delegate(jQueryEvent e)
     {
         wall.fitWidth();
     });
 }
コード例 #2
0
        public static void init()
        {
            ContactCardViewModel vm = new ContactCardViewModel();

            wall = new FreeWallPlugin("#freewall");
            FreeWallOptions options = new FreeWallOptions();

            options.selector = ".brick";
            options.animate  = true;
            options.cellW    = 150;
            options.cellH    = "auto";
            options.onResize = delegate()
            {
                wall.fitWidth();
            };

            wall.reset(options);

            // Data Bind the View Model
            ViewBase.RegisterViewModel(vm);
        }
コード例 #3
0
ファイル: ContactCardView.cs プロジェクト: DeBiese/SparkleXrm
        public static void init()
        {
            ContactCardViewModel vm = new ContactCardViewModel();

            wall = new FreeWallPlugin("#freewall");
            FreeWallOptions options = new FreeWallOptions();
            options.selector = ".brick";
            options.animate = true;
            options.cellW = 150;
            options.cellH = "auto";
            options.onResize = delegate()
            {
                wall.fitWidth();
            };

            wall.reset(options);
            
            // Data Bind the View Model
            ViewBase.RegisterViewModel(vm);

        }