小编Joh*_*G79的帖子

git submodule update --init --recursive hangs

当我键入git submodule update --init --recursive以递归克隆子模块时,它开始说cloning...,然后继续做什么......只是挂起.

一个明显的解决方法是从.gitmodule文件中获取路径和repos,导航到他们开出的路径,然后git clone手动导出它们.

另一个明显的修复是Cntr-Z来打破动作,删除.git由--init子句生成的文件,然后再次尝试.它似乎有效.

然而,我似乎有一个破碎的结果.

我的主要问题是:如何获得git submodule update --init --recursive工作财产,而不是挂?

有没有其他人遇到过这个?

git clone

11
推荐指数
1
解决办法
4296
查看次数

使用IConverter处理WPF/XAML/MVVM中的{NewItemPlaceholder}

这是我的DataTemplate:

<UserControl.Resources>
    <converter:PlaceholderConverter x:Key="_placeholderConverter"/>

    <!-- Data(Display)Template for data objects of x:Type Customer-->
    <DataTemplate DataType="{x:Type model:Customer}">
        <!-- Customer Properties will be vertically stacked -->
        <ContentControl >
            <StackPanel>
                <TextBlock Text="{Binding FirstName}"/>
                <TextBlock Text="{Binding LastName}"/>
                <TextBlock Text="{Binding Phone}"/>
            </StackPanel>
        </ContentControl>
    </DataTemplate>
<UserControl.Resources>
Run Code Online (Sandbox Code Playgroud)

和两个不同的'容器':

<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="25"/>
        <RowDefinition Height="100"/>
        <RowDefinition Height="*"/>
    </Grid.RowDefinitions>

    <Button Grid.Row="0"
            Content="Delete"
            HorizontalAlignment="Left"
            VerticalAlignment="Top"
            Width="75"
            Command="{Binding DeleteCommand}"/>

    <DataGrid Grid.Row="1" 
              ItemsSource="{Binding Customers}" 
              SelectedItem="{Binding SelectedCustomer}" 
              AutoGenerateColumns="True"/>

    <ListBox 
        Grid.Row="2" 
        ItemsSource="{Binding Customers, Mode=OneWay}"/>
</Grid>
Run Code Online (Sandbox Code Playgroud)

和应用程序:

在此输入图像描述

  1. 如何删除{NewItemPlaceholder}?[完成,下面的解决方案].
  2. 如何防止在单击上表中的一个空行时提到"{NewItemPlaceholder}"的绑定错误,意图添加新行(我仍然可以添加行).

错误:

...Cannot convert '{NewItemPlaceholder}' from type 'NamedObject' …
Run Code Online (Sandbox Code Playgroud)

c# wpf xaml mvvm

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

防止 D3 在更新时添加重复项

下面是一个“工作”的 D3 动画。

单击鼠标时子节点成功消失......但是,添加了重复的节点(“圆圈”)。如果您尝试运行以下代码,然后折叠和打开节点,您将看到节点出现在其他节点之上!

在 chrome-inspection 中也可以看到重复的圆元素。

只是简单的折叠和打开就是我们在这里所追求的。非常感谢您的帮助 !谢谢你。

(忽略节点标签 - 它们不重要)

<html>
<head>
<style>
    .node {
        cursor: pointer;
        font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
        font-weight: 300;
    }

    .node .text {
        fill: white;
    }

    .ORG .circle {
        fill: #1d3649;
    }

    .EMR .circle {
        fill: #B2D0F5;
        stroke: #5596e6;
        stroke-dasharray: 3px, 3px;
        opacity: .5;
    }

    .EMR .circle:hover {
        fill: #5596e6;
    }

    .link {
        fill: none;
        stroke: #eee;
        stroke-width: 1.5px;
        font: 10px sans-serif;
    }

    .link.active {
        stroke: …
Run Code Online (Sandbox Code Playgroud)

graph collapse d3.js force-layout

2
推荐指数
1
解决办法
1424
查看次数

标签 统计

c# ×1

clone ×1

collapse ×1

d3.js ×1

force-layout ×1

git ×1

graph ×1

mvvm ×1

wpf ×1

xaml ×1