1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid>
<StackPanel>
<Grid Name="selector">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Border Height="25" Margin="0,0,0,2" x:Name="truc" BorderThickness="2" BorderBrush="#e1e1e1" Grid.ColumnSpan="2"></Border>
<ToggleButton
MinWidth="21"
Width="21"
Name="ToggleButton"
Grid.Column="1"
HorizontalAlignment="Right"
Margin="0,0,4,0"
Cursor="Hand"
Focusable="false"
ClickMode="Press">
</ToggleButton>
</Grid>
<Popup Name="Popup" Placement="Bottom" StaysOpen="False"
AllowsTransparency="True"
PopupAnimation="Slide"
PlacementTarget="{Binding ElementName=selector}"
IsOpen="{Binding ElementName=ToggleButton, Path=IsChecked, Mode=TwoWay}"
Focusable="True"
Width="250"
>
<Border x:Name="PopupBorder"
Background="#FFF"
BorderThickness="2"
BorderBrush="#5577bb">
<Grid Name="containerGrid" MinHeight="185" Margin="3"
Background="Aliceblue"
>
</Grid>
</Border>
</Popup>
</StackPanel>
</Grid>
</Page> |
Partager