Hỏi đáp
Chia sẻ kiến thức, cùng nhau phát triển
code của mình như thế..Mọi người fix gium mình với . cảm ơn ạ
xaml:
<Window.Resources>
<ViewModel:MainWindowViewModel
Canvas="{Binding DataContext.Canvas,Source={x:Reference Name=Canvas}}" x:Key="KeyMainWindowVIewModel">
</ViewModel:MainWindowViewModel>
</Window.Resources>
class viewmodel
public Canvas Canvas
{
get { return (Canvas)GetValue(CanvasProperty); }
set { SetValue(CanvasProperty, value); }
}
public static readonly DependencyProperty CanvasProperty =
DependencyProperty.Register("Canvas", typeof(Canvas), typeof(MainWindowViewModel));
//
12345678910111213141516171819
code của mình như thế..Mọi người fix gium mình với . cảm ơn ạ
Để sử dụng tính năng này, Bạn cần đăng nhập bằng tài khoản Howkteam.
Đăng nhập
Để xem được nội dung và giúp Kteam duy trì hoạt động.
Bạn vui lòng tắt Adblock trên website howkteam.vn nhé!
Thật sự là mình không hiểu bạn muốn gì