Button with Semi-Transparent image : Button « Windows Presentation Foundation « VB.Net

Home
VB.Net
1.2D
2.Application
3.Class
4.Data Structure
5.Data Types
6.Database ADO.net
7.Development
8.Event
9.File Directory
10.Generics
11.GUI
12.Language Basics
13.LINQ
14.Network Remote
15.Security
16.Thread
17.Windows Presentation Foundation
18.Windows System
19.XML
20.XML LINQ
VB.Net Tutorial
VB.Net by API
VB.Net » Windows Presentation Foundation » ButtonScreenshots 
Button with Semi-Transparent image
Button with Semi-Transparent image
        
<Window x:Class="ClassicControls.Transparency"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
  Background="White" Title="Transparency" Height="385" Width="450">
  <StackPanel Margin="5">
    <Button Margin="10" Padding="25" BorderBrush="White" >
      <Button.Background>
        <ImageBrush ImageSource="c:\image.jpg" Opacity="0.6" TileMode="Tile" Viewport="0,0,0.1,0.4"/>
      </Button.Background>
    
      </Button>
  </StackPanel>
</Window>

   
    
    
    
    
    
    
    
  
Related examples in the same category
1.Rotated ButtonsRotated Buttons
2.Pendulum ButtonPendulum Button
3.Button.Background and DrawingBrushButton.Background and DrawingBrush
4.Set Width for ButtonSet Width for Button
5.Button HorizontalAlignmentButton HorizontalAlignment
6.Button PaddingButton Padding
7.Button MarginButton Margin
8.Button Padding and HorizontalAlignmentButton Padding and HorizontalAlignment
9.Button HorizontalAlignment: StretchButton HorizontalAlignment: Stretch
10.Set BlurBitmapEffect for ButtonSet BlurBitmapEffect for Button
11.Set Padding for ButtonSet Padding for Button
12.Set Margin for ButtonSet Margin for Button
13.Set Button Content with element valueSet Button Content with element value
14.Set Button Width,Height and Content String by using AttributesSet Button Width,Height and Content String by using Attributes
15.Use Button.Content to set the content for a ButtonUse Button.Content to set the content for a Button
16.Adding image to a ButtonAdding image to a Button
17.Button with no position and sizeButton with no position and size
18.Button with Property AttributesButton with Property Attributes
19.Button with Property ElementsButton with Property Elements
20.Button with default Xml namespaceButton with default Xml namespace
21.Button with named NamespaceButton with named Namespace
22.Button Based On StyleButton Based On Style
23.Property Trigger for ButtonProperty Trigger for Button
24.Setting FontSize for ButtonSetting FontSize for Button
25.Layout Tranform
26.Using alternate elements as the content of a ButtonUsing alternate elements as the content of a Button
27.Button's Background = ImageBrush. The resulting button has an image as its backgroundButton's Background = ImageBrush. The resulting button has an image as its background
28.A rotated ButtonA rotated Button
29.Using Button.Content to set content for ButtonUsing Button.Content to set content for Button
30.Scale TransformScale Transform
31.Scale Transformate a ButtonScale Transformate a Button
32.Fisheye Effect for ButtonFisheye Effect for Button
33.A button that has been skewed and rotatedA button that has been skewed and rotated
34.Button PreviewMouseDown action and MouseDown actionButton PreviewMouseDown action and MouseDown action
35.Button click actionButton click action
36.Add CommandTarget for ButtonAdd CommandTarget for Button
37.Adding graphics to a ButtonAdding graphics to a Button
38.Button with image and text, use grid to layout Button contentButton with image and text, use grid to layout Button content
39.Canvas with Button onCanvas with Button on
40.Resizing ButtonsResizing Buttons
41.To add a button control and a text block to the canvasTo add a button control and a text block to the canvas
42.Resizing ButtonsResizing Buttons
43.To add a button control and a text block to the canvasTo add a button control and a text block to the canvas
44.A simple template for a round buttonA simple template for a round button
45.Load style defined in Xaml and apply to the ButtonLoad style defined in Xaml and apply to the Button
46.Nested Button contentNested Button content
47.Two repeat buttons that increase and decrease a numerical value.Two repeat buttons that increase and decrease a numerical value.
48.Generate Click Events Repeatedly While a Button Is ClickedGenerate Click Events Repeatedly While a Button Is Clicked
49.Button Click event handlerButton Click event handler
50.Button mouse down eventButton mouse down event
51.Button mouse down previewButton mouse down preview
52.Set button properties with Linq styleSet button properties with Linq style
53.Simple Custom ButtonSimple Custom Button
54.Custom Shaped ButtonCustom Shaped Button
55.Raise exception from button click eventRaise exception from button click event
56.Button VerticalAlignment=Top HorizontalAlignment=LeftButton VerticalAlignment=Top  HorizontalAlignment=Left
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.