I am creating a user control. I will be using this user control in a few different apps. Once it's done I'll include its assembly in my project, reference it, and use it in my XAML somewhere. Pretty standard.
The question is... How do I apply a different set of styles to it based on the app I'm in?
The simplest way to achieve this is to have application level themes. In other words, in App A - you would set the styles for your control to be the ones you want in App A; in App B you set the styles for the control based on the ones you want in App B, and so on. Make sure you have a default theme for your control in place as well.
1.You can create a seperate styles for appA, Appb... and apply the theme accordingly as a staticresource.
2.Suppose in same application you want different theme based on some action then just use the above mentioned idea and apply themes using Dynamicresource.
I am new in coding WPF MVVM apps.
My question is how to change le language using a combobox at Runtime.
I tried the static resources and it worked well , but trying to change it Runtime using Threading.thread class didn't work.
Is there any possibility to solve that problem.
This is now the FOURTH time you have asked the same question.
DO NOT repost the same question. It won't get your question answered any quicker; if anything, it will just annoy the people who would otherwise be trying to help you, and result in all of your questions being ignored.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
I need to change culture mainly between two languages ; italian and English using the Combobox in WPF MVVM.
I tried to databind the ViewModel with my Mainview but I didn't succeed.
I will be so thankful if someone could help.
I am implementing scrollable text in a custom control. Each line of text has its own Visual. In the simple case of horizontal scrolling, I replace the Transform of each Visual to produce the desired effect. The scroll bar moves, but the text does not. Am I missing a step that causes the new Transform objects to be reflected (presumably as parameter changes) in the Composition Tree?
Maybe I haven't looked through enough search results, but I cannot find a reference on how to add the set of sizes of the icon to a WPF desktop application. All I have found is how to add the one icon for the application main window frame.
Can someone offer references or instructions?
All my previous WPF work has been kiosk-style (dedicated instrument control) applications that didn't need icons!
I have Multiple Lists that are bound to multiple TreeViewItems within the Tree as in the code below. This is working perfectly to display the bound items; however, I couldn't figure out how to get the selected item value. For example, if the user clicks the color Blue, I would like to be able to get that value, in this case "Blue," in order to be able to bind to a property in the ViewModel