Tag Info

Hot answers tagged

4

Create a NuGet package for it. You should be able to deploy the markup and code behind to the appropriate locations as well as handle any web.config changes, and manage updating all of this as a unit, with a NuGet package.


3

You never want to expose average users to the internal guts of how your application works--especially if you are supporting it. The BeOS used to ship with a utility that would allow you to turn off a processor (this is before multicore processors) just to see the impact on performance. And yes, you could turn off all the processors. That's when the ...


3

I don't think that giving the user control over these options is a good idea. Of course this depends on the software and target user demographic, but I can't imagine a common application where the average user is interested in tweaking that sort of stuff. They just want the application to work. Incrementally adjusting performance options through trial and ...


3

Add the location of the log file as a value in a configuration file. That way the user can configure this value before they run your application and your application can simply read it from the configuration file. Include a default value in your configuration file in case the user does not modify the value.


3

A View can be a UserControl or a DataTemplate. A UserControl could be a View, however it is always a custom Control. There really is no relationship between the two. So I would put the UserControls that are Views in your Views folder, while UserControls that are customized controls in your UserControl folders. And personally, I wouldn't sort an MVVM ...


2

User Controls are not supposed to be used to centralize functionality that different projects have in common. Proper way to create general components would be to create custom server controls. Server controls can be compiled to dll and referenced in projects that use them.


1

There are two approaches I can see: One may use user controls just like one uses objects to make primitive data types and basic types within the language or framework more explicit or to enclose logic within them. For example, in OOP, when you deal with percentage, one way is to use an int; a usually preferred way is to create Percentage class which will ...


1

In general, you shouldn't. The user control should bind to a concrete type. A better approach would be to have the base address bits be their own class, and then compose 3 classes for the optional bits, each containing a base address class as a member. The user control can then defer the rendering of the address bits to some sub-control. Or better yet, ...


1

This is why creational patterns exist, often times creation of types can be tricky as you have run into. I think you want an abstract factory here (caveat: not true if user control A/B/C have basically identical attributes, if they're identical you just need a single method that will create a control with the desired configuration which can be treated as ...


1

If you have built a WebUserControl into a .dll, and you build that .dll to a commonly located deployment package folder, then it should be referenced (from all projects) from that folder. This way when each subsequent project that references this file (regardless of the location of the project on the local file system) will automatically get the latest copy ...


1

Who is the log for? If it's for you as a developer, don't let the user set it (ie: don't force them to think about something they don't care about). If it is for the user to consult later, then put it in a default location and let the user change it later. Whatever you do, do not, for the love of all that is holy, start your program with a dialog box ...


1

I'd certainly go for the second. The first strategy mixes content and presentation - you're locked into providing a GWT front-end for your RPC. The second strategy allows any kind of front-end technology. Having the RPC return a list of 'capabilities' for the current user is easy to mock during development: just have a hard-coded capabilities object and ...



Only top voted, non community-wiki answers of a minimum length are eligible