Skip to content

Commit

Permalink
Merge pull request #3 from MahApps/develop
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
timunie authored Jul 27, 2019
2 parents d5c3750 + 58da447 commit ecb1dcd
Show file tree
Hide file tree
Showing 142 changed files with 2,614 additions and 2,621 deletions.
5 changes: 0 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ test: off

install:
- cinst netfx-4.7-devpack
#- ps: Start-FileDownload 'https://dotnetcli.blob.core.windows.net/dotnet/Sdk/master/dotnet-sdk-latest-win-x64.exe'
#- ps: Start-Process .\dotnet-sdk-latest-win-x64.exe "/install /norestart /quiet /log sdkinstall.log" -NoNewWindow -Wait
#- ps: Start-FileDownload 'https://download.visualstudio.microsoft.com/download/pr/4032ceb5-61cd-495a-ab25-475aa2232f28/7eb614e777d87ef0d49f86be4fc8bbde/dotnet-sdk-3.0.100-preview4-011223-win-x64.exe'
#- ps: Start-Process .\dotnet-sdk-3.0.100-preview4-011223-win-x64.exe "/install /norestart /quiet /log sdkinstall.log" -NoNewWindow -Wait
# Install dotnet core 3.0 latest (alpha!!), as this is not provided on AppVeyor yet
- cinst dotnetcore-sdk --pre

pull_requests:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<StackPanel Margin="10" Orientation="Vertical">

<Slider Margin="5"
Style="{DynamicResource MahApps.Metro.Styles.FlatSlider}"
Style="{DynamicResource MahApps.Styles.Slider.Flat}"
Value="50" />

<ListView x:Name="Artists"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Height="36"
FontFamily="Segoe UI Symbol"
FontSize="16"
Style="{DynamicResource MahApps.Metro.Styles.MetroCircleButtonStyle}">
Style="{DynamicResource MahApps.Styles.Button.Circle}">
<iconPacks:PackIconModern Kind="Add" />
</Button>
</StackPanel>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
FontFamily="Segoe UI Symbol"
FontSize="16"
Foreground="{Binding RelativeSource={RelativeSource AncestorType={x:Type Controls:Flyout}}, Path=Foreground}"
Style="{DynamicResource MahApps.Metro.Styles.MetroCircleButtonStyle}">
Style="{DynamicResource MahApps.Styles.Button.Circle}">
<iconPacks:PackIconModern Kind="Add" />
</Button>
</StackPanel>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Title="Flyouts Demo"
Width="800"
Height="600"
BorderBrush="{DynamicResource AccentColorBrush}"
BorderBrush="{DynamicResource MahApps.Brushes.Accent}"
BorderThickness="1"
SaveWindowPosition="True"
WindowStartupLocation="CenterScreen"
Expand Down
4 changes: 2 additions & 2 deletions src/MahApps.Metro.Samples/MahApps.Metro.Demo/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
<Setter Property="HorizontalAlignment" Value="Center" />
</Style>

<Style BasedOn="{StaticResource MetroValidationPopup}" TargetType="{x:Type controls:CustomValidationPopup}">
<Style BasedOn="{StaticResource MahApps.Styles.CustomValidationPopup}" TargetType="{x:Type controls:CustomValidationPopup}">
<Setter Property="CloseOnMouseLeftButtonDown" Value="False" />
<Setter Property="ShowValidationErrorOnMouseOver" Value="False" />
</Style>

<!-- quick change of the collapse storyboard duration -->
<Storyboard x:Key="MetroExpanderCollapseStoryboard">
<Storyboard x:Key="MahApps.Storyboard.ExpanderCollapse">
<DoubleAnimation Storyboard.TargetName="ExpandSite"
Storyboard.TargetProperty="(UIElement.Opacity)"
To="0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,21 @@
<Button Width="100"
Margin="{StaticResource ControlMargin}"
Content="Enabled"
Style="{DynamicResource SquareButtonStyle}" />
Style="{DynamicResource MahApps.Styles.Button.Square}" />
<Button Width="100"
Margin="{StaticResource ControlMargin}"
Content="Enabled"
Style="{DynamicResource AccentedSquareButtonStyle}" />
Style="{DynamicResource MahApps.Styles.Button.AccentedSquare}" />
<Button Width="100"
Margin="{StaticResource ControlMargin}"
Content="Disabled"
IsEnabled="False"
Style="{DynamicResource SquareButtonStyle}" />
Style="{DynamicResource MahApps.Styles.Button.Square}" />
<Button Width="100"
Margin="{StaticResource ControlMargin}"
Content="Disabled"
IsEnabled="False"
Style="{DynamicResource AccentedSquareButtonStyle}" />
Style="{DynamicResource MahApps.Styles.Button.AccentedSquare}" />
</StackPanel>

<StackPanel Grid.Row="0" Grid.Column="2">
Expand All @@ -90,19 +90,19 @@
<ToggleButton Width="100"
Margin="{StaticResource ControlMargin}"
Content="Enabled"
Style="{DynamicResource MetroFlatToggleButton}" />
Style="{DynamicResource MahApps.Styles.ToggleButton.Flat}" />
<ToggleButton Width="100"
Margin="{StaticResource ControlMargin}"
Content="Disabled"
IsEnabled="False"
Style="{DynamicResource MetroFlatToggleButton}" />
Style="{DynamicResource MahApps.Styles.ToggleButton.Flat}" />
<StackPanel Margin="{StaticResource ControlMargin}"
HorizontalAlignment="Center"
Orientation="Horizontal">
<ToggleButton Width="48"
Height="48"
Margin="4"
Style="{DynamicResource MahApps.Metro.Styles.MetroCircleToggleButtonStyle}">
Style="{DynamicResource MahApps.Styles.ToggleButton.Circle}">
<iconPacks:PackIconModern Width="20"
Height="20"
Kind="City" />
Expand All @@ -111,7 +111,7 @@
Height="48"
Margin="4"
IsEnabled="False"
Style="{DynamicResource MahApps.Metro.Styles.MetroCircleToggleButtonStyle}">
Style="{DynamicResource MahApps.Styles.ToggleButton.Circle}">
<iconPacks:PackIconModern Width="20"
Height="20"
Kind="City" />
Expand Down Expand Up @@ -144,15 +144,15 @@
Orientation="Horizontal">
<StackPanel.Resources>
<Style x:Key="AccentCircleButtonStyle"
BasedOn="{StaticResource MahApps.Metro.Styles.MetroCircleButtonStyle}"
BasedOn="{StaticResource MahApps.Styles.Button.Circle}"
TargetType="{x:Type ButtonBase}">
<Setter Property="Foreground" Value="{DynamicResource AccentColorBrush}" />
<Setter Property="Foreground" Value="{DynamicResource MahApps.Brushes.Accent}" />
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="BorderBrush" Value="{DynamicResource AccentColorBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource MahApps.Brushes.Accent}" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Foreground" Value="{DynamicResource GrayBrush7}" />
<Setter Property="Foreground" Value="{DynamicResource MahApps.Brushes.Gray7}" />
</Trigger>
</Style.Triggers>
</Style>
Expand All @@ -177,9 +177,9 @@
<Button Width="48"
Height="48"
Margin="4"
Foreground="{DynamicResource AccentColorBrush}"
Foreground="{DynamicResource MahApps.Brushes.Accent}"
IsEnabled="False"
Style="{StaticResource MahApps.Metro.Styles.MetroCircleButtonStyle}">
Style="{StaticResource MahApps.Styles.Button.Circle}">
<Button.ContentTemplate>
<DataTemplate>
<iconPacks:PackIconModern Width="20"
Expand All @@ -196,15 +196,15 @@
HorizontalAlignment="Center">
<StackPanel.Resources>
<Style x:Key="CustomMetroToggleSwitch"
BasedOn="{StaticResource MahApps.Metro.Styles.ToggleSwitch}"
BasedOn="{StaticResource MahApps.Styles.ToggleSwitch}"
TargetType="{x:Type Controls:ToggleSwitch}">
<Setter Property="OffLabel" Value="False" />
<Setter Property="OffSwitchBrush" Value="Red" />
<Setter Property="OnLabel" Value="True" />
<Setter Property="OnSwitchBrush" Value="Green" />
</Style>
<Style x:Key="CustomMetroToggleSwitchButton"
BasedOn="{StaticResource MahApps.Metro.Styles.ToggleSwitchButton}"
BasedOn="{StaticResource MahApps.Styles.ToggleSwitchButton}"
TargetType="{x:Type Controls:ToggleSwitchButton}">
<Setter Property="OffSwitchBrush" Value="DarkRed" />
<Setter Property="OnSwitchBrush" Value="DarkGreen" />
Expand Down Expand Up @@ -237,28 +237,28 @@
IsChecked="True"
OffLabel="Disabled"
OnLabel="Enabled"
Style="{StaticResource MahApps.Metro.Styles.ToggleSwitch.Win10}" />
Style="{StaticResource MahApps.Styles.ToggleSwitch.Win10}" />
<Controls:ToggleSwitch x:Name="visibleSwitch"
Controls:ValidationHelper.ShowValidationErrorOnMouseOver="True"
Controls:ValidationHelper.CloseOnMouseLeftButtonDown="True"
Margin="{StaticResource ControlMargin}"
Controls:ValidationHelper.CloseOnMouseLeftButtonDown="True"
Controls:ValidationHelper.ShowValidationErrorOnMouseOver="True"
IsChecked="{Binding IsToggleSwitchVisible, ValidatesOnDataErrors=True}"
OffLabel="Collapsed"
OnLabel="Visible"
Style="{StaticResource MahApps.Metro.Styles.ToggleSwitch.Win10}" />
Style="{StaticResource MahApps.Styles.ToggleSwitch.Win10}" />
<Controls:ToggleSwitch Margin="{StaticResource ControlMargin}"
IsEnabled="{Binding ElementName=enabledSwitch, Path=IsChecked}"
Style="{StaticResource MahApps.Metro.Styles.ToggleSwitch.Win10}"
Style="{StaticResource MahApps.Styles.ToggleSwitch.Win10}"
Visibility="{Binding ElementName=visibleSwitch, Path=IsChecked, Converter={StaticResource btv}}" />

<Controls:ToggleSwitch Margin="{StaticResource ControlMargin}"
IsChecked="True"
IsEnabled="False"
Style="{StaticResource MahApps.Metro.Styles.ToggleSwitch.Win10}" />
Style="{StaticResource MahApps.Styles.ToggleSwitch.Win10}" />
<Controls:ToggleSwitch Margin="{StaticResource ControlMargin}"
IsChecked="False"
IsEnabled="False"
Style="{StaticResource MahApps.Metro.Styles.ToggleSwitch.Win10}" />
Style="{StaticResource MahApps.Styles.ToggleSwitch.Win10}" />
</StackPanel>

<StackPanel Grid.Row="1"
Expand Down Expand Up @@ -318,7 +318,7 @@
TargetType="Controls:DropDownButton">
<Setter Property="ArrowVisibility" Value="Collapsed" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="ButtonStyle" Value="{DynamicResource MahApps.Metro.Styles.MetroCircleButtonStyle}" />
<Setter Property="ButtonStyle" Value="{DynamicResource MahApps.Styles.Button.Circle}" />
<Setter Property="FocusVisualStyle" Value="{DynamicResource MahApps.Metro.Styles.MetroCircleFocusVisual}" />
<Setter Property="Height" Value="48" />
<Setter Property="Width" Value="48" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@
Grid.Column="0"
Width="30"
Height="30"
Stroke="{DynamicResource GrayBrush2}">
Stroke="{DynamicResource MahApps.Brushes.Gray2}">
<i:Interaction.Behaviors>
<behaviors:BindableResourceBehavior ResourceName="{Binding}" Property="{x:Static Shape.FillProperty}" />
</i:Interaction.Behaviors>
</Ellipse>
<TextBlock Grid.Column="1"
Margin="10"
VerticalAlignment="Center"
FontSize="{DynamicResource NormalFontSize}"
FontSize="{DynamicResource MahApps.Sizes.Font.Normal}"
Text="{Binding ElementName=BrushResource, Path=(Shape.Fill)}" />
<TextBlock Grid.Column="2"
Margin="10"
VerticalAlignment="Center"
FontSize="{DynamicResource NormalFontSize}"
FontSize="{DynamicResource MahApps.Sizes.Font.Normal}"
Text="{Binding}" />
</Grid>
</DataTemplate>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@
HorizontalAlignment="Right"
Command="{Binding CloseCommand}"
Content="OK"
Style="{DynamicResource MahApps.Metro.Styles.Dialogs.Button}" />
Style="{DynamicResource MahApps.Styles.Button.Dialogs}" />
</Grid>
</UserControl>
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,12 @@
SelectionUnit="FullRow">
<DataGrid.Columns>
<DataGridCheckBoxColumn Binding="{Binding RelativeSource={RelativeSource AncestorType=DataGridRow}, Path=IsSelected, Mode=OneWay}"
EditingElementStyle="{DynamicResource MetroDataGridCheckBox}"
ElementStyle="{DynamicResource MetroDataGridCheckBox}"
EditingElementStyle="{DynamicResource MahApps.Styles.CheckBox.DataGrid}"
ElementStyle="{DynamicResource MahApps.Styles.CheckBox.DataGrid}"
Header="Row Selected" />
<DataGridCheckBoxColumn Binding="{Binding IsSelected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
EditingElementStyle="{DynamicResource MetroDataGridCheckBox}"
ElementStyle="{DynamicResource MetroDataGridCheckBox}"
EditingElementStyle="{DynamicResource MahApps.Styles.CheckBox.DataGrid}"
ElementStyle="{DynamicResource MahApps.Styles.CheckBox.DataGrid}"
Header="Album Selected" />
<DataGridTextColumn Binding="{Binding Title}" Header="Title" />
<DataGridTextColumn Binding="{Binding Artist.Name}" Header="Artist" />
Expand All @@ -186,12 +186,12 @@
StringFormat="{}{0:C}" />
</DataGrid.Columns>
<DataGrid.Style>
<Style BasedOn="{StaticResource MetroDataGrid}" TargetType="{x:Type DataGrid}">
<Setter Property="AlternatingRowBackground" Value="{DynamicResource GrayBrush10}" />
<Style BasedOn="{StaticResource MahApps.Styles.DataGrid}" TargetType="{x:Type DataGrid}">
<Setter Property="AlternatingRowBackground" Value="{DynamicResource MahApps.Brushes.Gray10}" />
</Style>
</DataGrid.Style>
<DataGrid.RowStyle>
<Style BasedOn="{StaticResource MetroDataGridRow}" TargetType="{x:Type DataGridRow}">
<Style BasedOn="{StaticResource MahApps.Styles.DataGridRow}" TargetType="{x:Type DataGridRow}">
<Style.Triggers>
<DataTrigger Binding="{Binding Price, Mode=OneWay, Converter={StaticResource AlbumPriceIsTooMuchConverter}}" Value="True">
<Setter Property="Background" Value="#FF8B8B" />
Expand Down Expand Up @@ -232,7 +232,7 @@
AutoGenerateColumns="False"
ItemsSource="{Binding Path=Albums}"
RowHeaderWidth="0"
Style="{DynamicResource AzureDataGrid}">
Style="{DynamicResource MahApps.Styles.DataGrid.Azure}">
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding Title}" Header="Title" />
<DataGridTextColumn Binding="{Binding Artist.Name}" Header="Artist" />
Expand All @@ -245,7 +245,7 @@
Margin="5 2"
VerticalAlignment="Center"
Background="Transparent"
Foreground="{DynamicResource AccentColorBrush}"
Foreground="{DynamicResource MahApps.Brushes.Accent}"
Maximum="20"
Minimum="0"
Value="{Binding Price}" />
Expand Down
Loading

0 comments on commit ecb1dcd

Please sign in to comment.