public override object ProvideValue(MarkupExtensionContext extensionContext) { return new RelativeSource { Mode = Mode, }; }
public override object ProvideValue(MarkupExtensionContext markupExtensionContext) { var typeRepository = markupExtensionContext.ValueContext.TypeRepository; var typeAndMember = GetTypeAndMember(Identifier); var prefixAndType = GetPrefixAndType(typeAndMember.Item1); var xamlType = typeRepository.GetByPrefix(prefixAndType.Item1, prefixAndType.Item2); return GetValue(xamlType.UnderlyingType, typeAndMember.Item2); }
public override object ProvideValue(MarkupExtensionContext markupExtensionContext) { if (Type != null) { return Type; } return ResolveFromString(TypeName, markupExtensionContext.TypeRepository); }
public override object ProvideValue(MarkupExtensionContext extensionContext) { return new Binding { Converter = Converter, Mode = Mode, SourcePropertyPath = Path, }; }
public override object ProvideValue(MarkupExtensionContext extensionContext) { return new Binding { Converter = Converter, ElementName = ElementName, Mode = Mode, Path = Path, }; }
public override object ProvideValue(MarkupExtensionContext extensionContext) { return new Data.Binding { Converter = Converter, Mode = Mode, Priority = BindingPriority.TemplatedParent, RelativeSource = new RelativeSource(RelativeSourceMode.TemplatedParent), SourcePropertyPath = Path, }; }
public override object ProvideValue(MarkupExtensionContext extensionContext) { return new Binding { Converter = Converter, ElementName = ElementName, Mode = Mode, RelativeSource = new RelativeSource(RelativeSourceMode.TemplatedParent), Path = Path, Priority = Priority, }; }
public override object ProvideValue(MarkupExtensionContext extensionContext) { return new Binding { Converter = Converter, ConverterParameter = ConverterParameter, ElementName = ElementName, FallbackValue = FallbackValue, Mode = Mode, Path = Path, Priority = Priority, }; }
public override object ProvideValue(MarkupExtensionContext extensionContext) { var target = extensionContext.TargetObject as Control; var targetProperty = extensionContext.TargetProperty; var targetPropertyName = targetProperty.Name; var perspexProperty = target.GetRegisteredProperties().First(property => property.Name == targetPropertyName); return new XamlBindingDefinition ( target, perspexProperty, new PropertyPath(this.Path), this.Mode == BindingMode.Default ? BindingMode.OneWay : this.Mode ); }
public override object ProvideValue(MarkupExtensionContext extensionContext) { return new XamlBindingDefinition(Path, Mode); }
public override object ProvideValue(MarkupExtensionContext extensionContext) { return new StyleResourceBinding(this.Name); }