ObjectDataProvider

<Window.Resources> 
    <ObjectDataProvider ObjectType="{x:Type local:TemperatureScale}" 
        MethodName="ConvertTemp" x:Key="convertTemp"> 
        <ObjectDataProvider.MethodParameters> 
            <system:Double>0</system:Double> 
             <local:TempType>Celsius</local:TempType> 
        </ObjectDataProvider.MethodParameters> 
    </ObjectDataProvider> 
</Window.Resources> 
posted @   ★火星人★  阅读(366)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示