Click here to Skip to main content
15,898,134 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Telerik RadRadioButton Hover Effect Pin
SledgeHammer0130-Mar-11 11:42
SledgeHammer0130-Mar-11 11:42 
QuestionWPF Entering Currency Pin
_Maxxx_30-Mar-11 2:10
professional_Maxxx_30-Mar-11 2:10 
AnswerRe: WPF Entering Currency Pin
Pete O'Hanlon30-Mar-11 2:26
mvePete O'Hanlon30-Mar-11 2:26 
AnswerRe: WPF Entering Currency [modified] Pin
Pete O'Hanlon30-Mar-11 8:54
mvePete O'Hanlon30-Mar-11 8:54 
GeneralRe: WPF Entering Currency Pin
_Maxxx_30-Mar-11 12:42
professional_Maxxx_30-Mar-11 12:42 
GeneralRe: WPF Entering Currency Pin
Pete O'Hanlon30-Mar-11 13:01
mvePete O'Hanlon30-Mar-11 13:01 
QuestionBinding a Checkbox Column with a Byte Value 0 or 1 [modified] Pin
Vimalsoft(Pty) Ltd29-Mar-11 22:12
professionalVimalsoft(Pty) Ltd29-Mar-11 22:12 
AnswerRe: Binding a Checkbox Column with a Byte Value 0 or 1 Pin
Pete O'Hanlon29-Mar-11 22:52
mvePete O'Hanlon29-Mar-11 22:52 
The problem's not quite the one you think it is. Basically the exception is telling you that the resource wrapper failed to get resource styling at System.Windows.ResourceManagerWrapper.GetResourceForUri(Uri xamlUri, Type componentType). The reason for this is unrelated to styling altogether. Basically, you are using a byte to represent a boolean condition, so I'd look at either converting the value to a boolean beforehand or converting the byte with a value converter:
C#
namespace MyConverters
{
  using System;
  using System.Windows.Data;

  /// <summary>
  /// Converter to determine whether or not a byte value is true or false.
  /// </summary>
  public class ByteToBooleanConverter :  IValueConverter
  {
    #region IValueConverter Members

    public object Convert(object value, Type targetType, object parameter, 
      System.Globalization.CultureInfo culture)
    {
      byte conv = (byte)value;
      return conv == (byte)1;
    }

    public object ConvertBack(object value, Type targetType, object parameter, 
      System.Globalization.CultureInfo culture)
    {
      throw new NotImplementedException();
    }

    #endregion
  }
}

I'm not a stalker, I just know things. Oh by the way, you're out of milk.

Forgive your enemies - it messes with their heads


My blog | My articles | MoXAML PowerToys | Onyx


GeneralRe: Binding a Checkbox Column with a Byte Value 0 or 1 Pin
Vimalsoft(Pty) Ltd30-Mar-11 2:27
professionalVimalsoft(Pty) Ltd30-Mar-11 2:27 
GeneralRe: Binding a Checkbox Column with a Byte Value 0 or 1 Pin
Pete O'Hanlon30-Mar-11 2:30
mvePete O'Hanlon30-Mar-11 2:30 
Questionproblem with cross-domain silverlight and WCF Pin
Yanshof29-Mar-11 5:11
Yanshof29-Mar-11 5:11 
AnswerRe: problem with cross-domain silverlight and WCF Pin
Pete O'Hanlon29-Mar-11 7:03
mvePete O'Hanlon29-Mar-11 7:03 
GeneralRe: problem with cross-domain silverlight and WCF Pin
Yanshof29-Mar-11 21:49
Yanshof29-Mar-11 21:49 
GeneralRe: problem with cross-domain silverlight and WCF Pin
Pete O'Hanlon29-Mar-11 22:25
mvePete O'Hanlon29-Mar-11 22:25 
GeneralRe: problem with cross-domain silverlight and WCF Pin
Yanshof29-Mar-11 23:23
Yanshof29-Mar-11 23:23 
GeneralRe: problem with cross-domain silverlight and WCF Pin
Pete O'Hanlon29-Mar-11 23:33
mvePete O'Hanlon29-Mar-11 23:33 
Questionusercontrol - silverlight 4.0 Pin
arkiboys29-Mar-11 5:04
arkiboys29-Mar-11 5:04 
AnswerRe: usercontrol - silverlight 4.0 Pin
Yanshof29-Mar-11 5:15
Yanshof29-Mar-11 5:15 
AnswerRe: usercontrol - silverlight 4.0 Pin
Mycroft Holmes29-Mar-11 13:04
professionalMycroft Holmes29-Mar-11 13:04 
GeneralRe: usercontrol - silverlight 4.0 Pin
arkiboys30-Mar-11 4:39
arkiboys30-Mar-11 4:39 
GeneralRe: usercontrol - silverlight 4.0 Pin
Mycroft Holmes30-Mar-11 14:13
professionalMycroft Holmes30-Mar-11 14:13 
GeneralRe: usercontrol - silverlight 4.0 [modified] Pin
arkiboys30-Mar-11 18:33
arkiboys30-Mar-11 18:33 
QuestionChange the Seleted Item of a Combobox in a Child window from a Parent Window Pin
Vimalsoft(Pty) Ltd29-Mar-11 4:28
professionalVimalsoft(Pty) Ltd29-Mar-11 4:28 
AnswerRe: Change the Seleted Item of a Combobox in a Child window from a Parent Window Pin
Mycroft Holmes29-Mar-11 13:12
professionalMycroft Holmes29-Mar-11 13:12 
GeneralRe: Change the Seleted Item of a Combobox in a Child window from a Parent Window Pin
Vimalsoft(Pty) Ltd29-Mar-11 19:18
professionalVimalsoft(Pty) Ltd29-Mar-11 19:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.