Regarding the issue of using WPF to display CAD tabs.
I want to display the content of color, line type, and line width tabs in CAD through WPF, but I only found the display method of color tabs and did not find the display method of line type and line width.Is there a way to solve it?
I tried these three attributes and didn't find any effect. Here is my Shaml code. In addition, I also tried LinetypeDialog, which does not inherit System.Windows.Controls.Control interface, therefore it cannot be embedded into my Xaml code.
@dali0312 This brother also raised the same question, but did not receive an effective solution
<Window x:Class="Class1.Form.ZTestForm"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Class1.Form"
xmlns:windows="clr-namespace:Autodesk.AutoCAD.Windows;assembly=AcWindows"
mc:Ignorable="d" Loaded="Window_Loaded"
d:DesignHeight="450" d:DesignWidth="800">
<StackPanel>
<DockPanel>
<windows:ColorComboBox Name="colorcom" Width="120" Height="38" />
</DockPanel>
</StackPanel>
</Window>
/// <summary>
/// ZTest.xaml 的交互逻辑
/// </summary>
public partial class TestForm : Window
{
public TestForm()
{
InitializeComponent();
}
private void Window_Loaded(object sender, RoutedEventArgs e)
{
colorcom.BorderBrush = Brushes.White;
colorcom.Background = Brushes.White;
colorcom.Foreground = Brushes.White;
}
}