fix: fix a default binding issue.
This commit is contained in:
@@ -19,7 +19,7 @@ public class ToolBarItemTemplateSelector: IDataTemplate
|
|||||||
{
|
{
|
||||||
[!ContentControl.ContentProperty] = new Binding() { Path = "Content" },
|
[!ContentControl.ContentProperty] = new Binding() { Path = "Content" },
|
||||||
[!Button.CommandProperty] = new Binding() { Path = "Command" },
|
[!Button.CommandProperty] = new Binding() { Path = "Command" },
|
||||||
[!ToolBar.OverflowModeProperty] = new Binding(){ Path = "OverflowMode" }
|
//[!ToolBar.OverflowModeProperty] = new Binding(){ Path = "OverflowMode" }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if (param is ToolBarCheckBoxItemViweModel cb)
|
if (param is ToolBarCheckBoxItemViweModel cb)
|
||||||
@@ -28,7 +28,7 @@ public class ToolBarItemTemplateSelector: IDataTemplate
|
|||||||
{
|
{
|
||||||
[!ContentControl.ContentProperty] = new Binding() { Path = "Content" },
|
[!ContentControl.ContentProperty] = new Binding() { Path = "Content" },
|
||||||
[!ToggleButton.IsCheckedProperty] = new Binding() { Path = "IsChecked" },
|
[!ToggleButton.IsCheckedProperty] = new Binding() { Path = "IsChecked" },
|
||||||
[!ToolBar.OverflowModeProperty] = new Binding(){ Path = "OverflowMode" }
|
//[!ToolBar.OverflowModeProperty] = new Binding(){ Path = "OverflowMode" }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if (param is ToolBarComboBoxItemViewModel combo)
|
if (param is ToolBarComboBoxItemViewModel combo)
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ public class ToolBar: HeaderedItemsControl
|
|||||||
var c = p.Child;
|
var c = p.Child;
|
||||||
if (c != null)
|
if (c != null)
|
||||||
{
|
{
|
||||||
|
// container[ToolBar.OverflowModeProperty] = c[ToolBar.OverflowModeProperty];
|
||||||
container[!ToolBar.OverflowModeProperty] = c[!ToolBar.OverflowModeProperty];
|
container[!ToolBar.OverflowModeProperty] = c[!ToolBar.OverflowModeProperty];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user