locked
image in button (Bearuh) - 7/22/2007 11:22 AM PST RRS feed

  • Question

  • By: Bearuh

    Hi I would like to put this light bulb image into the button "Lights" so that 
    it still says lights and has the lightbulb right next to it. When I try, it 
    deletes the text. Could someone please help? Here is my XAML:
    
    <Page
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2006" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d"
        x:Class="CVMainPrototype.HomePage"
        Title="HomePage" Height="Auto" Width="Auto" >
    
    	<Page.Resources>
    		<Storyboard x:Key="OnMouseEnter1"/>
    	</Page.Resources>
    
      <Grid Background="{DynamicResource mainBackgroundBlue}">
        <Grid.RowDefinitions>
          <RowDefinition Height="0.0565333333333333*" />
          <RowDefinition Height="0.943466666666667*" />
        </Grid.RowDefinitions>
    
        <Grid.ColumnDefinitions>
          <ColumnDefinition Width="0.188*" />
          <ColumnDefinition Width="0.812*" />
          
        </Grid.ColumnDefinitions>
    
      	<Grid d:LayoutOverrides="Width" Margin="0,0,0,-20.6" 
    VerticalAlignment="Bottom" Grid.RowSpan="2">
      		<Button Height="30" x:Name="ButnLife" Width="100" Content="LifeStyle" 
    Background="{DynamicResource glassLightBlue}" BorderBrush="#FF000000" 
    Foreground="#FFFFFFFF" d:LayoutOverrides="VerticalAlignment" 
    HorizontalAlignment="Right" Margin="0,8.376,-48.647,-5.724"/>
      		<Button x:Name="ButnLights" Width="100" Content="Lights" 
    BorderBrush="#FF000000" FontFamily="Segoe UI" Foreground="#FFFFFFFF" 
    Height="30" d:LayoutOverrides="VerticalAlignment" HorizontalAlignment="Left" 
    Margin="0.299,7.852,0,-5.2" Background="{DynamicResource glassLightBlue}"/>
      		<Button Height="30" x:Name="ButnClimate" Content="Climate" 
    Background="{DynamicResource glassLightBlue}" BorderBrush="#FF000000" 
    Foreground="#FFFFFFFF" d:LayoutOverrides="VerticalAlignment, Width" 
    Width="100" HorizontalAlignment="Left" Margin="99.859,8.376,0,-5.724"/>
      		<Button Height="30" x:Name="ButnMedia" Content="Media" 
    Background="{DynamicResource glassLightBlue}" BorderBrush="#FF000000" 
    Foreground="#FFFFFFFF" d:LayoutOverrides="VerticalAlignment, Width" 
    Width="100" Margin="199.957,8.376,151.481,-5.724"/>
      		<Button Height="30" x:Name="ButnSecurity" Width="100" Content="Security" 
    Background="{DynamicResource glassLightBlue}" BorderBrush="#FF000000" 
    Foreground="#FFFFFFFF" d:LayoutOverrides="VerticalAlignment" 
    HorizontalAlignment="Right" Margin="0,8.376,51.48,-5.724"/>
      		<ComboBox Background="{DynamicResource glassLightBlue}" 
    IsSynchronizedWithCurrentItem="True" Style="{DynamicResource 
    dropDownDirection}" Height="10" d:LayoutOverrides="Width, Height" 
    HorizontalAlignment="Left" Margin="1,-1,0,0" VerticalAlignment="Top" 
    Width="100">
      			<ComboBoxItem VerticalAlignment="Stretch" Content="Light 1" 
    Background="{x:Null}" FontFamily="Segoe UI" x:Name="Light1"/>
      			<ComboBoxItem Content="Light 2" x:Name="Light2" Background="{x:Null}" 
    FontFamily="Segoe UI"/>
      			<ComboBoxItem x:Name="Light3" Content="Light 3"/>
      			<ComboBoxItem x:Name="Light4" Content="Light 4"/>
      		</ComboBox>
      		<ComboBox Width="100" Background="{DynamicResource glassLightBlue}" 
    IsSynchronizedWithCurrentItem="True" Style="{DynamicResource 
    dropDownDirection}" Height="10" d:LayoutOverrides="Height" 
    HorizontalAlignment="Left" Margin="101.061,-1,0,0" VerticalAlignment="Top"/>
      		<ComboBox Background="{DynamicResource glassLightBlue}" 
    IsSynchronizedWithCurrentItem="True" Style="{DynamicResource 
    dropDownDirection}" Width="100" Height="10" d:LayoutOverrides="Height" 
    Margin="200.765,-1,150.673,0" VerticalAlignment="Top"/>
      		<ComboBox Background="{DynamicResource glassLightBlue}" 
    IsSynchronizedWithCurrentItem="True" Width="100" Style="{DynamicResource 
    dropDownDirection}" Height="10" d:LayoutOverrides="Height" 
    HorizontalAlignment="Right" Margin="0,-1,51.583,0" VerticalAlignment="Top"/>
      		<ComboBox Background="{DynamicResource glassLightBlue}" 
    IsSynchronizedWithCurrentItem="True" Width="100" Style="{DynamicResource 
    dropDownDirection}" Height="10" d:LayoutOverrides="Height" 
    HorizontalAlignment="Right" Margin="0,-1,-47.6,0" VerticalAlignment="Top"/>
      	</Grid>
      	<Viewbox x:Name="Group" Width="19.295" Height="24.754" 
    HorizontalAlignment="Left" Margin="154.453,0,0,-22.493" 
    VerticalAlignment="Bottom" Grid.RowSpan="2">
      		<Canvas Width="393.219" Height="504.488">
      			<Path x:Name="Path" Width="316.398" Height="430.39" 
    Canvas.Left="42.568" Canvas.Top="19" Stretch="Fill" Data="F1 M 191.02,19C 
    286.381,19 381.293,83.8039 354.304,200.255C 343.348,247.53 294.034,288.99 
    283.687,319C 235.52,458.702 280.852,444.333 202.353,444.333C 120.684,444.333 
    184.018,488.177 113.02,317.667C 101.117,289.08 67.4178,247.838 
    51.1931,205.588C 15.5959,112.893 95.6589,19 191.02,19 Z ">
      				<Path.Fill>
      					<LinearGradientBrush StartPoint="-0.0765324,0.396539" 
    EndPoint="1.01492,0.396539">
      						<GradientStop Color="#64909090" Offset="0.0136986"/>
      						<GradientStop Color="#649C9C9C" Offset="0.96347"/>
      					</LinearGradientBrush>
      				</Path.Fill>
      			</Path>
      			<Path x:Name="Path_0" Width="340.21" Height="462.782" 
    Canvas.Left="29.002" Canvas.Top="0" Stretch="Fill" Data="F1 M 188.627,0C 
    291.165,0 393.219,69.6811 364.2,194.896C 352.419,245.73 299.393,290.309 
    288.268,322.578C 236.476,472.795 285.219,457.344 200.813,457.344C 
    112.997,457.344 181.097,504.488 104.756,321.145C 91.9576,290.407 
    55.7221,246.06 38.2763,200.631C 0,100.96 86.0886,0 188.627,0 Z ">
      				<Path.Fill>
      					<LinearGradientBrush StartPoint="-0.0765325,0.396539" 
    EndPoint="1.01492,0.396539">
      						<GradientStop Color="#647B7B7B" Offset="0"/>
      						<GradientStop Color="#2CA6A6A6" Offset="1"/>
      					</LinearGradientBrush>
      				</Path.Fill>
      			</Path>
      			<Path x:Name="Path_1" Width="290.359" Height="394.971" 
    Canvas.Left="54.8016" Canvas.Top="27.8106" Stretch="Fill" Data="F1 M 
    191.037,27.8106C 278.55,27.8106 365.651,87.2814 340.883,194.149C 
    330.829,237.534 285.573,275.581 276.077,303.122C 231.874,431.327 
    273.476,418.141 201.437,418.141C 126.489,418.141 184.61,458.376 
    119.456,301.898C 108.532,275.664 77.6064,237.816 62.7169,199.044C 
    30.0492,113.977 103.523,27.8106 191.037,27.8106 Z ">
      				<Path.Fill>
      					<LinearGradientBrush StartPoint="0.541675,0.0180041" 
    EndPoint="0.541675,0.544625">
      						<GradientStop Color="#FFFFFFFF" Offset="0.0136986"/>
      						<GradientStop Color="#00FFFFFF" Offset="1"/>
      					</LinearGradientBrush>
      				</Path.Fill>
      			</Path>
      			<Path x:Name="Path_2" Width="290.359" Height="394.971" 
    Canvas.Left="56.0595" Canvas.Top="25.5842" Stretch="Fill" Data="F1 M 
    192.294,25.5842C 279.808,25.5842 366.908,85.055 342.141,191.923C 
    332.086,235.307 286.831,273.355 277.335,300.896C 233.132,429.101 
    274.733,415.914 202.695,415.914C 127.747,415.914 185.868,456.15 
    120.714,299.672C 109.79,273.438 78.8643,235.589 63.9748,196.817C 
    31.3071,111.751 104.781,25.5842 192.294,25.5842 Z ">
      				<Path.Fill>
      					<RadialGradientBrush RadiusX="0.395757" RadiusY="0.537274" 
    Center="0.491018,0.417359" GradientOrigin="0.491018,0.417359">
      						<RadialGradientBrush.RelativeTransform>
      							<TransformGroup>
      								<SkewTransform CenterX="0.491018" CenterY="0.417359" 
    AngleX="1.72855" AngleY="0"/>
      								<RotateTransform CenterX="0.491018" CenterY="0.417359" 
    Angle="-86.2342"/>
      							</TransformGroup>
      						</RadialGradientBrush.RelativeTransform>
      						<GradientStop Color="#FFFCD80D" Offset="0.0136986"/>
      						<GradientStop Color="#00AA920B" Offset="1"/>
      					</RadialGradientBrush>
      				</Path.Fill>
      			</Path>
      			<Path x:Name="Path_3" Width="144" Height="113.333" 
    Canvas.Left="127.687" Canvas.Top="369.667" Stretch="Fill" Data="F1 M 
    127.687,369.667L 271.687,369.667L 271.687,457.667L 229.02,483L 186.353,483L 
    127.687,457.667L 127.687,369.667 Z ">
      				<Path.Fill>
      					<LinearGradientBrush StartPoint="4.44089e-016,0.388235" 
    EndPoint="1,0.388235">
      						<GradientStop Color="#EB373737" Offset="0.0136986"/>
      						<GradientStop Color="#EBFFFFFF" Offset="0.579909"/>
      						<GradientStop Color="#EB040404" Offset="1"/>
      					</LinearGradientBrush>
      				</Path.Fill>
      			</Path>
      			<Path x:Name="Path_4" Width="144" Height="8.91876" 
    Canvas.Left="127.687" Canvas.Top="449.724" Stretch="Fill" Data="F1 M 
    127.687,449.724L 271.687,449.724L 271.687,456.649L 229.02,458.642L 
    186.353,458.642L 127.687,456.649L 127.687,449.724 Z ">
      				<Path.Fill>
      					<LinearGradientBrush StartPoint="4.44089e-016,0.388236" 
    EndPoint="1,0.388236">
      						<GradientStop Color="#EB373737" Offset="0.0136986"/>
      						<GradientStop Color="#EBFFFFFF" Offset="0.579909"/>
      						<GradientStop Color="#EB040404" Offset="1"/>
      					</LinearGradientBrush>
      				</Path.Fill>
      			</Path>
      			<Path x:Name="Path_5" Width="144" Height="14.6667" 
    Canvas.Left="127.687" Canvas.Top="419" Stretch="Fill" Data="F1 M 127.687,419L 
    271.687,419L 271.687,430.388L 229.02,433.667L 186.353,433.667L 
    127.687,430.388L 127.687,419 Z ">
      				<Path.Fill>
      					<LinearGradientBrush StartPoint="4.44089e-016,0.388236" 
    EndPoint="1,0.388236">
      						<GradientStop Color="#EB373737" Offset="0.0136986"/>
      						<GradientStop Color="#EBFFFFFF" Offset="0.579909"/>
      						<GradientStop Color="#EB040404" Offset="1"/>
      					</LinearGradientBrush>
      				</Path.Fill>
      			</Path>
      			<Path x:Name="Path_6" Width="144" Height="14.6667" Canvas.Left="128.02" 
    Canvas.Top="383" Stretch="Fill" Data="F1 M 128.02,383L 272.02,383L 
    272.02,394.388L 229.353,397.667L 186.687,397.667L 128.02,394.388L 128.02,383 
    Z ">
      				<Path.Fill>
      					<LinearGradientBrush StartPoint="4.44089e-016,0.388235" 
    EndPoint="1,0.388235">
      						<GradientStop Color="#EB373737" Offset="0.0136986"/>
      						<GradientStop Color="#EBFFFFFF" Offset="0.579909"/>
      						<GradientStop Color="#EB040404" Offset="1"/>
      					</LinearGradientBrush>
      				</Path.Fill>
      			</Path>
      			<Path x:Name="Path_7" Width="52.0566" Height="87.2767" 
    Canvas.Left="175.748" Canvas.Top="280.753" Stretch="Fill" StrokeThickness="3" 
    StrokeLineJoin="Round" Stroke="#FEACABA5" Data="F1 M 188.568,364.844C 
    187.311,346.303 177.248,282.253 177.248,282.253L 226.304,283.938L 
    207.436,366.53"/>
      		</Canvas>
      	</Viewbox>
      </Grid>
        
    </Page>
    
    
    Wednesday, February 20, 2008 4:43 PM