public RelativeSource(RelativeSourceMode mode, Type type, int level) : this(NoesisGUI_PINVOKE.new_RelativeSource__SWIG_2((int)mode, new HandleRef(type, (type != null ? Noesis.Extend.GetNativeType(type) : IntPtr.Zero)), level), true) { if (NoesisGUI_PINVOKE.SWIGPendingException.Pending) { throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve(); } }
public RelativeSource(RelativeSourceMode mode) : this(NoesisGUI_PINVOKE.new_RelativeSource__SWIG_1((int)mode), true) { if (NoesisGUI_PINVOKE.SWIGPendingException.Pending) { throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve(); } }
/// <summary> /// Initializes a new BindingInfo with a path, a source binding RelativeSourceMode, and an optional converter. /// </summary> /// <param name="path">The path to the source member.</param> /// <param name="bindingMode">The binding direction.</param> /// <param name="relativeSourceMode">The source RelativeSourceMode.</param> /// <param name="converterType">An optional converter.</param> /// <param name="converterParameter">An optional converter parameter.</param> internal BindingInfo(string path, BindingMode bindingMode, RelativeSourceMode relativeSourceMode, Type converterType = null, object converterParameter = null) { Path = path; RelativeSourceMode = relativeSourceMode; ConverterType = converterType; ConverterParameter = converterParameter; }
public RelativeSource(RelativeSourceMode mode) : this(NoesisGUI_PINVOKE.new_RelativeSource__SWIG_1((int)mode), true) { #if UNITY_EDITOR || NOESIS_API if (NoesisGUI_PINVOKE.SWIGPendingException.Pending) { throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve(); } #endif }
// Token: 0x06001CAC RID: 7340 RVA: 0x00086628 File Offset: 0x00084828 private void InitializeMode(RelativeSourceMode mode) { if (mode == RelativeSourceMode.FindAncestor) { this._ancestorLevel = 1; this._mode = mode; return; } if (mode == RelativeSourceMode.PreviousData || mode == RelativeSourceMode.Self || mode == RelativeSourceMode.TemplatedParent) { this._ancestorLevel = 0; this._mode = mode; return; } throw new ArgumentException(SR.Get("RelativeSourceModeInvalid"), "mode"); }
void InitializeMode(RelativeSourceMode mode) { Debug.Assert(IsUninitialized); if (mode == RelativeSourceMode.FindAncestor) { // default level _ancestorLevel = 1; _mode = mode; } else if (mode == RelativeSourceMode.PreviousData || mode == RelativeSourceMode.Self || mode == RelativeSourceMode.TemplatedParent) { _ancestorLevel = 0; _mode = mode; } else { throw new ArgumentException(SR.Get(SRID.RelativeSourceModeInvalid), "mode"); } }
// Token: 0x060075FF RID: 30207 RVA: 0x0021A65C File Offset: 0x0021885C public override string ToString() { RelativeSourceMode mode = this._relativeSource.Mode; string result; if (mode == RelativeSourceMode.FindAncestor) { result = string.Format(CultureInfo.InvariantCulture, "RelativeSource {0}, AncestorType='{1}', AncestorLevel='{2}'", new object[] { this._relativeSource.Mode, this._relativeSource.AncestorType, this._relativeSource.AncestorLevel }); } else { result = string.Format(CultureInfo.InvariantCulture, "RelativeSource {0}", new object[] { this._relativeSource.Mode }); } return(result); }
public RelativeSource(RelativeSourceMode mode) { _mode = mode; }
public RelativeSource(RelativeSourceMode mode) { }
public RelativeSource(RelativeSourceMode mode, Type ancestorType, int ancestorLevel) { }
public RelativeSourceExtension(RelativeSourceMode mode) { Mode = mode; }
public RelativeSource(RelativeSourceMode mode, Type type, int level) : this(NoesisGUI_PINVOKE.new_RelativeSource__SWIG_2((int)mode, type != null ? Noesis.Extend.EnsureNativeType(type) : IntPtr.Zero, level), true) { }
/// <summary>Initializes a new instance of the <see cref="T:System.Windows.Data.RelativeSource" /> class with an initial mode.</summary> /// <param name="mode">One of the <see cref="T:System.Windows.Data.RelativeSourceMode" /> values.</param> // Token: 0x06001C9B RID: 7323 RVA: 0x00086458 File Offset: 0x00084658 public RelativeSource(RelativeSourceMode mode) { this.InitializeMode(mode); }
/// <summary>Initializes a new instance of the <see cref="T:System.Windows.Data.RelativeSource" /> class with an initial mode and additional tree-walking qualifiers for finding the desired relative source.</summary> /// <param name="mode">One of the <see cref="T:System.Windows.Data.RelativeSourceMode" /> values. For this signature to be relevant, this should be <see cref="F:System.Windows.Data.RelativeSourceMode.FindAncestor" />.</param> /// <param name="ancestorType">The <see cref="T:System.Type" /> of ancestor to look for.</param> /// <param name="ancestorLevel">The ordinal position of the desired ancestor among all ancestors of the given type. </param> // Token: 0x06001C9C RID: 7324 RVA: 0x0008646E File Offset: 0x0008466E public RelativeSource(RelativeSourceMode mode, Type ancestorType, int ancestorLevel) { this.InitializeMode(mode); this.AncestorType = ancestorType; this.AncestorLevel = ancestorLevel; }
public void SetRelative(RelativeSourceMode mode, DependencyProperty property) { this.RelativeSource = new RelativeSource(mode); this.Path = new PropertyPath(property); }
public RelativeSource(RelativeSourceMode mode, Type type, int level) : this(NoesisGUI_PINVOKE.new_RelativeSource__SWIG_2((int)mode, new HandleRef(type, (type != null ? Noesis.Extend.GetNativeType(type) : IntPtr.Zero)), level), true) { }
public RelativeSource(RelativeSourceMode mode) : this(NoesisGUI_PINVOKE.new_RelativeSource__SWIG_1((int)mode), true) { }
/// <summary>Constructor /// </summary> public RelativeSource(RelativeSourceMode mode) { InitializeMode(mode); }
/// <summary>Constructor for FindAncestor mode /// </summary> public RelativeSource(RelativeSourceMode mode, Type ancestorType, int ancestorLevel) { InitializeMode(mode); AncestorType = ancestorType; AncestorLevel = ancestorLevel; }
/// <summary> /// Initializes a new instance of the RelativeSource class by using provided relative source mode. /// </summary> /// <param name="relativeSourceMode">The relative source mode</param> public RelativeSource(RelativeSourceMode relativeSourceMode) { _mode = relativeSourceMode; }
public RelativeSource(RelativeSourceMode mode) { this.Mode = mode; }
public static RelativeSourceMode Unbox_RelativeSourceMode(IntPtr val) { RelativeSourceMode ret = (RelativeSourceMode)NoesisGUI_PINVOKE.Unbox_RelativeSourceMode(val); return(ret); }
public static IntPtr Box_RelativeSourceMode(RelativeSourceMode val) { IntPtr ret = NoesisGUI_PINVOKE.Box_RelativeSourceMode((int)val); return(ret); }
/// <summary> /// Initializes a new instance of the <see cref="RelativeSource"/> class. /// </summary> /// <param name="mode">The relative source mode.</param> public RelativeSource(RelativeSourceMode mode) { Mode = mode; }
/// <summary> /// /// </summary> /// <param name="Value"></param> /// <param name="Property"></param> /// <param name="Path"></param> /// <param name="RelativeSourceMode"></param> /// <param name="Mode"></param> /// <returns></returns> public static BindingExpressionBase Bind(this DependencyObject Value, DependencyProperty Property, string Path, RelativeSourceMode RelativeSourceMode = RelativeSourceMode.Self, BindingMode Mode = BindingMode.OneWay, UpdateSourceTrigger UpdateSourceTrigger = UpdateSourceTrigger.Default) { return(BindingOperations.SetBinding(Value, Property, new Binding() { RelativeSource = new RelativeSource(RelativeSourceMode), Path = new PropertyPath(Path), Mode = Mode })); }