Hallo Ich habe folgendes Controll Template effiniert
Ich erstelle das Thmup so
ControlTemplate tmp = new ControlTemplate();
tmp= (ControlTemplate)Application.Current.Resources["Ereigniss"];
designer.AddShape(tmp, e.GetPosition(diagramView));
wie kann ich die Werte von TextBox und Label bearbeiten?
Ich bekomme es einfach nicht hin
Danke im Voraus Lusiphur
XML:
<ControlTemplate x:Key="Funktion">
<StackPanel>
<Image Name="tplImage" Source="/Images/funktion.png" Stretch="Uniform" Width="96" Height="67" HorizontalAlignment="Center"/>
<TextBlock Name="tplTextBlock" Text="Funktion" HorizontalAlignment="Center"/>
<TextBox>Text</TextBox>
<Label></Label>
</StackPanel>
</ControlTemplate>
ControlTemplate tmp = new ControlTemplate();
tmp= (ControlTemplate)Application.Current.Resources["Ereigniss"];
designer.AddShape(tmp, e.GetPosition(diagramView));
wie kann ich die Werte von TextBox und Label bearbeiten?
Ich bekomme es einfach nicht hin
Danke im Voraus Lusiphur
Zuletzt bearbeitet von einem Moderator: