The latest build of this product (v2019.1 build 0683) was released 2 months ago, which was before this thread was created.
Posted 2 months ago by Peter Treier
Version: 19.1.0683
Avatar

Good Evening

I try to bind the RingSpinners Visibility to a BoolToVisibility Converter.

It doesn't work :-/

Here's the Binding Debug info

System.Windows.Data Warning: 56 : Created BindingExpression (hash=2854726) for Binding (hash=47841633)
System.Windows.Data Warning: 58 : Path: 'Busy'
System.Windows.Data Warning: 60 : BindingExpression (hash=2854726): Default mode resolved to OneWay
System.Windows.Data Warning: 61 : BindingExpression (hash=2854726): Default update trigger resolved to PropertyChanged
System.Windows.Data Warning: 62 : BindingExpression (hash=2854726): Attach to ActiproSoftware.Windows.Controls.RingSpinner.Visibility (hash=54443429)
System.Windows.Data Warning: 67 : BindingExpression (hash=2854726): Resolving source 
System.Windows.Data Warning: 70 : BindingExpression (hash=2854726): Found data context element: RingSpinner (hash=54443429) (OK)
System.Windows.Data Warning: 78 : BindingExpression (hash=2854726): Activate with root item MainVM (hash=53540541)
System.Windows.Data Warning: 108 : BindingExpression (hash=2854726): At level 0 - for MainVM.Busy found accessor RuntimePropertyInfo(Busy)
System.Windows.Data Warning: 104 : BindingExpression (hash=2854726): Replace item at level 0 with MainVM (hash=53540541), using accessor RuntimePropertyInfo(Busy)
System.Windows.Data Warning: 101 : BindingExpression (hash=2854726): GetValue at level 0 from MainVM (hash=53540541) using RuntimePropertyInfo(Busy): 'False'
System.Windows.Data Warning: 80 : BindingExpression (hash=2854726): TransferValue - got raw value 'False'
#### Converter Output: value¨:'False' targetType: 'System.Windows.Visibility'

System.Windows.Data Warning: 82 : BindingExpression (hash=2854726): TransferValue - user's converter produced 'Hidden'
System.Windows.Data Warning: 89 : BindingExpression (hash=2854726): TransferValue - using final value 'Hidden'
System.Windows.Data Warning: 96 : BindingExpression (hash=2854726): Got PropertyChanged event from RingSpinner (hash=54443429) for DataContext
System.Windows.Data Warning: 79 : BindingExpression (hash=2854726): Deactivate
System.Windows.Data Warning: 103 : BindingExpression (hash=2854726): Replace item at level 0 with {NullDataItem}
System.Windows.Data Warning: 78 : BindingExpression (hash=2854726): Activate with root item FileHandlingVM (hash=6488958)
System.Windows.Data Warning: 108 : BindingExpression (hash=2854726): At level 0 - for FileHandlingVM.Busy found accessor RuntimePropertyInfo(Busy)
System.Windows.Data Warning: 104 : BindingExpression (hash=2854726): Replace item at level 0 with FileHandlingVM (hash=6488958), using accessor RuntimePropertyInfo(Busy)
System.Windows.Data Warning: 101 : BindingExpression (hash=2854726): GetValue at level 0 from FileHandlingVM (hash=6488958) using RuntimePropertyInfo(Busy): 'False'
System.Windows.Data Warning: 80 : BindingExpression (hash=2854726): TransferValue - got raw value 'False'
#### Converter Output: value¨:'False' targetType: 'System.Windows.Visibility'

System.Windows.Data Warning: 82 : BindingExpression (hash=2854726): TransferValue - user's converter produced 'Hidden'
System.Windows.Data Warning: 89 : BindingExpression (hash=2854726): TransferValue - using final value 'Hidden'



Using final Value 'Hidden' but the Spinner is still visble ? Any Ideas?

Regards
Peter

Comments (1)

Answer - Posted 2 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Peter,

I tried this simple XAML snippet and it seems to work fine:

<StackPanel>
	<shared:RingSpinner x:Name="spinner" Width="100" Height="100" IsSpinning="true" 
						Visibility="{Binding ElementName=toggleVisible, Path=IsChecked, Converter={StaticResource boolToVis}}" />
	<ToggleButton x:Name="toggleVisible" Content="Is Visible" IsChecked="True" />

</StackPanel>


Actipro Software Support

Add Comment

Please log in to a validated account to post comments.