Windows.UI.Xaml.Media.Animation.Storyboard.GetTargetName C# (CSharp) Method

GetTargetName() public static method

public static GetTargetName ( [ element ) : string
element [
return string
		public static extern string GetTargetName([In] Timeline element);
		public static extern void SetTargetName([In] Timeline element, [In] string name);

Usage Example

        internal static void SetValueBypassPropagation(this Timeline timeline, object value)
        {
            if (timeline.Log().IsEnabled(Microsoft.Extensions.Logging.LogLevel.Debug))
            {
                timeline.Log().DebugFormat("Setting [{0}] to [{1} / {2}] and bypassing native propagation", value, Storyboard.GetTargetName(timeline), Storyboard.GetTargetProperty(timeline));
            }

            var animatedItem = timeline.PropertyInfo.GetPathItems().Last();

            using (
                DependencyObjectStore.BypassPropagation(
                    (DependencyObject)animatedItem.DataContext,
                    DependencyProperty.GetProperty(animatedItem.DataContext.GetType(), animatedItem.PropertyName)
                    )
                )
            {
                timeline.PropertyInfo.Value = value;
            }
        }
All Usage Examples Of Windows.UI.Xaml.Media.Animation.Storyboard::GetTargetName