Le code suivant:Comment changer la couleur du cube WPF HelixViewport3D et écrire du texte sur ce
<Window x:Class="helixCube.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:h="http://helix-toolkit.org/wpf"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:helixPerfectCube"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<Grid Width="200" Height="200" Background="Red">
<h:HelixViewport3D Title="Titlee" ShowViewCube="False" TextBrush="Black" Opacity="0.9">
<h:SunLight/>
<h:BoxVisual3D Width="12" Length="12" Height="12"/>
</h:HelixViewport3D>
</Grid>
</Window>
me donne le cube suivant:
Je voudrais faire ce qui suit 2 changements:
Je veux que la couleur du cube soit noire. Cependant, je ne peux pas trouver un moyen de le faire.
Je veux que le titre soit directement affiché sur (la surface du) cube.
Est-ce que quelqu'un sait comment cela peut-il être fait?