<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Styles\Styles.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:TSmallHelper.Converter">
<local:TemperatureValueConverter x:Key="mTemperatureValueConverter"/>
<UserControl x:Class="TSmallHelper.Views.Index"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/up-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
Height="118" Width="215" Background="{Binding Path=TodayTemperature,Converter={StaticResource mTemperatureValueConverter}}">
这是声明步骤,但是调试打断点,没法进TemperatureValueConverter,而且这个Converter 没有起任何作用,请问这是怎么回事?
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Styles\Styles.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:TSmallHelper.Converter">
<local:TemperatureValueConverter x:Key="mTemperatureValueConverter"/>
<UserControl x:Class="TSmallHelper.Views.Index"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/up-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
Height="118" Width="215" Background="{Binding Path=TodayTemperature,Converter={StaticResource mTemperatureValueConverter}}">
这是声明步骤,但是调试打断点,没法进TemperatureValueConverter,而且这个Converter 没有起任何作用,请问这是怎么回事?
解决方案 »
- 线程问题:Interrupt可以唤醒sleep的线程吗?
- 关于找到网页中所有可用超链接
- 在Form1中定义了一个数组并且赋值,怎么在一个新建的类中引用并修改数组元素?
- 错误 CS0234: 命名空间“System.Net”中不存在类型或命名空间名称“HttpWebRequest”(是缺少程序集引用吗?
- 这样一段程序在.net2005里编译通不过?请各位大人看看?到底怎么回事?
- 数据类型转换
- 反射调用异常小问题?
- lllll
- 想实现的功能是:选择跟菜单1时显示listFunc里的内容不显示listFunc1里的内容。选择跟菜单2时显示listFunc1里的内容不显示listFunc里的内容。
- 如何获取客户端Ip??如何销毁一个线程??
- 单元测试用例
- C#怎么实现右键菜单的复制和粘贴?
public class TemperatureValueConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
SolidColorBrush mySolidColorBrush = new SolidColorBrush();
mySolidColorBrush.Color = Color.FromArgb(255, 0xF0, 0x96, 0x09); return mySolidColorBrush;
} public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
throw new NotImplementedException();
}
}
刚试了,不能中断,这是什么原因?之前用没遇到过这种原因。