Windows.UI.Xaml.DependencyObject.GetValue C# (CSharp) Method

GetValue() public method

public GetValue ( [ dp ) : object
dp [
return object
		public extern object GetValue([In] DependencyProperty dp);
		public extern void SetValue([In] DependencyProperty dp, [In] object value);

Usage Example

Exemplo n.º 1
0
        private static void ProgressPropertyChangedCallback(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e) {
            var isLoading = (bool)dependencyObject.GetValue(IsInProgressProperty);
            var isError = (bool)dependencyObject.GetValue(IsErrorProperty);
            dependencyObject.SetValue(IsStatusVisibleProperty, isError || isLoading);

            var canTryAgain = (bool) dependencyObject.GetValue(CanTryAgainProperty);
            dependencyObject.SetValue(IsTryAgainButtonVisibleProperty, isError && canTryAgain);
        }
All Usage Examples Of Windows.UI.Xaml.DependencyObject::GetValue