Skip to content

Commit d25c50a

Browse files
committed
avalonia: enable compiled bindings for all UI
1 parent 47072be commit d25c50a

13 files changed

+29
-3
lines changed

src/shared/Atlassian.Bitbucket/UI/Views/CredentialsView.axaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
xmlns:vm="clr-namespace:Atlassian.Bitbucket.UI.ViewModels;assembly=Atlassian.Bitbucket"
66
xmlns:converters="clr-namespace:GitCredentialManager.UI.Converters;assembly=gcmcore"
77
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
8+
x:DataType="vm:CredentialsViewModel"
9+
x:CompileBindings="True"
810
x:Class="Atlassian.Bitbucket.UI.Views.CredentialsView">
911
<Design.DataContext>
1012
<vm:CredentialsViewModel/>

src/shared/Core/UI/Controls/AboutWindow.axaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
44
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
55
xmlns:gcm="clr-namespace:GitCredentialManager"
6+
xmlns:controls="clr-namespace:GitCredentialManager.UI.Controls"
67
mc:Ignorable="d" d:DesignWidth="300" d:DesignHeight="450"
78
x:Class="GitCredentialManager.UI.Controls.AboutWindow"
89
Title="About Git Credential Manager"
910
CanResize="False" Width="300" SizeToContent="Height"
1011
x:Name="window"
12+
x:DataType="controls:AboutWindow"
13+
x:CompileBindings="True"
1114
Background="{DynamicResource WindowBackgroundBrush}">
1215
<StackPanel Margin="20">
1316
<Image HorizontalAlignment="Center"

src/shared/Core/UI/Controls/DialogWindow.axaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
WindowState="Normal" WindowStartupLocation="CenterScreen"
1515
ShowInTaskbar="True" ShowActivated="True"
1616
PointerPressed="Window_PointerPressed"
17-
KeyUp="Window_KeyUp">
17+
KeyUp="Window_KeyUp"
18+
x:DataType="vm:WindowViewModel"
19+
x:CompileBindings="True">
1820
<Design.DataContext>
1921
<vm:WindowViewModel/>
2022
</Design.DataContext>

src/shared/Core/UI/Controls/ProgressWindow.axaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
SizeToContent="WidthAndHeight" CanResize="False" Topmost="True"
77
ExtendClientAreaChromeHints="NoChrome" ExtendClientAreaToDecorationsHint="True"
88
ShowInTaskbar="False" Title="Git Credential Manager" WindowStartupLocation="CenterScreen"
9+
x:CompileBindings="True"
910
x:Class="GitCredentialManager.UI.Controls.ProgressWindow">
1011
<ProgressBar Orientation="Horizontal"
1112
IsIndeterminate="True"

src/shared/Core/UI/Views/CredentialsView.axaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
xmlns:vm="clr-namespace:GitCredentialManager.UI.ViewModels;assembly=gcmcore"
66
xmlns:converters="clr-namespace:GitCredentialManager.UI.Converters;assembly=gcmcore"
77
mc:Ignorable="d" d:DesignWidth="420"
8+
x:DataType="vm:CredentialsViewModel"
9+
x:CompileBindings="True"
810
x:Class="GitCredentialManager.UI.Views.CredentialsView">
911
<Design.DataContext>
1012
<vm:CredentialsViewModel/>

src/shared/Core/UI/Views/DefaultAccountView.axaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
xmlns:vm="clr-namespace:GitCredentialManager.UI.ViewModels;assembly=gcmcore"
66
xmlns:converters="clr-namespace:GitCredentialManager.UI.Converters;assembly=gcmcore"
77
mc:Ignorable="d" d:DesignWidth="420"
8+
x:DataType="vm:DefaultAccountViewModel"
9+
x:CompileBindings="True"
810
x:Class="GitCredentialManager.UI.Views.DefaultAccountView">
911
<Design.DataContext>
1012
<vm:DefaultAccountViewModel/>

src/shared/Core/UI/Views/DeviceCodeView.axaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
33
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
44
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5-
xmlns:sharedVms="clr-namespace:GitCredentialManager.UI.ViewModels;assembly=gcmcore"
5+
xmlns:vm="clr-namespace:GitCredentialManager.UI.ViewModels;assembly=gcmcore"
66
mc:Ignorable="d" d:DesignWidth="420"
7+
x:DataType="vm:DeviceCodeViewModel"
8+
x:CompileBindings="True"
79
x:Class="GitCredentialManager.UI.Views.DeviceCodeView">
810
<Design.DataContext>
9-
<sharedVms:DeviceCodeViewModel/>
11+
<vm:DeviceCodeViewModel/>
1012
</Design.DataContext>
1113
<DockPanel>
1214
<StackPanel DockPanel.Dock="Top" Margin="0,0,0,15">

src/shared/Core/UI/Views/OAuthView.axaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
55
xmlns:vm="clr-namespace:GitCredentialManager.UI.ViewModels;assembly=gcmcore"
66
mc:Ignorable="d" d:DesignWidth="420"
7+
x:DataType="vm:OAuthViewModel"
8+
x:CompileBindings="True"
79
x:Class="GitCredentialManager.UI.Views.OAuthView">
810
<Design.DataContext>
911
<vm:OAuthViewModel/>

src/shared/GitHub/UI/Views/CredentialsView.axaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
xmlns:vm="clr-namespace:GitHub.UI.ViewModels"
77
xmlns:converters="clr-namespace:GitCredentialManager.UI.Converters;assembly=gcmcore"
88
mc:Ignorable="d" d:DesignWidth="420"
9+
x:DataType="vm:CredentialsViewModel"
10+
x:CompileBindings="True"
911
x:Class="GitHub.UI.Views.CredentialsView">
1012
<Design.DataContext>
1113
<vm:CredentialsViewModel/>

src/shared/GitHub/UI/Views/DeviceCodeView.axaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
xmlns:controls="clr-namespace:GitHub.UI.Controls"
66
xmlns:vm="clr-namespace:GitHub.UI.ViewModels"
77
mc:Ignorable="d" d:DesignWidth="420"
8+
x:DataType="vm:DeviceCodeViewModel"
9+
x:CompileBindings="True"
810
x:Class="GitHub.UI.Views.DeviceCodeView">
911
<Design.DataContext>
1012
<vm:DeviceCodeViewModel/>

src/shared/GitHub/UI/Views/SelectAccountView.axaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
xmlns:controls="clr-namespace:GitHub.UI.Controls"
66
xmlns:vm="clr-namespace:GitHub.UI.ViewModels"
77
mc:Ignorable="d" d:DesignWidth="420"
8+
x:DataType="vm:SelectAccountViewModel"
9+
x:CompileBindings="True"
810
x:Class="GitHub.UI.Views.SelectAccountView">
911
<Design.DataContext>
1012
<vm:SelectAccountViewModel/>

src/shared/GitHub/UI/Views/TwoFactorView.axaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
xmlns:controls="clr-namespace:GitHub.UI.Controls"
66
xmlns:vm="clr-namespace:GitHub.UI.ViewModels"
77
mc:Ignorable="d" d:DesignWidth="420"
8+
x:DataType="vm:TwoFactorViewModel"
9+
x:CompileBindings="True"
810
x:Class="GitHub.UI.Views.TwoFactorView">
911
<Design.DataContext>
1012
<vm:TwoFactorViewModel/>

src/shared/GitLab/UI/Views/CredentialsView.axaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
xmlns:converters="clr-namespace:GitCredentialManager.UI.Converters;assembly=gcmcore"
77
mc:Ignorable="d" d:DesignWidth="420"
88
x:Class="GitLab.UI.Views.CredentialsView"
9+
x:DataType="vm:CredentialsViewModel"
10+
x:CompileBindings="True"
911
x:Name="view">
1012
<UserControl.Resources>
1113
<ResourceDictionary>

0 commit comments

Comments
 (0)