Skip to content

Bind the TreeView control in xaml sample #228

Answered by xingxing21
xingxing21 asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for your reply.
This is full MainWindow.xaml

<Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:vm="using:TreeViewDataBinding" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" x:Class="TreeViewDataBinding.Views.MainWindow" xmlns:models="using:TreeViewDataBinding" Icon="/Assets/avalonia-logo.ico" Title="TreeViewDataBinding"> <Design.DataContext> <vm:MainWindowViewModel /> </Design.DataContext> <Grid ColumnDefinitions="*,200"> <DockControl FactoryType="{x:Type Factory}" InitializeLayout=…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@izaksuilov
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by xingxing21
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #222 on December 07, 2021 09:53.