File tree Expand file tree Collapse file tree 7 files changed +356
-103
lines changed
src/Files.App/UserControls Expand file tree Collapse file tree 7 files changed +356
-103
lines changed Original file line number Diff line number Diff line change 631
631
</VisualStateManager .VisualStateGroups>
632
632
</Grid >
633
633
634
- </UserControl >
634
+ </UserControl >
Original file line number Diff line number Diff line change 1
- <!-- Copyright (c) 2023 Files Community. Licensed under the MIT License. See the LICENSE. -->
1
+ <!-- Copyright (c) 2023 Files Community. Licensed under the MIT License. See the LICENSE. -->
2
2
<local : HomePageWidget
3
3
x:Class=" Files.App.UserControls.Widgets.DrivesWidget"
4
4
xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
Original file line number Diff line number Diff line change 8
8
xmlns:d=" http://schemas.microsoft.com/expression/blend/2008"
9
9
xmlns:helpers=" using:Files.App.Helpers"
10
10
xmlns:local=" using:Files.App.UserControls.Widgets"
11
- xmlns:localcontrols=" using:Files.App.UserControls"
12
11
xmlns:mc=" http://schemas.openxmlformats.org/markup-compatibility/2006"
13
12
xmlns:vm=" using:Files.App.ViewModels.Widgets"
14
13
d:DesignHeight=" 300"
Original file line number Diff line number Diff line change 4
4
xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
5
5
xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml"
6
6
xmlns:d=" http://schemas.microsoft.com/expression/blend/2008"
7
- xmlns:helpers=" using:Files.App.Helpers"
8
7
xmlns:local=" using:Files.App.UserControls.Widgets"
9
8
xmlns:mc=" http://schemas.openxmlformats.org/markup-compatibility/2006"
10
9
mc:Ignorable=" d" >
11
10
12
11
<Grid >
13
12
<ItemsRepeater
14
13
x:Name=" CardsList"
15
- Grid.Row=" 0"
16
14
HorizontalAlignment=" Stretch"
17
15
ItemsSource=" {x:Bind ItemsAdded, Mode=OneWay}" >
18
16
Original file line number Diff line number Diff line change 1
- <!-- Copyright (c) 2023 Files Community. Licensed under the MIT License. See the LICENSE. -->
1
+ <!-- Copyright (c) 2023 Files Community. Licensed under the MIT License. See the LICENSE. -->
2
2
<local : HomePageWidget
3
3
x:Class=" Files.App.UserControls.Widgets.RecentFilesWidget"
4
4
xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
121
121
</ListView >
122
122
123
123
</StackPanel >
124
- </local : HomePageWidget >
124
+ </local : HomePageWidget >
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 5
5
using Microsoft . UI . Xaml . Controls ;
6
6
using System ;
7
7
8
- // The User Control item template is documented at https://go.microsoft.com/fwlink/?LinkId=234236
9
-
10
8
namespace Files . App . UserControls . Widgets
11
9
{
12
10
public sealed partial class WidgetsListControl : UserControl , IDisposable
13
11
{
14
- public WidgetsListControlViewModel ViewModel
15
- {
16
- get => ( WidgetsListControlViewModel ) DataContext ;
17
- set => DataContext = value ;
18
- }
12
+ public WidgetsListControlViewModel ViewModel { get ; set ; }
19
13
20
14
public WidgetsListControl ( )
21
15
{
22
16
InitializeComponent ( ) ;
23
17
24
- ViewModel = new WidgetsListControlViewModel ( ) ;
18
+ ViewModel = new ( ) ;
25
19
}
26
20
27
21
public void Dispose ( )
28
22
{
29
23
ViewModel ? . Dispose ( ) ;
30
24
}
31
25
}
32
- }
26
+ }
You can’t perform that action at this time.
0 commit comments