Category: "Announcements [B]"
WPF TextBlock Click Event
Actually, for WPF TextBlock Component, there is no click event. The best replacement is Mouse Down Event,
Like this:
Code
text1.MouseDown += text1_MouseDown; |
Adding a WPF control into a panel programmatically
The best way to design an interface for WPF is using xaml. However, in some situation, we need to change the layout in code. For example, we select a category view, we need to add a new block in a stack panel.
For example:
Code
TextBlock text1 = new TextBlock(); | |
text1.Text = grid.HeaderText; | |
LinearGradientBrush style = this.FindResource("LeftHeaderBrush") as LinearGradientBrush ; | |
text1.Background= style; | |
text1.Height = 100; | |
inactivePanels.Children.Add(text1); |
I started to love Visual Studio 2013
I started to use Visual Studio 2013 for some new projects. I found there are a number of new features make our life easier, such as displaying the number of references for each class and method.
Those small features help us to build the applications easier.
Surface Roadshow at Carindale
When I did my shopping at Westfield Carindale, I found there was a roadshow for Microsoft Surface. That was interesting! In front of the counter, there was a Christmas Tree which is made of Surface. That sounds very geek! Beside that, there is something real! There were a few surface 2 and surface pro 2. I tried a surface pro2! That is cool! It has Windows 8.1, not the RT version! Moreover, it has a touch cover, which has a physical netbook size keyboard. That is better than surface which has only a soft keyboard. I think if I have money, I will buy that as a chirstmas present for myself!
windows 8.1 preview
Recently, I went a microsoft meeting. There were a number of people tried Windows 8.1 Preview. According to what I heard, although it will be not very stable in some situations, they are happy about the improvements, such as better sky drive and windows store. The most interesting thing is everyone mentioned the "Star" is back!