LinearGauge
Overview
Features
Sample
Description
This sample shows the basic usage of the LinearGauge control.
Source
IndexController.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace MvcExplorer.Controllers
{
public partial class LinearGaugeController : Controller
{
public ActionResult Index()
{
return View();
}
}
}
Index.cshtml
@(Html.C1().LinearGauge()
.Face(fb => fb.Min(0).Max(10))
.Pointer(pb => pb.Max(5))
.Width(500)
)
@section Description{
@Html.Raw(Resources.LinearGauge.Index_Text0)
}
Documentation