コード例 #1
0
ファイル: SampleBox.xaml.cs プロジェクト: levovix0/DSamples
        public static SampleBox Create(string filename)
        {
            SampleBox box = new SampleBox();

            box.Width  = 290;
            box.Height = 32;
            box.Margin = new Thickness(0, 0, 0, 10);
            box.BindWithFile(filename);

            return(box);
        }
コード例 #2
0
 void AddSample(string file)
 {
     SampleBoxesPanel.Children.Add(SampleBox.Create(file));
     CheckSamples();
 }