Tag: UI

几个可视化的.Net UI调试工具

Posted by – 2008/12/03

Josh Smith介绍了几个.Net平台的可视化调试工具

Crack.NET
Snoop
Mole

我尝试了Snoop非常好用,特别是3D视图是一个很Wow!的功能。Crack.NET是最新的一个项目,还需要试用一下。

WPF一则

Posted by – 2008/11/28

Button控件的Content内容因为过长而被截断。
可以指定Button的MinWidth属性,内容显示不下,Button会自动变长。

<Window x:Class="WPFSandBox.StretchButtonWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="300" Width="300">
    <UniformGrid Rows="4">
        <Button 
            HorizontalAlignment="Left"
            Name="StretchButton"
            MinWidth="80"
            Content="Very Long Label" />
        <TextBlock 
            HorizontalAlignment="Stretch"
            Text="{Binding Path=ActualWidth, ElementName=StretchButton}" />
    </UniformGrid>
</Window>