コード例 #1
0
 /// <summary>Signals the object that initialization is starting.</summary>
 public virtual void BeginInit()
 {
     RefreshCmd = new RelayCommand(o => { if (o != null)
                                          {
                                              SetMapDirty();
                                          }
                                          Refresh(); });
     DataContext = new HexgridViewModel(this);
     SetScales(new float[] { 1.00F });
 }
コード例 #2
0
        /// <summary>Creates a new instance of HexgridScrollable.</summary>
        public HexgridPanel()
        {
            DataContext = new HexgridViewModel(this);

            InitializeComponent();
        }