Hello All,
During runtime iam drawing multiple shapes(path,rectangle,ellipse) on the canvas on a WPF Window and storing the shapes information in a List
What iam trying to do is when i right click on any shape, i want to display a property window which show the deatils of that shapeon the propert window like
Height: 50
width: 80
Position X: 80 Y: 100
....
...etc
for this iam creating labels and Textboxes dynamically added to wrapPanel
Label lblposition=new Label ();
lblposition.Height=25;lblposition.Width=225;lblposition.Content="Position";
Label lblPosX=new Label ();
lblPosX.Height=25;lblPosX.Width=25;lblPosX.Content="X";
TextBox txtposX=new TextBox();txtposX.Height=25;txtposX.Width=75;txtposX.Text=list1[getindex].Position.X.ToString();
Button btnsaveData=new Button ();
btnsaveData.Height=25;btnsaveData.Width=200;btnsaveData.Content="Save";
btnsaveData.Click+=new RoutedEventHandler(btnsaveData_Click);
// some controls are also created in foreach loop (eg: for path each click point is stored in list and controls are cretaed to display each point location from list.
property window also contains one button to save the displayed information in a XML file.
iam able to create a window with controls and display the details in the textboxes reading from the list
Problem is
private void btnsaveData_Click(object sender, RoutedEventArgs e)
{
}
iam unable to read the textboxes values of the property window in the button eventhandler
plZ can some one guide me in the right way to achieve this.
Thanks in advance.