Click here to Skip to main content
15,902,788 members

Comments by Muhammed Yeter (Top 8 by date)

Muhammed Yeter 25-Aug-21 13:18pm View    
thx :)
Muhammed Yeter 23-Aug-21 14:22pm View    
2d oyun motoru yapıyorum. bir ağaç görünümü ekledi ve
kullanıcı buna tıkladığında bir öğe ekledi , eylem modeli oluştur
kaydırıcı değerinin değiştirilmesini istiyorum olay tetiklendi, konumu değiştir eylem modeli

kodu :
private void TreeViewItem_MouseDoubleClick_1(object sender, MouseButtonEventArgs e)
{
anahat.Items.Add("Action Model 2");
Görüntü actionmodel2 = yeni Görüntü();
BitmapImage kaynağı = yeni BitmapImage();
src.BeginInit();
src.UriSource = new Uri(aksiyon2, UriKind.Absolute);
src.EndInit();
actionmodel2.Source = kaynak;
actionmodel2.Stretch = Stretch.Üniforma;
actionmodel2.Yükseklik = 100;
Tuval.SetTop(eylem modeli2, 350);
Canvas.SetLeft(actionmodel2, 750);
actionmodel2.MouseDown += actionmodel_MouseLeftButtonDown;
actionmodel2.MouseLeftButtonDown += actionmodel_MouseLeftButtonDown;
actionmodel2.PreviewMouseDown += actionmodel_PreviewMouseDown;
gridmain.Children.Add(actionmodel2);
ImageBehavior.SetAnimatedSource(actionmodel2, src);
Diary.Items.Add("Eklenen Model : Eylem/Eylem Modeli 2");
//actionmodel2.Width = asd.Value;
}
Muhammed Yeter 23-Aug-21 3:23am View    
asd = my slider name
Muhammed Yeter 23-Aug-21 3:23am View    
Deleted
i make a 2d game engine. added a treeview and added a item
when user click this, create actionmodel
i want slider valuechanged event fired, change position actionmodel

code :
private void TreeViewItem_MouseDoubleClick_1(object sender, MouseButtonEventArgs e)
{
outliner.Items.Add("Action Model 2");
Image actionmodel2 = new Image();
BitmapImage src = new BitmapImage();
src.BeginInit();
src.UriSource = new Uri(aksiyon2, UriKind.Absolute);
src.EndInit();
actionmodel2.Source = src;
actionmodel2.Stretch = Stretch.Uniform;
actionmodel2.Height = 100;
Canvas.SetTop(actionmodel2, 350);
Canvas.SetLeft(actionmodel2, 750);
actionmodel2.MouseDown += actionmodel_MouseLeftButtonDown;
actionmodel2.MouseLeftButtonDown += actionmodel_MouseLeftButtonDown;
actionmodel2.PreviewMouseDown += actionmodel_PreviewMouseDown;
gridmain.Children.Add(actionmodel2);
ImageBehavior.SetAnimatedSource(actionmodel2, src);
Diary.Items.Add("Added Model : Action/Action Model 2");
//actionmodel2.Width = asd.Value;
}
Muhammed Yeter 23-Aug-21 2:05am View    
Because i new