title: How do I convert the following xaml statement to code?
body: <p>Similar questions were asked many times, but I cannot quite make them work. How would I create C# version of the following xalm statement:</p>
  
  <pre><code>        &lt;h:TubeVisual3D x:Name="PipeVisual" Path="{Binding Pipe.Path}" 
                          TextureCoordinates="{Binding Pipe.TextureCoordinates}"
                          Diameter="{Binding ElementName=PipeDiamSlider, Path= Value }" 
                          Material="{Binding Pipe.Material}"
                          BackMaterial="{Binding Pipe.Material}"
                          ThetaDiv="50" IsPathClosed="False"
                          Visible="{Binding ElementName=PipeIsVisibleCheck, Path=IsChecked}"/&gt;
  </code></pre>
  
  <p>Where “TubeVisual3D” is a 3D WPF element defined in Helix Toolkit and most of the parameters bound by the binding are dependency properties in “TubeVisual3D”.</p>