-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move inspector templates into UserControls
- Loading branch information
1 parent
02c7675
commit fde0884
Showing
14 changed files
with
248 additions
and
114 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
27 changes: 27 additions & 0 deletions
27
RsrcArchitect.Views.WPF/UserControls/Controls/ButtonInspector.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,27 @@ | ||
<UserControl x:Class="RsrcArchitect.Views.WPF.UserControls.Controls.ButtonInspector" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="clr-namespace:RsrcArchitect.Views.WPF.UserControls.Controls" | ||
xmlns:controls="clr-namespace:RsrcArchitect.ViewModels.Controls;assembly=RsrcArchitect.ViewModels" | ||
mc:Ignorable="d" | ||
d:DataContext="{d:DesignInstance controls:ButtonViewModel}" | ||
d:DesignHeight="300" d:DesignWidth="300"> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="0.5*" /> | ||
<ColumnDefinition Width="*" /> | ||
</Grid.ColumnDefinitions> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto" /> | ||
</Grid.RowDefinitions> | ||
|
||
|
||
<TextBlock Grid.Row="0" Grid.Column="0" Text="Caption" | ||
VerticalAlignment="Center" HorizontalAlignment="Left" /> | ||
<TextBox Grid.Row="0" Grid.Column="1" | ||
Text="{Binding Caption, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> | ||
|
||
</Grid> | ||
</UserControl> |
12 changes: 12 additions & 0 deletions
12
RsrcArchitect.Views.WPF/UserControls/Controls/ButtonInspector.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,12 @@ | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
|
||
namespace RsrcArchitect.Views.WPF.UserControls.Controls; | ||
|
||
public partial class ButtonInspector : UserControl | ||
{ | ||
public ButtonInspector() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
RsrcArchitect.Views.WPF/UserControls/Controls/CheckBoxInspector.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,27 @@ | ||
<UserControl x:Class="RsrcArchitect.Views.WPF.UserControls.Controls.CheckBoxInspector" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="clr-namespace:RsrcArchitect.Views.WPF.UserControls.Controls" | ||
xmlns:controls="clr-namespace:RsrcArchitect.ViewModels.Controls;assembly=RsrcArchitect.ViewModels" | ||
mc:Ignorable="d" | ||
d:DataContext="{d:DesignInstance controls:CheckBoxViewModel}" | ||
d:DesignHeight="300" d:DesignWidth="300"> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="0.5*" /> | ||
<ColumnDefinition Width="*" /> | ||
</Grid.ColumnDefinitions> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto" /> | ||
</Grid.RowDefinitions> | ||
|
||
|
||
<TextBlock Grid.Row="0" Grid.Column="0" Text="Caption" | ||
VerticalAlignment="Center" HorizontalAlignment="Left" /> | ||
<TextBox Grid.Row="0" Grid.Column="1" | ||
Text="{Binding Caption, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/> | ||
|
||
</Grid> | ||
</UserControl> |
11 changes: 11 additions & 0 deletions
11
RsrcArchitect.Views.WPF/UserControls/Controls/CheckBoxInspector.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,11 @@ | ||
using System.Windows.Controls; | ||
|
||
namespace RsrcArchitect.Views.WPF.UserControls.Controls; | ||
|
||
public partial class CheckBoxInspector : UserControl | ||
{ | ||
public CheckBoxInspector() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
RsrcArchitect.Views.WPF/UserControls/Controls/ComboBoxInspector.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,27 @@ | ||
<UserControl x:Class="RsrcArchitect.Views.WPF.UserControls.Controls.ComboBoxInspector" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="clr-namespace:RsrcArchitect.Views.WPF.UserControls.Controls" | ||
xmlns:controls="clr-namespace:RsrcArchitect.ViewModels.Controls;assembly=RsrcArchitect.ViewModels" | ||
mc:Ignorable="d" | ||
d:DataContext="{d:DesignInstance controls:ComboBoxViewModel}" | ||
d:DesignHeight="300" d:DesignWidth="300"> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="0.5*" /> | ||
<ColumnDefinition Width="*" /> | ||
</Grid.ColumnDefinitions> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto" /> | ||
</Grid.RowDefinitions> | ||
|
||
|
||
<TextBlock Grid.Row="0" Grid.Column="0" Text="Is Sorted" | ||
VerticalAlignment="Center" HorizontalAlignment="Left" /> | ||
<TextBox Grid.Row="0" Grid.Column="1" | ||
Text="{Binding IsSorted, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/> | ||
|
||
</Grid> | ||
</UserControl> |
11 changes: 11 additions & 0 deletions
11
RsrcArchitect.Views.WPF/UserControls/Controls/ComboBoxInspector.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,11 @@ | ||
using System.Windows.Controls; | ||
|
||
namespace RsrcArchitect.Views.WPF.UserControls.Controls; | ||
|
||
public partial class ComboBoxInspector : UserControl | ||
{ | ||
public ComboBoxInspector() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
RsrcArchitect.Views.WPF/UserControls/Controls/GroupBoxInspector.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,27 @@ | ||
<UserControl x:Class="RsrcArchitect.Views.WPF.UserControls.Controls.GroupBoxInspector" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="clr-namespace:RsrcArchitect.Views.WPF.UserControls.Controls" | ||
xmlns:controls="clr-namespace:RsrcArchitect.ViewModels.Controls;assembly=RsrcArchitect.ViewModels" | ||
mc:Ignorable="d" | ||
d:DataContext="{d:DesignInstance controls:GroupBoxViewModel}" | ||
d:DesignHeight="300" d:DesignWidth="300"> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="0.5*" /> | ||
<ColumnDefinition Width="*" /> | ||
</Grid.ColumnDefinitions> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto" /> | ||
</Grid.RowDefinitions> | ||
|
||
|
||
<TextBlock Grid.Row="0" Grid.Column="0" Text="Caption" | ||
VerticalAlignment="Center" HorizontalAlignment="Left" /> | ||
<TextBox Grid.Row="0" Grid.Column="1" | ||
Text="{Binding Caption, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> | ||
|
||
</Grid> | ||
</UserControl> |
11 changes: 11 additions & 0 deletions
11
RsrcArchitect.Views.WPF/UserControls/Controls/GroupBoxInspector.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,11 @@ | ||
using System.Windows.Controls; | ||
|
||
namespace RsrcArchitect.Views.WPF.UserControls.Controls; | ||
|
||
public partial class GroupBoxInspector : UserControl | ||
{ | ||
public GroupBoxInspector() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
RsrcArchitect.Views.WPF/UserControls/Controls/LabelInspector.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,27 @@ | ||
<UserControl x:Class="RsrcArchitect.Views.WPF.UserControls.Controls.LabelInspector" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="clr-namespace:RsrcArchitect.Views.WPF.UserControls.Controls" | ||
xmlns:controls="clr-namespace:RsrcArchitect.ViewModels.Controls;assembly=RsrcArchitect.ViewModels" | ||
mc:Ignorable="d" | ||
d:DataContext="{d:DesignInstance controls:LabelViewModel}" | ||
d:DesignHeight="300" d:DesignWidth="300"> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="0.5*" /> | ||
<ColumnDefinition Width="*" /> | ||
</Grid.ColumnDefinitions> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto" /> | ||
</Grid.RowDefinitions> | ||
|
||
|
||
<TextBlock Grid.Row="0" Grid.Column="0" Text="Caption" | ||
VerticalAlignment="Center" HorizontalAlignment="Left" /> | ||
<TextBox Grid.Row="0" Grid.Column="1" | ||
Text="{Binding Caption, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> | ||
|
||
</Grid> | ||
</UserControl> |
Oops, something went wrong.