小编puc*_*uco的帖子

MS图表控件:定位标签之间的网格线

是否有可能格式化MS Chart Control图表,轴标签是在主要/次要刻度标记之间呈现的?

例如:在X轴上

|       |       |   x   |       |
|   x   |   x   |       |       |
|       |       |       |   x   |
+-------+-------+-------+-------+
   1/1     2/1     3/1     4/1   
Run Code Online (Sandbox Code Playgroud)

而不是默认:

|       |       |       x       | 
|       x       x       |       | 
|       |       |       |       x 
+-------+-------+-------+-------+----
       1/1     2/1     3/1     4/1   
Run Code Online (Sandbox Code Playgroud)

c# microsoft-chart-controls

6
推荐指数
1
解决办法
3231
查看次数

水平形式纯文本垂直对齐

在我的水平形式中,我尝试有一行,它不包含编辑控件,只是一个静态文本(例如,不可编辑的ID).当我把它放在那里它没有与标签对齐.是否有一个元素/类可以让它正确对齐?

<div class="form-horizontal">

    <div class="control-group">
        <label class="control-label">ID:</label>
        <div class="controls">
            <span class="help-inline">777</span>
        </div>
    </div>

</div>
Run Code Online (Sandbox Code Playgroud)

twitter-bootstrap

5
推荐指数
1
解决办法
1210
查看次数

字典上的RavenDB静态索引

我有一个使用文档的应用程序,其中包含字典中的属性列表,出于某种原因,我们需要对这些属性使用静态索引和查询/过滤.

原型看起来像这样:

class Program
{
    static void Main(string[] args)
    {
        IDocumentStore store = new DocumentStore() { DefaultDatabase = "Test", Url = "http://localhost:8081" };
        store.Initialize();

        IndexCreation.CreateIndexes(typeof(Program).Assembly, store);

        using (var session = store.OpenSession())
        {
            session.Store(new Document { Id = "1", Name = "doc_name", Attributes = new Dictionary<string, object> { { "Type", "1" }, { "Status", "Active" } } });
            session.SaveChanges();
        }

        using (var session = store.OpenSession())
        {
            // works
            var l1 = session.Query<Document, Documents_Index>().Where(a => a.Attributes["Type"] == "1").ToList();
            // not working
            var …
Run Code Online (Sandbox Code Playgroud)

ravendb

4
推荐指数
1
解决办法
954
查看次数