|
146 | 146 | <ToggleButton Style="{StaticResource MaterialDesignSwitchToggleButton}" VerticalAlignment="Center" Margin="0 0 8 8" />
|
147 | 147 | <ToggleButton Style="{StaticResource MaterialDesignSwitchToggleButton}" VerticalAlignment="Center" Margin="0 0 8 8" IsChecked="True" />
|
148 | 148 | </StackPanel>
|
149 |
| - <StackPanel Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3" Orientation="Horizontal" Margin="0 8 0 0" |
150 |
| - HorizontalAlignment="Right"> |
151 |
| - <Button Style="{StaticResource MaterialDesignFlatButton}" Click="ButtonBase_OnClick">ACCEPT</Button> |
152 |
| - <Button Style="{StaticResource MaterialDesignFlatButton}">CANCEL</Button> |
153 |
| - </StackPanel> |
| 149 | + <DockPanel Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3" Margin="0 8 0 0"> |
| 150 | + <StackPanel DockPanel.Dock="Right" Orientation="Horizontal" |
| 151 | + HorizontalAlignment="Right"> |
| 152 | + <Button Style="{StaticResource MaterialDesignFlatButton}" Click="ButtonBase_OnClick">ACCEPT</Button> |
| 153 | + <Button Style="{StaticResource MaterialDesignFlatButton}">CANCEL</Button> |
| 154 | + </StackPanel> |
| 155 | + <StackPanel HorizontalAlignment="Left" Orientation="Horizontal"> |
| 156 | + <ToggleButton Style="{StaticResource MaterialDesignFlatToggleButton}"> |
| 157 | + <Viewbox Width="21" Height="21"> |
| 158 | + <Canvas Width="24" Height="24"> |
| 159 | + <Path Data="M16.5,6V17.5A4,4 0 0,1 12.5,21.5A4,4 0 0,1 8.5,17.5V5A2.5,2.5 0 0,1 11,2.5A2.5,2.5 0 0,1 13.5,5V15.5A1,1 0 0,1 12.5,16.5A1,1 0 0,1 11.5,15.5V6H10V15.5A2.5,2.5 0 0,0 12.5,18A2.5,2.5 0 0,0 15,15.5V5A4,4 0 0,0 11,1A4,4 0 0,0 7,5V17.5A5.5,5.5 0 0,0 12.5,23A5.5,5.5 0 0,0 18,17.5V6H16.5Z" |
| 160 | + StrokeThickness="4" |
| 161 | + Fill="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ToggleButton}}, Path=Foreground}" /> |
| 162 | + </Canvas> |
| 163 | + </Viewbox> |
| 164 | + </ToggleButton> |
| 165 | + <ToggleButton Style="{StaticResource MaterialDesignFlatPrimaryToggleButton}" |
| 166 | + Margin="8 0 0 0" |
| 167 | + IsChecked="True"> |
| 168 | + <Viewbox Width="21" Height="21"> |
| 169 | + <Canvas Width="24" Height="24"> |
| 170 | + <Path Data="M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z" |
| 171 | + Fill="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ToggleButton}}, Path=Foreground}" /> |
| 172 | + </Canvas> |
| 173 | + </Viewbox> |
| 174 | + </ToggleButton> |
| 175 | + <ToggleButton Style="{StaticResource MaterialDesignFlatPrimaryToggleButton}" |
| 176 | + IsEnabled="False" Margin="8 0 0 0" > |
| 177 | + <Viewbox Width="21" Height="21"> |
| 178 | + <Canvas Width="24" Height="24"> |
| 179 | + <Path Data="M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z" |
| 180 | + Fill="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ToggleButton}}, Path=Foreground}" /> |
| 181 | + </Canvas> |
| 182 | + </Viewbox> |
| 183 | + </ToggleButton> |
| 184 | + </StackPanel> |
| 185 | + </DockPanel> |
154 | 186 | </Grid>
|
155 | 187 | </UserControl>
|
0 commit comments