English 中文(简体)
• 如何在银星/WPF中vert倒地缩小地貌?
原标题:How to invert clipping geometry in Silverlight/WPF?

http://msdn.microsoft.com/en-us/library/system.windows.uielement.clip.aspx”>UIElement.Clip Propertytake a Geometry/code><<<>> 物体和用途 UIElement。 我只想把几何在的反向,而把一个漏洞混入其中。

任何人都知道如何这样做?

我想象,单壳地理测量的无节制版本会发挥作用,但我找不到这样做的途径。


http://www.ohchr.org。 WPF似乎有Geometry.Combine 。 可以用来从另一个地对一个地貌进行细分,尽管这种地表可在银灯上找到。 如果是的话,我可以从紧凑的试金星的元件的直径中减去碎块的地平线,而是用这种推倒。

最佳回答

银星的一种做法是使用<条码>GeometryGroup,并将从远方消极立场开始的非常大的直径包括在内。

例如,下列蓝广场面积较小:

    <Rectangle Fill="Blue" HorizontalAlignment="Center" VerticalAlignment="Center" Height="200" Width="200">
        <Rectangle.Clip>
            <GeometryGroup>
                <RectangleGeometry Rect="-2048 -2048 4096 4096" />
                <RectangleGeometry Rect="100 100 50 50" />
            </GeometryGroup>
        </Rectangle.Clip>
    </Rectangle>
问题回答

暂无回答




相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签