-
-
Notifications
You must be signed in to change notification settings - Fork 779
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #817 from lepoco/development
Merge Development
- Loading branch information
Showing
98 changed files
with
4,053 additions
and
1,116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
global using System; | ||
global using System.Windows; | ||
global using CommunityToolkit.Mvvm.ComponentModel; | ||
global using CommunityToolkit.Mvvm.ComponentModel; | ||
global using CommunityToolkit.Mvvm.Input; | ||
global using System; | ||
global using System.Windows; | ||
global using Wpf.Ui.Services; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
global using System; | ||
global using System.Windows; | ||
global using CommunityToolkit.Mvvm.ComponentModel; | ||
global using CommunityToolkit.Mvvm.ComponentModel; | ||
global using CommunityToolkit.Mvvm.Input; | ||
global using System; | ||
global using System.Windows; | ||
global using Wpf.Ui.Services; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/Wpf.Ui.Gallery/ViewModels/Pages/Layout/CardControlViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// This Source Code Form is subject to the terms of the MIT License. | ||
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. | ||
// Copyright (C) Leszek Pomianowski and WPF UI Contributors. | ||
// All Rights Reserved. | ||
|
||
namespace Wpf.Ui.Gallery.ViewModels.Pages.Layout; | ||
|
||
public partial class CardControlViewModel : ObservableObject | ||
{ | ||
public CardControlViewModel() { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/Wpf.Ui.Gallery/Views/Pages/Layout/CardControlPage.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<Page | ||
x:Class="Wpf.Ui.Gallery.Views.Pages.Layout.CardControlPage" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:controls="clr-namespace:Wpf.Ui.Gallery.Controls" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="clr-namespace:Wpf.Ui.Gallery.Views.Pages.Layout" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:system="clr-namespace:System;assembly=System.Runtime" | ||
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" | ||
Title="CardControlPage" | ||
d:DesignHeight="450" | ||
d:DesignWidth="800" | ||
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}" | ||
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}" | ||
Foreground="{DynamicResource TextFillColorPrimaryBrush}" | ||
mc:Ignorable="d"> | ||
|
||
<controls:ControlExample | ||
Margin="0" | ||
HeaderText="A card control with a header and a button." | ||
XamlCode="<ui:CardControl Header="This is the header text." />"> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="*" /> | ||
<ColumnDefinition Width="Auto" /> | ||
</Grid.ColumnDefinitions> | ||
<ui:CardControl Grid.Column="0"> | ||
<ui:CardControl.Header> | ||
<TextBlock Text="This is the header text." /> | ||
</ui:CardControl.Header> | ||
<ui:CardControl.Content> | ||
<ui:Button Content="Button" /> | ||
</ui:CardControl.Content> | ||
</ui:CardControl> | ||
|
||
</Grid> | ||
</controls:ControlExample> | ||
<!-- TODO: Add CardAction --> | ||
</Page> |
39 changes: 39 additions & 0 deletions
39
src/Wpf.Ui.Gallery/Views/Pages/Layout/CardControlPage.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// This Source Code Form is subject to the terms of the MIT License. | ||
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. | ||
// Copyright (C) Leszek Pomianowski and WPF UI Contributors. | ||
// All Rights Reserved. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
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 Wpf.Ui.Controls; | ||
using Wpf.Ui.Gallery.ControlsLookup; | ||
using Wpf.Ui.Gallery.ViewModels.Pages.Layout; | ||
|
||
namespace Wpf.Ui.Gallery.Views.Pages.Layout; | ||
|
||
/// <summary> | ||
/// Interaction logic for CardControlPage.xaml | ||
/// </summary> | ||
[GalleryPage("Card control.", SymbolRegular.CardUi24)] | ||
public partial class CardControlPage : INavigableView<CardControlViewModel> | ||
{ | ||
public CardControlPage(CardControlViewModel viewModel) | ||
{ | ||
InitializeComponent(); | ||
ViewModel = viewModel; | ||
} | ||
|
||
public CardControlViewModel ViewModel { get; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.