say your silverlight area on a webpage is 200px by 200px.
you open a child window, is there a way to make it moveable outside the 200x200 silverlight area?
or say you drop down a combo box, let the drop down go out side of the 200x200 aea?
Thank you
Sorry there isn't any practical way to do this.
(There are is a fairly ridiculous/heroic option suggested in the duplicate thread mentioned in the comment above...)
Related
Is it possible to achieve the following visual effect in .NET MAUI/XAML:
The main concern is the outline (or lack thereof on the bottom) of the selected tab and the underline of the unselected tabs.
The goal is to be able to define an arbitrary number of Tabs for the application.
Is this possible with XAML alone?
Any help would be greatly appreciated
If I had to create custom controls I would go with the GraphicsView.
Create a custom control Tab with a canvas that draw it in function of it state, you can use StackLayout to stack them and TapGestureRecognizer to manage clicks events.
One of the main problem of a GraphicsView is that you can't attach click event to shapes you are drawing (one solution there) so you can't be really precise on the events if you don't want to manage bounding box yourself.
Or you can just use ImageButton for the tabs with a label in front for the text, it would be way easier but less flexible (tabs should all be the same sizes).
Imagine a panel with 4 PictureBox aligned in one line and then you decrease the size of the window and hence the panel size (it's anchored). Then, when there is no space for 4 PictureBox in one line, the last one goes down to the second line, becoming three PB in the superior line and the forth PB in the second.
If you continue decreasing the window size, the boxes will go down until remain a unique column of PictureBox.
The only idea that came mind was use "if" conditions... Is there an easier way to do that? I thought it could be made by some property of the panel or PB, but I'm wrong I suppose...
Summarizing: How to make the elements inside a panel be adjusted to fit in the panel when you change your size?!
Here it goes a image to illustrate the situation:
#Idle_Mind, Yes, Windows Forms Application. I've forgotten the FlowLayoutPanel, but I don't like it very much, if someone knows some way more easy, feel free to comment. For now, I will use the FLP. Thank you n_n
Just passing to mark the question as answered (on a comment in my question). I didn't use to know controls as FlowLayoutPanel or WrapPanel, etc. Thanks Idle_Mind.
Im actually trying to make a control, which acts like the chromes most visited page(Screenshot e.g. here: http://www.favbrowser.com/wp-content/uploads/2011/10/googlechrome15.jpg), which automatically center, resize and move the controls(in my program)/pages(in chrome) if the window was resized.
I know that I could take a FlowLayoutPanel or a TabelLayoutPanel to implement this, but this would take much time espacially for the resize and moving part.So my question is: Is there already an open source/free Control which features sth like that?
Any help will be greatly appreciated.
I used many expander in the WPF application.. but I face some troubles:
When I try to put them below each others, the upper one expands automatically and makes it difficult to put the net one below it.. So I should separate the upper one in any place until I put the lower one then move back the upper one again. Can I keep expander unexpanded to make it easy to put any controls below it?
When I press ctrl+f5 and expand one of them, I see it has a transparent background and makes interruption with the lower ones - how can I avoid that?
I used scroll bar inside expander, but it doesn't work when i press ctrl+f5. I have an inactive scroll bar. How can I make link between scroll bar and expander to be able to move items inside expander up and down?
This is a picture to explain what I mean.
have a look at ths tutorial, it covers stuff like this, The Expander can be a tricky control to deal with sometimes, but once you understand the the expanders layout it becomes a bit easier.
http://blogs.msdn.com/b/wpfsldesigner/archive/2010/02/03/taming-the-wpf-expander-control.aspx
I would like to create an outer glow effect on a UserControl derived class in c# 2.0 (WinForms). Is this (easily) possible?
If yes, please show me how :)
What I mean with "glow effect" is something like this:
Hope this helps http://www.codeproject.com/KB/buttons/VistaButton.aspx
I also rem reading an article where the author draws 2 rectangles over the button (each is covering half from top and bottom) and then when mouse is hover, he does some overlapping logic. I forgot the full logic. Sorry, ill think/search and come back with the answer.
Here are a few tutorials on how to easily achieve halo- and special effects on graphical objects in winforms:
Text Halo Effect
Text Effects
Drawing text with a drop shadow effect