is it possible to remove the Thumb Border 3D style.
i tried using myThumb.BorderThickness = new Thickness(0);. but it still have that 3D effect
View Complete Post
I added a table to a page, by default, the table layout is the light border. So, I add my content and the vertical align seems to set to the top. But when I changed it to clear border, the content of the table will set vertical align to center. Is there
a way to change this back to top align but with the clear border. I don't think I can do this by what is available in the ribbon. Please advice.
I m using div to display data. Now the width of my div is 800px and also i m displaying bottom border of div to mark the separations between two consecutive divs.
the length of my div's bottom border is same to div's width(800px). But i want that border should be displayed in center of page and it's width should be 400px.
Is it poss?
How can i achieve this?
thanx and regards
I have a defaut window with WindowStyle="None" and in Windows 7 I get a pretty big border - this not happens in XP. How can I get the width of this border?
In the below XAML code, the border for StackPanel "sp2" overlaps with the border for StackPanel "sp1". The overlapped region has border thicker than the non-overlapped region. SnapsToDevicePixels does not help. When SnapsToDevicePixels="false", the border
bulges outwards. Otherwise, it bulges inwards.
How can I avoid the border bulging or thickening at the overlapped region? I cannot avoid the overlapping border.
<!-- XAML Code -->
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300">
<Border Margin="30,50,30,3" SnapsToDevicePixels="False" BorderThickness="2,2,2,0" BorderBrush="Black">
In snoop I have noticed that the Listbox has a Border child node with a padding="1,1,1,1" (valuesource is parentTemplate).
How can I change this padding to 0?
Here is the wpf code:
i know this must be simple but not sure of how to get this done.
i need a border that is transparent around a level of submenu for a asp menu control(not around each of the sub menu item) similar to this.
and also the inside menu should have two layers of submenu if it is too long..
How can i do this.. Its really urgent..
I am running into an issue with dynamically setting the border color for ImageButtons sitting in 15x15 tablecells.
Here is the relevent code (I removed the code that is not)
protected void ImageButton1_Click(object sender, CommandEventArgs e)
ImageButton bt = new ImageButton();
// Reset the border for the last image button back to default
ContentPlaceHolder MainContent = Page.Master.FindControl("MainContentArea") as ContentPlaceHolder;
bt = MainContent.FindControl(Session["SelectedButton"].ToString()) as ImageButton;
//bt.BorderColor = Color.FromName("#EFEAD7");
button.BorderColor = Color.Beige;
// Now set the border for the selected button to black
bt = sender as ImageButton;
bt.BorderColor = Color.Black;
// Save the tile ID for later calls
Session["SelectedButton"] = bt.ID;
<Part of initial page load code>
button.BorderWidth = 1;
if (<condition is true>)
button.BorderColor = Color.Black;
Session["SelectedButton"] = button.ID;
//button.BorderColor = Color.FromName("#EFEAD7");
button.BorderColor = Color.Beige;
Notice how I have some of the border color assign
How can I place a 3D border arround my control
We were using the following code to draw a textbox like border:
VisualStyleElement vse = VisualStyleElement.TextBox.TextEdit.Normal;
VisualStyleRenderer vsr = new VisualStyleRenderer(vse);
This worked for XP. In windows 7 the TextBox border has some fade effects. The code no longer works, so...
Anyone knows if there is there a standard way of drawing a "text box like" border in a custom control?
On every web page I build, the first asp:button always has a blue border at runtime, even if I set another button as the default button. How do I make the default button have the blue border without making it the first button on the page, or get rid of the blue border on the first button?