wpf make relative designing without hardcoding even a sindle width or height [closed] - wpf

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Can anybody help how to make the wpf optimized design meaning if we stretch the window all the controls inside should be relatively expand with the parent controls.

Your question is probably too vague and likely will end up being either closed or you'll be asked to clarify. But the layout piece that you probably want to focus on if you want your controls to grow/shrink with their parents is the Grid. If you use star-based sizing for the columns/rows, things will grow/shrink relative to each other and to the parent. I suggest you read up on that concept along with the other layout concepts.

Related

how is useful to use IsAsync in the binding of a combobox? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 12 months ago.
Improve this question
When I set the items source of a combobox, I have the option to se IsAsync as true.
When is it useful to use this parameter?
Thanks.
IsAsync is most useful for properties whose values take take a long time to retrieve or set via binding. It can make your application remain responsive while the bound value is being retrieved/set. For values that are retrieved immediately, it is not at all useful.
Does your checkbox-bound value take a long time to retrieve/set its values? If not, then IsAsync is a waste.
I will admit I've never used IsAsync with a two-way binding. Usually I save it for read-only properties

How can i group xaml styles into a tree structure for easy selection? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I have several styles in one file. When am to apply a particular style to a control, i have to scroll through several names to get to the one of my choice.
Am currently using vs 2017.
If am to apply a custom style, i select the control, click on style in the properties panel, i then select local resource which in turn displays a long list of my custom styles in the several files of my resources.
How can i group the styles , for example texblock styles , text box styles, such that have to look through the long list?
Unfortunately, you can't get that type of grouping in these lists. They simply list all available resources.

basic search bar using VB.Net [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I actually don't know how to make a search bar. Can someone give me instructions of creating one? And how will it be displayed if i generate the search bar.
I would like to use a textbox and a button for this search bar. It's like, when you input a data on the textbox and click the button, it will go in a new form wherein the result from the inputted keyword will be displayed. The data is coming from the database I have. The database consist of list of students, and the keywords you need to type on the search bar is their student_ID or their names.
Thank you to those who will respond!
I'm not sure if what you want is a database of past websites that get suggested from the textbox..... If so just click on the textbox and turn the auto-completion mode to suggest and auto complete source to allurl.
If you want the button to go to the website that is in the textbox then the code for the button is (name of webbrowser).navigate(name of textbox).text
If this is not what you want just tell me what it is I have some experience with web browsing in vb.net

Is 4 Whitespace indentation better than Tab space indentation? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I am programming in C and wanted to use indentations to make my code readable. I have read somewhere that 4-Space indentations are better than Tab Indentation when I was using Python. Is that true? If so, why?
I just need a clarification about indentations forgive me for being a n00b.
For indentation purpose better to use spaces instead of tabs. Because tabs are treated differently by different editors. When you use tabs, different editors shows different indentation. For making your code visible in every editor in same way use spaces instead of tabs.
It's a preference thing, and as such every one has it's own. But no matter how you do it just do it consistently, do not have a mix of tabs and n-spaces so that no matter which editor you use the code looks homogeneous. Most editors can be configured to use spaces instead of tabs, so when you hit TAB it acutlay inserts the amount of spaces you have configured.

How to get XAML source from current window? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Current window is dynamically generated.
So can't get xaml source by XamlWrite.
You can use XamlWriter.Save() (see http://msdn.microsoft.com/en-us/library/ms754193.aspx for details). Note that this doesn't "return the XAML source", it actually "serializes the current object in XAML form"... so you might not get quite what you expect. On the plus side, XamlWriter.Save() won't care whether the window came from XAML in the first place or was dynamically generated... or even some combination of the two.

Resources