Skip to content

Commit 860170e

Browse files
committed
Merge branch 'snackbar' of https://github.com/ButchersBoy/MaterialDesignInXamlToolkit into snackbar
2 parents d8a34cd + e191253 commit 860170e

File tree

98 files changed

+3266
-1290
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+3266
-1290
lines changed
File renamed without changes.

.github/ISSUE_TEMPLATE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This is a place for issues. Questions are better asked in the Gitter chat room.
2+
3+
# Seriously consider creating and linking to a test repo which takes absolutely minimal setup to illustrate how reproduce the problem.

.paket/paket.bootstrapper.exe

14 KB
Binary file not shown.

.paket/paket.exe

1.54 MB
Binary file not shown.

.paket/paket.targets

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
<PaketBootStrapperExePath Condition=" '$(PaketBootStrapperExePath)' == '' ">$(PaketToolsPath)paket.bootstrapper.exe</PaketBootStrapperExePath>
1717
<PaketCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketExePath)"</PaketCommand>
1818
<PaketCommand Condition=" '$(OS)' != 'Windows_NT' ">$(MonoPath) --runtime=v4.0.30319 "$(PaketExePath)"</PaketCommand>
19-
<PaketBootStrapperCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketBootStrapperExePath)"</PaketBootStrapperCommand>
20-
<PaketBootStrapperCommand Condition=" '$(OS)' != 'Windows_NT' ">$(MonoPath) --runtime=v4.0.30319 $(PaketBootStrapperExePath)</PaketBootStrapperCommand>
19+
<PaketBootStrapperCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketBootStrapperExePath)" $(PaketBootStrapperCommandArgs)</PaketBootStrapperCommand>
20+
<PaketBootStrapperCommand Condition=" '$(OS)' != 'Windows_NT' ">$(MonoPath) --runtime=v4.0.30319 $(PaketBootStrapperExePath) $(PaketBootStrapperCommandArgs)</PaketBootStrapperCommand>
2121
<!-- Commands -->
2222
<PaketReferences Condition="!Exists('$(MSBuildProjectFullPath).paket.references')">$(MSBuildProjectDirectory)\paket.references</PaketReferences>
23+
<PaketReferences Condition="!Exists('$(PaketReferences)')">$(MSBuildStartupDirectory)\paket.references</PaketReferences>
2324
<PaketReferences Condition="Exists('$(MSBuildProjectFullPath).paket.references')">$(MSBuildProjectFullPath).paket.references</PaketReferences>
2425
<RestoreCommand>$(PaketCommand) restore --references-files "$(PaketReferences)"</RestoreCommand>
2526
<DownloadPaketCommand>$(PaketBootStrapperCommand)</DownloadPaketCommand>
@@ -35,6 +36,6 @@
3536
<Exec Command="$(DownloadPaketCommand)" IgnoreStandardErrorWarningFormat="true" Condition=" '$(DownloadPaket)' == 'true' AND !Exists('$(PaketExePath)')" />
3637
</Target>
3738
<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
38-
<Exec Command="$(RestoreCommand)" IgnoreStandardErrorWarningFormat="true" WorkingDirectory="$(PaketRootPath)" Condition="Exists('$(PaketReferences)')" />
39+
<Exec Command="$(RestoreCommand)" IgnoreStandardErrorWarningFormat="true" WorkingDirectory="$(PaketRootPath)" Condition="Exists('$(PaketReferences)')" ContinueOnError="true" />
3940
</Target>
4041
</Project>

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) James Willock, Mulholland Software and Contributors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

License

Lines changed: 0 additions & 22 deletions
This file was deleted.

MahMaterialDragablzMashUp/DialogsViewModel.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ private void InputDialog()
4444
DialogCoordinator.Instance.ShowInputAsync(this, "MahApps Dialog", "Using Material Design Themes", metroDialogSettings);
4545
}
4646

47-
private void ProgressDialog()
47+
private async void ProgressDialog()
4848
{
4949
var metroDialogSettings = new MetroDialogSettings
5050
{
@@ -53,12 +53,15 @@ private void ProgressDialog()
5353
SuppressDefaultResources = true
5454
};
5555

56-
DialogCoordinator.Instance.ShowProgressAsync(this, "MahApps Dialog", "Using Material Design Themes (WORK IN PROGRESS)", true, metroDialogSettings);
56+
var controller = await DialogCoordinator.Instance.ShowProgressAsync(this, "MahApps Dialog", "Using Material Design Themes (WORK IN PROGRESS)", true, metroDialogSettings);
57+
controller.SetIndeterminate();
58+
await Task.Delay(3000);
59+
await controller.CloseAsync();
5760
}
5861

5962
private void ShowLeftFlyout()
6063
{
61-
((MainWindow)Application.Current.MainWindow).LeftFlyout.IsOpen = true;
64+
((MainWindow)Application.Current.MainWindow).LeftFlyout.IsOpen = !((MainWindow)Application.Current.MainWindow).LeftFlyout.IsOpen;
6265
}
6366
}
6467
}

MahMaterialDragablzMashUp/MahAppsDragablzDemo.csproj

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
1515
<WarningLevel>4</WarningLevel>
1616
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
17-
<RestorePackages>true</RestorePackages>
1817
</PropertyGroup>
1918
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2019
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -50,20 +49,8 @@
5049
<Prefer32Bit>true</Prefer32Bit>
5150
</PropertyGroup>
5251
<ItemGroup>
53-
<Reference Include="Dragablz, Version=0.0.3.151, Culture=neutral, processorArchitecture=MSIL">
54-
<HintPath>..\packages\Dragablz.0.0.3.151\lib\net45\Dragablz.dll</HintPath>
55-
<Private>True</Private>
56-
</Reference>
57-
<Reference Include="MahApps.Metro, Version=1.2.0.0, Culture=neutral, PublicKeyToken=f4fb5a3c4d1e5b4f, processorArchitecture=MSIL">
58-
<HintPath>..\packages\MahApps.Metro.1.2.0.0\lib\net45\MahApps.Metro.dll</HintPath>
59-
<Private>True</Private>
60-
</Reference>
6152
<Reference Include="System" />
6253
<Reference Include="System.Data" />
63-
<Reference Include="System.Windows.Interactivity, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
64-
<HintPath>..\packages\MahApps.Metro.1.2.0.0\lib\net45\System.Windows.Interactivity.dll</HintPath>
65-
<Private>True</Private>
66-
</Reference>
6754
<Reference Include="System.Xml" />
6855
<Reference Include="Microsoft.CSharp" />
6956
<Reference Include="System.Core" />
@@ -144,7 +131,7 @@
144131
<Generator>ResXFileCodeGenerator</Generator>
145132
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
146133
</EmbeddedResource>
147-
<None Include="packages.config" />
134+
<None Include="paket.references" />
148135
<None Include="Properties\Settings.settings">
149136
<Generator>SettingsSingleFileGenerator</Generator>
150137
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
@@ -172,18 +159,39 @@
172159
<Resource Include="Resources\ProfilePic.jpg" />
173160
</ItemGroup>
174161
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
175-
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
176-
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
177-
<PropertyGroup>
178-
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
179-
</PropertyGroup>
180-
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
181-
</Target>
182162
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
183163
Other similar extension points exist, see Microsoft.Common.targets.
184164
<Target Name="BeforeBuild">
185165
</Target>
186166
<Target Name="AfterBuild">
187167
</Target>
188168
-->
169+
<Import Project="..\.paket\paket.targets" />
170+
<Choose>
171+
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2' Or $(TargetFrameworkVersion) == 'v4.5.3' Or $(TargetFrameworkVersion) == 'v4.6' Or $(TargetFrameworkVersion) == 'v4.6.1' Or $(TargetFrameworkVersion) == 'v4.6.2' Or $(TargetFrameworkVersion) == 'v4.6.3')">
172+
<ItemGroup>
173+
<Reference Include="Dragablz">
174+
<HintPath>..\packages\Dragablz\lib\net45\Dragablz.dll</HintPath>
175+
<Private>True</Private>
176+
<Paket>True</Paket>
177+
</Reference>
178+
</ItemGroup>
179+
</When>
180+
</Choose>
181+
<Choose>
182+
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2' Or $(TargetFrameworkVersion) == 'v4.5.3' Or $(TargetFrameworkVersion) == 'v4.6' Or $(TargetFrameworkVersion) == 'v4.6.1' Or $(TargetFrameworkVersion) == 'v4.6.2' Or $(TargetFrameworkVersion) == 'v4.6.3')">
183+
<ItemGroup>
184+
<Reference Include="MahApps.Metro">
185+
<HintPath>..\packages\MahApps.Metro\lib\net45\MahApps.Metro.dll</HintPath>
186+
<Private>True</Private>
187+
<Paket>True</Paket>
188+
</Reference>
189+
<Reference Include="System.Windows.Interactivity">
190+
<HintPath>..\packages\MahApps.Metro\lib\net45\System.Windows.Interactivity.dll</HintPath>
191+
<Private>True</Private>
192+
<Paket>True</Paket>
193+
</Reference>
194+
</ItemGroup>
195+
</When>
196+
</Choose>
189197
</Project>

MahMaterialDragablzMashUp/MainWindow.xaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
xmlns:dragablz="clr-namespace:Dragablz;assembly=Dragablz"
66
xmlns:mahMaterialDragablzMashUp="clr-namespace:MahMaterialDragablzMashUp"
77
xmlns:dockablz="clr-namespace:Dragablz.Dockablz;assembly=Dragablz"
8+
xmlns:wpf="http://materialdesigninxaml.net/winfx/xaml/themes"
89
WindowTransitionsEnabled="False"
910
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
1011
Background="{DynamicResource MaterialDesignPaper}"
@@ -13,12 +14,23 @@
1314
Title="Material-MahApps-Dragablz Mash Up" Height="640" Width="800">
1415
<controls:MetroWindow.Flyouts>
1516
<controls:FlyoutsControl>
16-
<controls:Flyout x:Name="LeftFlyout" Position="Left" Header="Settings">
17+
<controls:Flyout x:Name="LeftFlyout" Position="Left" Header="Settings" wpf:FlyoutAssist.HeaderColorMode="Accent">
1718
<mahMaterialDragablzMashUp:FlyoutContent />
1819
</controls:Flyout>
1920
</controls:FlyoutsControl>
2021
</controls:MetroWindow.Flyouts>
21-
<dockablz:Layout>
22+
<controls:MetroWindow.LeftWindowCommands>
23+
<controls:WindowCommands>
24+
<wpf:PopupBox Style="{StaticResource WindowCommandsPopupBoxStyle}">
25+
<StackPanel>
26+
<Button Content="Hello World"/>
27+
<Button Content="Nice Popup"/>
28+
<Button Content="Goodbye"/>
29+
</StackPanel>
30+
</wpf:PopupBox>
31+
</controls:WindowCommands>
32+
</controls:MetroWindow.LeftWindowCommands>
33+
<dockablz:Layout>
2234
<dragablz:TabablzControl BorderThickness="0"
2335
Margin="0,-1,0,1">
2436
<dragablz:TabablzControl.InterTabController>

0 commit comments

Comments
 (0)