fix: fix identation, fix error theme in demo.
This commit is contained in:
parent
17fa10333a
commit
1c98ce4682
@ -112,10 +112,18 @@
|
||||
</MultiBinding>
|
||||
</Image.Source>
|
||||
</Image>
|
||||
<TextBox VerticalAlignment="Center" Text="{Binding Name}" />
|
||||
<TextBox
|
||||
VerticalAlignment="Center"
|
||||
Classes="Small"
|
||||
Text="{Binding Name}">
|
||||
<TextBox.Styles>
|
||||
<Style Selector="DataValidationErrors">
|
||||
<Setter Property="Theme" Value="{DynamicResource TooltipDataValidationErrors}" />
|
||||
</Style>
|
||||
</TextBox.Styles>
|
||||
</TextBox>
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
|
||||
</TreeDataGrid.Resources>
|
||||
<TreeDataGrid.Styles>
|
||||
<Style Selector="TreeDataGrid TreeDataGridRow:nth-child(2n)">
|
||||
|
@ -180,10 +180,7 @@ public class FileNodeViewModel: ObservableObject, IEditableObject
|
||||
private bool _hasChildren = true;
|
||||
private bool _isExpanded;
|
||||
|
||||
public FileNodeViewModel(
|
||||
string path,
|
||||
bool isDirectory,
|
||||
bool isRoot = false)
|
||||
public FileNodeViewModel( string path, bool isDirectory, bool isRoot = false)
|
||||
{
|
||||
_path = path;
|
||||
_name = isRoot ? path : System.IO.Path.GetFileName(Path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user