Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have an ironpython script which opens an xaml file containing 2 tabs . Inside of the first tab there is a listbox and there

I have an ironpython script which opens an xaml file containing 2 tabs. Inside of the first tab there is a listbox and there is a button called "Modify" underneath. How can I make it so that I can open another xaml file which contains some information about the class I selected in the listbox (Let's assume it has the class properties: Views, Options, Materials, Objects, Name). To give some more context, I will provide some code I made in IronPython to load the xaml file. class ViewModel(my_WPF):
context_mode = 'show'
view_mode = 'singular'
context_transp =0
context_color = Color(255,255,255)
warning_color = Color(255,0,0)
count_views_total =1
count_view_current =1
def __init__(self):
path_xaml_file = xaml_path
wpf.LoadComponent(self, path_xaml_file)and later on for the main I have this: if __name__=='__main__':
x = ViewModel()
x.show_window() the wpf mentioned here just comes from ironpython doing import wpf. Is this possible with XAML and IronPython? If you can give it in either ironpython or C# its fine because I can easily convert these two languages.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL For Data Science Data Cleaning Wrangling And Analytics With Relational Databases

Authors: Antonio Badia

1st Edition

3030575918, 978-3030575915

More Books

Students also viewed these Databases questions

Question

If you were buying a multiplexer, would you choose TDM or FDM?Why?

Answered: 1 week ago

Question

4. Identify cultural variations in communication style.

Answered: 1 week ago