Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MaterialDesignTheme.MahApps for MahApps v1.6.5 #898

Merged
merged 64 commits into from
Sep 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
1b11a38
Update paket and dependencies for MahApps.Metro v1.6
punker76 Feb 16, 2018
1b2b48a
Update nuspec dependencies
punker76 Feb 16, 2018
c424061
Update Flyout style
punker76 Feb 16, 2018
5e6ca21
Simple Grammar Corrections
matheuscuba Jul 3, 2018
a07723b
Merge pull request #978 from MatheusMCuba/patch-1
Keboo Jul 16, 2018
e161e16
Merge pull request #769 from Joris8/master
Keboo Jul 17, 2018
5e5963f
Update MaterialDesignTheme.PasswordBox.xaml
Jul 9, 2018
e93d8b3
Update MaterialDesignTheme.PasswordBox.xaml
Jul 9, 2018
aa9de13
Merge pull request #981 from LeafyDev/patch-2
Keboo Jul 19, 2018
cd2a200
Move opacitymask from grid to adornerdecorater
CookiesAndCoffee May 28, 2018
d35eafd
Merge pull request #959 from CookiesAndCoffee/FixCardShadowRender
Keboo Jul 19, 2018
93e0b91
Replaced StackPanel with Grid to enable text wrapping in DataGridColu…
mgnslndh Mar 9, 2018
a46c613
Merge pull request #910 from mgnslndh/datagridcolumnheader-wrapping
Keboo Jul 19, 2018
2d05ee8
Added Scale and Offset to the combobox template
glen-nicol Feb 17, 2018
970216f
Merge pull request #899 from glen-nicol/combobox_hint_scaling
Keboo Jul 19, 2018
53904d2
Merge pull request #894 from ahausmann/patch-1
Keboo Jul 23, 2018
3645a8a
Merge pull request #880 from redstripes89/patch-1
Keboo Jul 23, 2018
3531c41
Merge pull request #780 from Alliance-Network/GridViewColumnHeader_Thumb
Keboo Jul 23, 2018
75b7341
Merge pull request #772 from cjvaughter/master
Keboo Jul 23, 2018
fdcc324
Merge pull request #952 from Keboo/fix929
Keboo Jul 24, 2018
de9126a
Merge pull request #887 from Keboo/fix885
Keboo Jul 25, 2018
8078bd4
Merge pull request #873 from Keboo/fixCursorMissing
Keboo Jul 25, 2018
67f068a
Merge pull request #951 from Keboo/fix950
Keboo Jul 25, 2018
53b0ed8
When parent window cannot be found the paired snackbar is still avail…
Keboo May 5, 2018
16b63b3
Merge pull request #949 from Keboo/fix946
Keboo Jul 25, 2018
0cc9777
Update appveyor.yml
Keboo Jul 25, 2018
6e65a50
Remove duplicate margine from cards (#948)
Keboo Jul 25, 2018
c2b597a
Added Documentation (#991)
ChinKX Jul 25, 2018
e227821
Update README.md
Keboo Jul 26, 2018
372589a
Adding support for floating scale and floating offset on DatePicker a…
Keboo Jul 26, 2018
8f6ffc0
Update appveyor.yml
Keboo Jul 30, 2018
871ecb0
Update appveyor.yml
Keboo Jul 30, 2018
b76e8ff
Update appveyor.yml
Keboo Aug 3, 2018
8a48c61
Update appveyor.yml
Keboo Aug 3, 2018
e547951
Update appveyor.yml
Keboo Aug 3, 2018
195c535
Update appveyor.yml
Keboo Aug 3, 2018
8b1bd20
Update appveyor.yml
Keboo Aug 3, 2018
970d6a2
Update appveyor.yml
Keboo Aug 3, 2018
0753898
Update appveyor.yml
Keboo Aug 3, 2018
f8c8c81
Update appveyor.yml
Keboo Aug 3, 2018
68479f6
Update appveyor.yml
Keboo Aug 3, 2018
8f41a11
Fixing spelling mistake. (#760)
Keboo Aug 3, 2018
d559b12
Update appveyor.yml
Keboo Aug 3, 2018
a790372
Fix Button template so that ContentStringFormat works (#1002)
jcummings2 Aug 7, 2018
2f649b2
Update MaterialDesignTheme.MahApps for MahApps v1.6.5 (#1006)
ahmed-abdelrazek Aug 12, 2018
74796ae
Update MaterialDesignTheme.Button.xaml (#874)
equimal Aug 12, 2018
449ecc5
Adding attached property to control the background color of the valid…
Keboo Aug 12, 2018
c65f4ee
Added MaterialDesignUserForegroundRadioButton (same idea as MaterialD…
bebenins Aug 12, 2018
113bcca
Indeterminate Progressbar on button #961 (#964)
Streissi Aug 12, 2018
c3e2d70
Fixing issue with botched nuspec merge.
Keboo Aug 14, 2018
8306466
Added .editorconfig file using IntelliCode (#1010)
cjbush Aug 17, 2018
c0e963a
Fixes #1014
Keboo Aug 17, 2018
1bb1508
Password field box #973 (#984)
Streissi Aug 17, 2018
934e103
Fixing duplicate key
Keboo Aug 17, 2018
77155f1
Clearing hard coded headers to get localized context menus on the pas…
Keboo Aug 17, 2018
d09695c
Corrected typo for MouseMoveEventHandler method. (#1015)
dhilmathy Aug 17, 2018
59f1b93
Merge branch 'master' into feature/MahApps_v1.6
punker76 Aug 24, 2018
0d36d20
update to latest paket
punker76 Aug 24, 2018
19cfd5d
paket update
punker76 Aug 24, 2018
3b4dc35
Added ValueChanged event for RatingBar - Fixes #1027 (#1029)
dhilmathy Aug 29, 2018
ce48305
Fix the background problem on Toolbar (#1031)
hv0905 Sep 4, 2018
e02f48a
Change DashedLine default visibility to collapsed (#1019)
jizc Sep 4, 2018
c6ec165
Update RangeSlider style
punker76 Sep 4, 2018
46efaa1
Adjust MahApps Dialog stuff
punker76 Sep 4, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 50 additions & 18 deletions .paket/Paket.Restore.targets
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
<PaketExePath Condition=" '$(PaketExePath)' == '' ">$(PaketToolsPath)paket.exe</PaketExePath>
<PaketCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketExePath)"</PaketCommand>
<PaketCommand Condition=" '$(OS)' != 'Windows_NT' ">$(MonoPath) --runtime=v4.0.30319 "$(PaketExePath)"</PaketCommand>

<!-- .net core fdd -->
<_PaketExeExtension>$([System.IO.Path]::GetExtension("$(PaketExePath)"))</_PaketExeExtension>
<PaketCommand Condition=" '$(_PaketExeExtension)' == '.dll' ">dotnet "$(PaketExePath)"</PaketCommand>

<!-- no extension is a shell script -->
<PaketCommand Condition=" '$(_PaketExeExtension)' == '' ">"$(PaketExePath)"</PaketCommand>

<PaketBootStrapperExePath Condition=" '$(PaketBootStrapperExePath)' == '' AND Exists('$(PaketRootPath)paket.bootstrapper.exe')">$(PaketRootPath)paket.bootstrapper.exe</PaketBootStrapperExePath>
<PaketBootStrapperExePath Condition=" '$(PaketBootStrapperExePath)' == '' ">$(PaketToolsPath)paket.bootstrapper.exe</PaketBootStrapperExePath>
<PaketBootStrapperCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketBootStrapperExePath)"</PaketBootStrapperCommand>
Expand All @@ -35,23 +43,26 @@
<!-- Step 1 Check if lockfile is properly restored -->
<PropertyGroup>
<PaketRestoreRequired>true</PaketRestoreRequired>
<NoWarn>$(NoWarn);NU1603</NoWarn>
<NoWarn>$(NoWarn);NU1603;NU1604;NU1605;NU1608</NoWarn>
</PropertyGroup>

<!-- Because ReadAllText is slow on osx/linux, try to find shasum and awk -->
<PropertyGroup>
<PaketRestoreCachedHasher Condition="'$(OS)' != 'Windows_NT' And '$(PaketRestoreCachedHasher)' == '' And Exists('/usr/bin/shasum') And Exists('/usr/bin/awk')">/usr/bin/shasum $(PaketRestoreCacheFile) | /usr/bin/awk '{ print $1 }'</PaketRestoreCachedHasher>
<PaketRestoreLockFileHasher Condition="'$(OS)' != 'Windows_NT' And '$(PaketRestoreLockFileHash)' == '' And Exists('/usr/bin/shasum') And Exists('/usr/bin/awk')">/usr/bin/shasum $(PaketLockFilePath) | /usr/bin/awk '{ print $1 }'</PaketRestoreLockFileHasher>
<PaketRestoreCachedHasher Condition="'$(OS)' != 'Windows_NT' And '$(PaketRestoreCachedHasher)' == '' And Exists('/usr/bin/shasum') And Exists('/usr/bin/awk')">/usr/bin/shasum "$(PaketRestoreCacheFile)" | /usr/bin/awk '{ print $1 }'</PaketRestoreCachedHasher>
<PaketRestoreLockFileHasher Condition="'$(OS)' != 'Windows_NT' And '$(PaketRestoreLockFileHash)' == '' And Exists('/usr/bin/shasum') And Exists('/usr/bin/awk')">/usr/bin/shasum "$(PaketLockFilePath)" | /usr/bin/awk '{ print $1 }'</PaketRestoreLockFileHasher>
</PropertyGroup>

<!-- If shasum and awk exist get the hashes -->
<Exec Condition=" '$(PaketRestoreCachedHasher)' != '' " Command="$(PaketRestoreCachedHasher)" ConsoleToMSBuild='true'>
<Output TaskParameter="ConsoleOutput" PropertyName="PaketRestoreCachedHash" />
<Exec StandardOutputImportance="Low" Condition=" '$(PaketRestoreCachedHasher)' != '' " Command="$(PaketRestoreCachedHasher)" ConsoleToMSBuild='true'>
<Output TaskParameter="ConsoleOutput" PropertyName="PaketRestoreCachedHash" />
</Exec>
<Exec Condition=" '$(PaketRestoreLockFileHasher)' != '' " Command="$(PaketRestoreLockFileHasher)" ConsoleToMSBuild='true'>
<Output TaskParameter="ConsoleOutput" PropertyName="PaketRestoreLockFileHash" />
<Exec StandardOutputImportance="Low" Condition=" '$(PaketRestoreLockFileHasher)' != '' " Command="$(PaketRestoreLockFileHasher)" ConsoleToMSBuild='true'>
<Output TaskParameter="ConsoleOutput" PropertyName="PaketRestoreLockFileHash" />
</Exec>

<!-- Debug whats going on -->
<Message Importance="low" Text="calling paket restore with targetframework=$(TargetFramework) targetframeworks=$(TargetFrameworks)" />

<PropertyGroup Condition="Exists('$(PaketRestoreCacheFile)') ">
<!-- if no hash has been done yet fall back to just reading in the files and comparing them -->
<PaketRestoreCachedHash Condition=" '$(PaketRestoreCachedHash)' == '' ">$([System.IO.File]::ReadAllText('$(PaketRestoreCacheFile)'))</PaketRestoreCachedHash>
Expand All @@ -61,11 +72,22 @@
<PaketRestoreRequired Condition=" '$(PaketRestoreLockFileHash)' == '' ">true</PaketRestoreRequired>
</PropertyGroup>

<PropertyGroup Condition="'$(PaketPropsVersion)' != '5.174.2' ">
<PaketRestoreRequired>true</PaketRestoreRequired>
</PropertyGroup>

<!-- Do a global restore if required -->
<Exec Command='$(PaketBootStrapperCommand)' Condition="Exists('$(PaketBootStrapperExePath)') AND !(Exists('$(PaketExePath)'))" ContinueOnError="false" />
<Exec Command='$(PaketCommand) restore' Condition=" '$(PaketRestoreRequired)' == 'true' " ContinueOnError="false" />

<!-- Step 2 Detect project specific changes -->
<ItemGroup>
<MyTargetFrameworks Condition="'$(TargetFramework)' != '' " Include="$(TargetFramework)"></MyTargetFrameworks>
<!-- Don't include all frameworks when msbuild explicitly asks for a single one -->
<MyTargetFrameworks Condition="'$(TargetFrameworks)' != '' AND '$(TargetFramework)' == '' " Include="$(TargetFrameworks)"></MyTargetFrameworks>
<PaketResolvedFilePaths Include="@(MyTargetFrameworks -> '$(MSBuildProjectDirectory)\obj\$(MSBuildProjectFile).%(Identity).paket.resolved')"></PaketResolvedFilePaths>
</ItemGroup>
<Message Importance="low" Text="MyTargetFrameworks=@(MyTargetFrameworks) PaketResolvedFilePaths=@(PaketResolvedFilePaths)" />
<PropertyGroup>
<PaketReferencesCachedFilePath>$(MSBuildProjectDirectory)\obj\$(MSBuildProjectFile).paket.references.cached</PaketReferencesCachedFilePath>
<!-- MyProject.fsproj.paket.references has the highest precedence -->
Expand All @@ -74,7 +96,9 @@
<PaketOriginalReferencesFilePath Condition=" !Exists('$(PaketOriginalReferencesFilePath)')">$(MSBuildProjectDirectory)\$(MSBuildProjectName).paket.references</PaketOriginalReferencesFilePath>
<!-- paket.references -->
<PaketOriginalReferencesFilePath Condition=" !Exists('$(PaketOriginalReferencesFilePath)')">$(MSBuildProjectDirectory)\paket.references</PaketOriginalReferencesFilePath>
<PaketResolvedFilePath>$(MSBuildProjectDirectory)\obj\$(MSBuildProjectFile).$(TargetFramework).paket.resolved</PaketResolvedFilePath>

<DoAllResolvedFilesExist>false</DoAllResolvedFilesExist>
<DoAllResolvedFilesExist Condition="Exists(%(PaketResolvedFilePaths.Identity))">true</DoAllResolvedFilesExist>
<PaketRestoreRequired>true</PaketRestoreRequired>
<PaketRestoreRequiredReason>references-file-or-cache-not-found</PaketRestoreRequiredReason>
</PropertyGroup>
Expand All @@ -93,32 +117,39 @@
</PropertyGroup>

<!-- Step 2 b detect relevant changes in project file (new targetframework) -->
<PropertyGroup Condition=" !Exists('$(PaketResolvedFilePath)') AND '$(TargetFramework)' != '' ">
<PropertyGroup Condition=" '$(DoAllResolvedFilesExist)' != 'true' ">
<PaketRestoreRequired>true</PaketRestoreRequired>
<PaketRestoreRequiredReason>target-framework '$(TargetFramework)'</PaketRestoreRequiredReason>
<PaketRestoreRequiredReason>target-framework '$(TargetFramework)' or '$(TargetFrameworks)' files @(PaketResolvedFilePaths)</PaketRestoreRequiredReason>
</PropertyGroup>

<!-- Step 3 Restore project specific stuff if required -->
<Message Condition=" '$(PaketRestoreRequired)' == 'true' " Importance="low" Text="Detected a change ('$(PaketRestoreRequiredReason)') in the project file '$(MSBuildProjectFullPath)', calling paket restore" />
<Exec Command='$(PaketCommand) restore --project "$(MSBuildProjectFullPath)"' Condition=" '$(PaketRestoreRequired)' == 'true' " ContinueOnError="false" />
<Exec Command='$(PaketCommand) restore --project "$(MSBuildProjectFullPath)" --target-framework "$(TargetFrameworks)"' Condition=" '$(PaketRestoreRequired)' == 'true' AND '$(TargetFramework)' == '' " ContinueOnError="false" />
<Exec Command='$(PaketCommand) restore --project "$(MSBuildProjectFullPath)" --target-framework "$(TargetFramework)"' Condition=" '$(PaketRestoreRequired)' == 'true' AND '$(TargetFramework)' != '' " ContinueOnError="false" />

<!-- This shouldn't actually happen, but just to be sure. -->
<Error Condition=" !Exists('$(PaketResolvedFilePath)') AND '$(TargetFramework)' != '' AND '$(ResolveNuGetPackages)' != 'False' " Text="Paket file '$(PaketResolvedFilePath)' is missing while restoring $(MSBuildProjectFile). Please delete 'paket-files/paket.restore.cached' and call 'paket restore'." />
<PropertyGroup>
<DoAllResolvedFilesExist>false</DoAllResolvedFilesExist>
<DoAllResolvedFilesExist Condition="Exists(%(PaketResolvedFilePaths.Identity))">true</DoAllResolvedFilesExist>
</PropertyGroup>
<Error Condition=" '$(DoAllResolvedFilesExist)' != 'true' AND '$(ResolveNuGetPackages)' != 'False' " Text="One Paket file '@(PaketResolvedFilePaths)' is missing while restoring $(MSBuildProjectFile). Please delete 'paket-files/paket.restore.cached' and call 'paket restore'." />

<!-- Step 4 forward all msbuild properties (PackageReference, DotNetCliToolReference) to msbuild -->
<ReadLinesFromFile Condition="Exists('$(PaketResolvedFilePath)')" File="$(PaketResolvedFilePath)" >
<ReadLinesFromFile Condition="($(DesignTimeBuild) != true OR '$(PaketPropsLoaded)' != 'true') AND '@(PaketResolvedFilePaths)' != ''" File="%(PaketResolvedFilePaths.Identity)" >
<Output TaskParameter="Lines" ItemName="PaketReferencesFileLines"/>
</ReadLinesFromFile>

<ItemGroup Condition=" Exists('$(PaketResolvedFilePath)') AND '@(PaketReferencesFileLines)' != '' " >
<ItemGroup Condition="($(DesignTimeBuild) != true OR '$(PaketPropsLoaded)' != 'true') AND '@(PaketReferencesFileLines)' != '' " >
<PaketReferencesFileLinesInfo Include="@(PaketReferencesFileLines)" >
<PackageName>$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[0])</PackageName>
<PackageVersion>$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[1])</PackageVersion>
<AllPrivateAssets>$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[4])</AllPrivateAssets>
</PaketReferencesFileLinesInfo>
<PackageReference Include="%(PaketReferencesFileLinesInfo.PackageName)">
<Version>%(PaketReferencesFileLinesInfo.PackageVersion)</Version>
<PrivateAssets Condition="%(PaketReferencesFileLinesInfo.AllPrivateAssets) == 'true'">All</PrivateAssets>
<PrivateAssets Condition=" ('%(PaketReferencesFileLinesInfo.AllPrivateAssets)' == 'true') Or ('$(PackAsTool)' == 'true') ">All</PrivateAssets>
<ExcludeAssets Condition="%(PaketReferencesFileLinesInfo.AllPrivateAssets) == 'exclude'">runtime</ExcludeAssets>
<Publish Condition=" '$(PackAsTool)' == 'true' ">true</Publish>
</PackageReference>
</ItemGroup>

Expand All @@ -140,9 +171,10 @@
</DotNetCliToolReference>
</ItemGroup>

<!-- Disabled for now until we know what to do with runtime deps - https://github.com/fsprojects/Paket/issues/2964
<PropertyGroup>
<RestoreConfigFile>$(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).NuGet.Config</RestoreConfigFile>
</PropertyGroup>
</PropertyGroup> -->

</Target>

Expand Down Expand Up @@ -174,8 +206,8 @@

<ConvertToAbsolutePath Condition="@(_NuspecFiles) != ''" Paths="@(_NuspecFiles)">
<Output TaskParameter="AbsolutePaths" PropertyName="NuspecFileAbsolutePath" />
</ConvertToAbsolutePath>
</ConvertToAbsolutePath>


<!-- Call Pack -->
<PackTask Condition="$(UseNewPack)"
Expand Down
1 change: 1 addition & 0 deletions .paket/paket-sha256.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8996429163A399AA2F2E675D29F668E72597EB836187FE404A29936793ACC6D2 paket.exe
Binary file modified .paket/paket.bootstrapper.exe
Binary file not shown.
Binary file modified .paket/paket.exe
Binary file not shown.
6 changes: 2 additions & 4 deletions MahMaterialDragablzMashUp/DialogsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ private void InputDialog()
var metroDialogSettings = new MetroDialogSettings
{
CustomResourceDictionary = DialogDictionary,
NegativeButtonText = "CANCEL",
SuppressDefaultResources = true
NegativeButtonText = "CANCEL"
};

DialogCoordinator.Instance.ShowInputAsync(this, "MahApps Dialog", "Using Material Design Themes", metroDialogSettings);
Expand All @@ -49,8 +48,7 @@ private async void ProgressDialog()
var metroDialogSettings = new MetroDialogSettings
{
CustomResourceDictionary = DialogDictionary,
NegativeButtonText = "CANCEL",
SuppressDefaultResources = true
NegativeButtonText = "CANCEL"
};

var controller = await DialogCoordinator.Instance.ShowProgressAsync(this, "MahApps Dialog", "Using Material Design Themes (WORK IN PROGRESS)", true, metroDialogSettings);
Expand Down
3 changes: 2 additions & 1 deletion MahMaterialDragablzMashUp/Mah.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
<controls:ToggleSwitch IsChecked="True" HorizontalAlignment="Left" />
<Button Width="100" Margin="0 8 0 0" Content="Nice" HorizontalAlignment="Left"
Style="{DynamicResource AccentedSquareButtonStyle}" />
<controls:RangeSlider Margin="0 16 0 0" LowerValue="25" UpperValue="75" />
<Slider Margin="6 16 6 0" TickPlacement="BottomRight" TickFrequency="10" />
<controls:RangeSlider Margin="6 16 6 0" LowerValue="25" UpperValue="75" TickPlacement="BottomRight" TickFrequency="10" />
<controls:RangeSlider Margin="0 16 0 0" LowerValue="25" UpperValue="75" Orientation="Vertical" Height="200" />
<controls:NumericUpDown Margin="5"/>
<controls:NumericUpDown Culture="ar-EG" FlowDirection="RightToLeft" Margin="5"/>
Expand Down
1 change: 1 addition & 0 deletions MahMaterialDragablzMashUp/MahAppsDragablzDemo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down
2 changes: 1 addition & 1 deletion MainDemo.Wpf/Buttons.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@
<TextBlock Margin="0 32 0 0" Grid.Row="9" Style="{StaticResource MaterialDesignHeadlineTextBlock}">Rating bar</TextBlock>
<StackPanel Grid.Row="10" Margin="0 16 0 0" Orientation="Horizontal">
<smtx:XamlDisplay Key="buttons_58" VerticalContentAlignment="Top" Margin="5 0 0 5">
<materialDesign:RatingBar Value="3" x:Name="BasicRatingBar" />
<materialDesign:RatingBar Value="3" x:Name="BasicRatingBar" ValueChanged="BasicRatingBar_ValueChanged"/>
</smtx:XamlDisplay>
<TextBlock Text="{Binding ElementName=BasicRatingBar, Path=Value, StringFormat=Rating: {0}}" VerticalAlignment="Top" Margin="10,2,0,0" />
<smtx:XamlDisplay Key="buttons_59" Margin="24 0 0 5">
Expand Down
24 changes: 9 additions & 15 deletions MainDemo.Wpf/Buttons.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using MaterialDesignColors.WpfExample.Domain;

namespace MaterialDesignColors.WpfExample
Expand All @@ -24,7 +15,6 @@ public partial class Buttons : UserControl
public Buttons()
{
InitializeComponent();

FloatingActionDemoCommand = new AnotherCommandImplementation(Execute);
}

Expand All @@ -36,9 +26,9 @@ private void Execute(object o)
}

private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
{
{
Console.WriteLine("Just checking we haven't suppressed the button.");
}
}

private void PopupBox_OnOpened(object sender, RoutedEventArgs e)
{
Expand All @@ -58,7 +48,11 @@ private void CountingButton_OnClick(object sender, RoutedEventArgs e)
var next = int.Parse(CountingBadge.Badge.ToString()) + 1;

CountingBadge.Badge = next < 21 ? (object)next : null;

}

private void BasicRatingBar_ValueChanged(object sender, RoutedPropertyChangedEventArgs<int> e)
{
Debug.WriteLine($"BasicRatingBar value changed from {e.OldValue} to {e.NewValue}.");
}
}
}
1 change: 1 addition & 0 deletions MainDemo.Wpf/MaterialDesignDemo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@
<None Include="paket.references" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<PropertyGroup>
<__paket__xunit_runner_visualstudio_props>net20\xunit.runner.visualstudio</__paket__xunit_runner_visualstudio_props>
</PropertyGroup>
</When>
</Choose>
<Import Project="..\packages\xunit.runner.visualstudio\build\$(__paket__xunit_runner_visualstudio_props).props" Condition="Exists('..\packages\xunit.runner.visualstudio\build\$(__paket__xunit_runner_visualstudio_props).props')" Label="Paket" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@

<Style BasedOn="{StaticResource MaterialDesignFlatButton}"
TargetType="{x:Type Button}" />
<Style BasedOn="{StaticResource MaterialDesignFlatButton}"
TargetType="{x:Type ButtonBase}" />

<Style x:Key="AccentedDialogSquareButton"
BasedOn="{StaticResource MaterialDesignFlatButton}"
TargetType="{x:Type Button}" />
TargetType="{x:Type ButtonBase}" />

<Style x:Key="AccentedDialogHighlightedSquareButton"
BasedOn="{StaticResource MaterialDesignFlatButton}"
TargetType="{x:Type Button}"/>
TargetType="{x:Type ButtonBase}"/>

</ResourceDictionary>
Loading