2
Answers

Create a base window in WPF

Abolfazl

Abolfazl

9y
702
1
hi
i'm looking for a way to create a base window in my WPF project and
every other window Inheritance this base window,for example create a 
window with specific border,background and..., and other windows inheritance
these style.i just understood i should create a base class from this link :
 can you help me how to create base window?
thanks 
Answers (2)
0
Kirtan Patel

Kirtan Patel

NA 35k 2.8m 15y
please check "do you like this answer" on my post which helped you :)
0
Kathy

Kathy

NA 9 3.2k 15y
It worked, thank you so much
0
Kathy

Kathy

NA 9 3.2k 15y
Thanks I will try that. If it doesn't work I will let you know
0
Kirtan Patel

Kirtan Patel

NA 35k 2.8m 15y
Just Bind the Text Boxes and Fields in Different Tabs to Database Fields which you retrived in DataSet.

it will work because all the fields are on same form no matter its on Different tabs :)

 //Define in Global Scope

DataSet ds = new DataSet();


//Now Bind The TextBoxes etc to DataSet Table Which is Filled From Database

 textBox1.DataBindings.Add("Text",ds.Tables[0],"CustometName");

 textBox2.DataBindings.Add("Text"ds.Tbales[0],"CarId");


and Move Records By CurrencyManager :)

thats it :)

if my answer helped you please mark "do you like this answer" :)
0
Kathy

Kathy

NA 9 3.2k 15y
I'm using Visual Studio 2010, there wasn't a topic choice for that.
Here's an example: the titles at the top are the tab names. Let's say I'm looking at Brandon. I'd like no matter which tab I go on it's still his info.


# Customer Car Details Payment Contact details
1 Tara [many fields] [many fields] [many fields]
2 John [many fields] [many fields] [many fields]
3 Brandon [many fields] [many fields] [many fields]
4 Valerie [many fields] [many fields] [many fields]
5 Jenny [many fields] [many fields] [many fields]
0
Kirtan Patel

Kirtan Patel

NA 35k 2.8m 15y
Wizard control is Available in Asp.net on Which Environment you are workiong on Windows Form or Asp.net ??
0
Roei Bar

Roei Bar

NA 7.8k 0 15y
what do you mean on the same record?
0
Kathy

Kathy

NA 9 3.2k 15y
There's a wizard control?
0
Kirtan Patel

Kirtan Patel

NA 35k 2.8m 15y
Friend,

Why dont you use Wizard Control it will be nice to collect data by different sections :)