Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

wpf mouse over style trigger

<Grid>
  <Grid.ColumnDefinitions>
    <ColumnDefinition Width="25" />
    <ColumnDefinition />
  </Grid.ColumnDefinitions>
  
  <Button Grid.Column="1">A Button</Button>

  <Grid.Style>
    <Style TargetType="{x:Type Grid}">
      <Style.Triggers>
        <Trigger Property="IsMouseOver" Value="False">
          <Setter Property="Opacity" Value="0.5"></Setter>
        </Trigger>
        <Trigger Property="IsMouseOver" Value="True">
          <Setter Property="Opacity" Value="1"></Setter>
        </Trigger>
      </Style.Triggers>
    </Style>
  </Grid.Style>
</Grid>
Comment

PREVIOUS NEXT
Code Example
Csharp :: remove adjacent duplicate characters 
Csharp :: c# sort array of objects 
Csharp :: color unity 
Csharp :: unity random point in sphere 
Csharp :: unity gameobject.find 
Csharp :: c# int to string 
Csharp :: c# console clear 
Csharp :: regex c# 
Csharp :: c# OrderBy desc 
Csharp :: c# razor add disabled to button if 
Csharp :: array sorting c# 
Csharp :: c# get application root path directory 
Csharp :: string to datetime c# 
Csharp :: xmldocument to c# object 
Csharp :: Unity Interstitial ad C# 
Csharp :: single line and multiline comments in c 
Csharp :: length of a string c# 
Csharp :: c# dictionary keys to list 
Csharp :: asp.net model 
Csharp :: c# .net core memory cache 
Csharp :: c# bubble sort 
Csharp :: transform.position.x unity 
Csharp :: unity send post request json 
Csharp :: c# remove all whitespaces from string 
Csharp :: text read C# 
Csharp :: power of number 
Csharp :: how to locate a specific element in a list c# 
Csharp :: c# operator overloading 
Csharp :: how to get the size an array in unity 
Csharp :: how to turn a string in a char list c# 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =