private object GetValue(IStyledElement control, Type targetType)
 {
     return(ColorToBrushConverter.Convert(control.FindResource(ResourceKey), targetType));
 }
 protected override void Subscribed(IObserver <object?> observer, bool first)
 {
     observer.OnNext(Convert(_target.FindResource(_key)));
 }
示例#3
0
 private object GetValue(IStyledElement control)
 {
     return(control.FindResource(ResourceKey));
 }