Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
need to change path control data at runtime
Posted
Comments
[no name] 2-Jul-14 6:54am    
You are going to have to be a lot more clear than just this if you expect someone to help you. If you need to "change path control data at runtime", then go ahead and do it. If you do not know how, then go read the documentation for whatever it is that you think a "path control" is.
Nitin Go 2-Jul-14 12:01pm    
i don't know how to change shape at run time that is a reason i asking this question.i know every thing is documented but we are using this paltform to fix issue quickly.
[no name] 2-Jul-14 14:06pm    
You did not ask a question at all. That is the point.
Sergey Alexandrovich Kryukov 2-Jul-14 11:07am    
If you mean System.Windows.Shapes.Path, this is not a control class. If you mean something else, you should have explained it. The rest of the question sounds almost like "how to do software engineering?". The most of the whole programming field consists of changing some objects during run time, so how it can be a problem to ask?.. :-)
—SA
Nitin Go 2-Jul-14 11:59am    
as per my understanding path has a data property that is used to display path shape.I want to change path shape at runtime.I know mos of the programming fileds consists of chnaging some objects during run time.But can you change control or shape size,design at run time.

Firstly understand the question after that pass your comments.If you don't know the answer see next question.

1 solution

You can freely change shape size, as well as any other of its properties at run time. It also goes for attached properties which collaborates with other UI elements, such as location, Grid.Row, Grid.Column (just for example).

Also, please understand that there is nothing which would be changed "not in real time". No matter you do in XAML, it is reproduced during run time. XAML is used to auto-generate some code (you can find the auto-generated files under the sub-directory of the project directory, "obj"); and this code is executed during run time, always.

By the way, it gives you some technique of learning how to modify some UI elements during run time. Here is the idea: first, for the research purpose, create some project and define the desired behavior or UI setup in XAML. Compile the project. Then locate auto-generated code files in the sub-directory "obj" of the project directory and see what they do. It will give you the exact idea how to change one or another feature of the UI in your own code. This approach is very simple and nearly always works.

—SA
 
Share this answer
 
v2

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