You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sample: add auto-refresh toggle for external rotation mode
Demonstrates Combobulate.EnableAutoRefresh wired against the same
CompositionPropertySet the external rotation expression already drives.
Sampler also pumps CombobulateSceneVisual.RebuildForExternalRotation each
tick so both side-by-side renderers stay in sync.
Copy file name to clipboardExpand all lines: src/Combobulate.Sample.WinUI3/MainWindow.xaml
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,11 @@
48
48
<ButtonContent="Refresh quads"
49
49
Click="RefreshQuads_Click"
50
50
ToolTipService.ToolTip="External-mode helper. Re-runs back-face cull / painter sort (Combobulate) and re-bakes mesh (CombobulateSceneVisual) for the current slider rotation."/>
51
+
<ToggleSwitchx:Name="AutoRefreshToggle"
52
+
OnContent="Auto-refresh"
53
+
OffContent="Manual refresh"
54
+
Toggled="AutoRefreshToggle_Toggled"
55
+
ToolTipService.ToolTip="Only meaningful in external rotation mode. When ON, subscribes to CompositionTarget.Rendering and feeds the live property-set value into RebuildForExternalRotation per UI tick — painter sort and back-face cull stay in sync as the model spins, no manual Refresh needed."/>
0 commit comments