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