XBAP childWindow control available similar to Silverlight 3 ChildWindow? - wcf

The Silverlight 3 toolkit has a ChildWindow control for model popup like functionality. This is great. Anyone aware of a similar control that can be utilized via XBAP?
http://silverlight.codeplex.com/wikipage?title=Silverlight%20Toolkit%20Overview%20Part%204&referringTitle=Silverlight%20Toolkit%20Overview%20Part%203
The assumption is maybe someone ported the functionality back to WCF/XBAP?
Trying to find a solution without going to 3rd party purchased controls (against current company policy).

Don't know that you'll get this to work without FullTrust (FullTrust XBAPs are a PITA until .NET 4). Here's a psuedo-workaround though- not as nice as SL ChildWindow, but it gets you basic popup functionality.

In theory couldn't you rebuild the ChildWindow source and massage it a little to work on WPF? Most of the controls are WPF compatible, so it would make sense to build ChildWindow for XBAPs.

Related

Changing application layout via buttons in VB .NET

Currently I would like to program an application gathering forms that are callable with buttons on the side. For this, I am using the latest build of Visual Studio Community. One way I thought of would be to literally put all the form elements (textboxes, lists, etc.) in the application window and only enable them whenever the according button is clicked on. However, if this is the way to do it, I find it quite messy and unpractical, and I'm pretty sure there's another way around.
After some research, I have learned about the MDI layouts, but they don't suit my taste. I would like to keep everything in one single frame.
Could you give me a hand?

Alternative to Scrollviewer in Telerik Silverlight

Our company is currently using both the Telerik Silverlight tools and the Silverlight Toolkit to accomplish what we need in our program. Since Silverlight is dying out and the Silverlight Toolkit has not been updated since 2011, we are removing all dependencies on the Silverlight Toolkit and trying to replace those controls with a Telerik Alternative so that we are not using both toolkits. This way our customers only needs to download a 5mb file rather than a 10mb fileI've gone through and removed just about every dependency except two, one of which is the ScrollViewer. We use the Scrollviewer several times to create a scrollable area within another grid etc. I've looked around and found that Telerik doesn't have a direct alternative to the ScrollViewer but they do have some scrolling functionality within their RadGridView. That won't exactly work for us, and either way it will be slow because is we put a RadGridView where the ScrollViewer is, we would be placing it in controls that have auto sizing or measure with infinity. According to Telerik's site: Try not to place RadGridView in controls/panels which will measure it with infinity. Either way that seems like it would be very cluttered in our case.I was wondering if there was some ScrollViewer alternative in Telerik that I'd be able to use. If worst comes to worst, does making our own custom ScrollViewer seem reasonable?Any help is appreciated. Thanks!
EDIT: More specifically, the ScrollIntoView() function in the ScrollViewerExtensions from the Silverlight 5 Toolkit needs replacing. If there is no other control that has the built in functionality to scroll to an object within the control, then I can probably just create the method myself.
I'm not sure if Telerik has similar ScrollViewer extensions, but one solution would be to copy-paste the relevant code from the Silverlight Toolkit source -- the ScrollViewerExtensions class.

Dynamic web content with VB6 (java servlet inspired)

I'm working on a project that needs more 'flare' than what can normally be done with VB6. My thought is to generate HTML/CSS content and display this within a browser control on a form. I would also like the ability to respond to form events from the web content within the VB application. My inspiration comes from recent experience with java servlets and jps. Has anyone done something similar?
I'm interested in what controls could be used to display the content and any suggestions on ways to interact with the page elements. Generating the html and css should not be a problem.
Thanks
Use the Microsoft Web Browser Control to embed Internet Explorer into your application. Then you may be able to implement two-way communication with the BeforeNavigate2 event: I believe you can do it in .Net.
An alternative way to get "flair" is to create a fancy form in .NET, perhaps using WPF, and then display it from a VB6 application using the Interop Forms 2 Toolkit.

setting form to look like this image?

is it advisable to play with the controls to make my form look like this or should i just use this graphic and place it in the background. if the former, then please suggest which controls on the form i can tweak to make the form look like this?
alt text http://img10.imageshack.us/img10/2351/huesaturation.jpg
To create something like this, I would suggest moving from winforms to Windows Presentation Foundation (WPF) if you have the option. There is much better support for creating these type of rich interfaces in WPF, although it does mean introducing a .NET 3.0+ requirement to your application.
To get you started, here are some tutorials:
http://dotnetslackers.com/articles/silverlight/WPFTutorial.aspx
http://msdn.microsoft.com/en-us/library/ms752299.aspx

Code for extending the NETCF MainMenu to support background color property

I've searched for the solution to change the background color on the Compact Framework's MainMenu control, and the only answer I've found is that you need to create a custom control. Does anyone have example code for this?
I did something vaguely similar where I wanted to handle the WM_EXITMENULOOP message which was not available as an event in .NETCF.
The solution was to "subclass" the Main Menu, an old MFC trick where you replace the WndProc function with your own, handle any windows messages (WM_EXITMENULOOP in my case) and call the base class WndProc for everything else.
Some sample code is available on Alex Yakhnin's blog on how to subclass a control:
Example of subclassing a window in .NETCF
In your case you'd actually be subclassing the Form that the MainMenu resides on, and I think WM_DRAWITEM would be the windows message you'd want to handle yourself.
I haven't tried changing the background color myself so not totally sure this will work, but subclassing would be where I'd start.
There is no way of doing this.
Your right in that you'll probably need to create your own control.
This was something I was considering doing anyway to make the application go on Windows CE and Windows Mobile.
The problem with adding menus when the application needs to work with both is that the menu goes to the top of the screen on Windows CE and covers any controls that might be there.
It would be less hassle in the long run just make a new control.
I tried to do something similar a while back and discovered that you have to write your own menu; essentially from scratch. I gave up because the project I was working on couldn't afford the expense. I also discovered that OpenNETCF has a pretty awesome menu control. I don't know if it's included in their free software, but it might be worth looking into.