///DatatemplateDemo xaml interaction logic
///& lt;/summary>
Public partial class DatatemplateDemo: Window
{
Private readonly MainViewModel _viewModel=new MainViewModel ();
Public DatatemplateDemo ()
{
InitializeComponent ();
String [] files=new string [2] {@ "C: \ Users \ lenovo - wanchi \ Desktop \ rvt17 ifc", @ "C: \ Users \ lenovo - wanchi \ Desktop \ site. The ifc"};
IfcStore store=MainWindow. FederationFromDialogbox (files);
_viewModel. ModelStore=store;
Enclosing DataContext=_viewModel;
Usercontrol. DataContext=_viewModel;
}
}
XMLNS: x="http://schemas.microsoft.com/winfx/2006/xaml"
XMLNS: d="http://schemas.microsoft.com/expression/blend/2008"
XMLNS: MC="http://schemas.openxmlformats.org/markup-compatibility/2006"
XMLNS: local="CLR namespace: WPF"
MC: Ignorable="d"
XMLNS: xbim="http://schemas.Xbim.com/Presentation"
Title="DatatemplateDemo" Height="500" Width="1000" & gt;
Could you please tell me where is the binding is wrong in my front desk resource, data transfer, write the controls in the window, can successful binding,
Bosses, please answer the small white
CodePudding user response:
Someone, help, post for the first time