Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, how are you?

Situation: A website with a div and css based layout. No tables (good).
Task: Write xaml code that makes the same website, meaning looks the same.
Approach: It seems that the HTML code can be translated straight forward into xaml. There are only tags used that have an (almost) equivalent in XAML.

But,

how would you "translate" the div tag into xaml?
Do you think writing a customControl in C# that does the job will be a huge problem?
------------------------------------
HTML:
...
div class="example" ... /div
...

CSS:
.example{float:left;}
------------------------------------

Greetings
Posted
Updated 21-Jan-10 1:27am
v3

1 solution

The Grid control in WPF acts much like the Div tag in HTML. All depends on what specific behavior you want.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900