Fixed memory leak and duplicate initialization in WinUI panel

このコミットが含まれているのは:
Sergio Pedri committed 2021-11-20 00:28:05 +01:00
1 親 66d78cc4e9
コミット 919dd15914
3ファイル変更
+51 -7

検索条件に一致するファイルはありません

@@ -107,9 +107,9 @@
ShaderRunner="{x:Bind ShaderRunner}"/>
<!--Note: here we have a selection property to work around {x:Bind} not working correctly outside of the
current template scope. Once that's fixed in WinUI 3, this can be rewritten as a multi-binding like this:
Visibility="{x:Bind system:Object.ReferenceEquals((local:ComputeShader), ViewModel.SelectedComputeShader), Mode=OneWay}".
When that is working, the ComputeShader.IsSelected property can also be removed, as it will no longer be needed.-->
current template scope. Once that's fixed in WinUI 3, this can be rewritten as a multi-binding like this:
Visibility="{x:Bind system:Object.ReferenceEquals((local:ComputeShader), ViewModel.SelectedComputeShader), Mode=OneWay}".
When that is working, the ComputeShader.IsSelected property can also be removed, as it will no longer be needed.-->
<Border
BorderThickness="4"
BorderBrush="White"