小编Max*_*ard的帖子

你如何删除空段所占用的空间?

如何摆脱段落的空间?我尝试使用否定margin/padding但它不接受这些属性的负值.任何的想法?

我的代码如下:

<FlowDocument>
    <Section>
        <Paragraph>1</Paragraph>
        <Paragraph>2</Paragraph>
        <Paragraph></Paragraph>
        <Paragraph>4</Paragraph>
    </Section>
</FlowDocument>
Run Code Online (Sandbox Code Playgroud)

并且,上面代码的输出如下:

在此输入图像描述

编辑:这是一个更有意义的例子(根据评论):

<FlowDocument>
    <Section>
        <Paragraph>
            <TextBlock Text="1" Visibility="Visible"/>
        </Paragraph>
        <Paragraph>
            <TextBlock Text="2" Visibility="Visible"/>
        </Paragraph>
        <Paragraph>
            <TextBlock Text="3" Visibility="Collapsed"/>
        </Paragraph>
        <Paragraph>
            <TextBlock Text="4" Visibility="Visible"/>
        </Paragraph>
    </Section>
</FlowDocument>
Run Code Online (Sandbox Code Playgroud)

这使得完全相同的结果.

wpf xaml paragraph

7
推荐指数
1
解决办法
1193
查看次数

如何在批处理文件中交换我的主显示器?

一切都在标题中,我已经使用 Display Changer 进行了测试,但没有成功,因为我的显示器都被命名为“通用 PnP 显示器”,所以我不能说哪个屏幕必须设置为主屏幕。我已经看到我需要下载驱动程序才能为我的显示器命名,但我的两个显示器都没有适用于 Windows 10 的驱动程序。我认为必须有一种方法可以简单地将主屏幕交换到另一个屏幕或类似的事情,但我还没有看到有人这样做。

batch-file monitor

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

batch-file ×1

monitor ×1

paragraph ×1

wpf ×1

xaml ×1