Template binding of TextBlock in WPF Style

I encountered an issue when I creating a WPF style on an button icon where put a label show an integer on top of it. At first I just put a TextBlock and set Text=”{TemplateBinding Tag}” (the trick here I use is pass over the integer from tag property) it keeps failed to show up. Then counter check back the templatebinding is correct and Tag property did contains the value too. After several trials including set direction=TwoWay, IsSynced=true also failed, I gave up, it still doesn’t show up though. Finally I replaced TextBlock with Label and point the TemplateBinding to Content. Now everything seems alright.

Upload Icon

<Style x:Key="MetroNotifyButtonStyle" TargetType="{x:Type Button}">
        <Setter Property="Foreground" Value="Gray"/>
        <Setter Property="FontSize" Value="24" />
        <Setter Property="FontFamily" Value="iconFont" />
        <Setter Property="Template">
                <ControlTemplate TargetType="{x:Type Button}">
                        <Label x:Name="counter" Content="{TemplateBinding Tag}" Style="{StaticResource NotificationStyle}" Padding="0 8 8 0"
                               Visibility="{Binding Content,RelativeSource={RelativeSource Self},Converter={StaticResource VisibilityConverter}}" />
                        <Border x:Name="body" Padding="10">
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding Content}" />
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="body" Property="Background" Value="#007acc" />
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Foreground" Value="White" />
                <Setter Property="Background" Value="White" />

VMWare vSphere client

I faced a problem today after upgraded old version of VM to v4.1.0. Then the existing vSphere client no longer can connect and always getting the error below.

The specified module could not be found. (Exception from HRESULT: 0x8007007E)

After Google around then get the solution:
You can always get the corresponding vSphere client install link at your VM Homepage (ie.
VMWare Esxi 4.1
so the solution is simple, just reinstall with the latest vSphere client and everything will become normal again.

Hope this help if you face the same problem like me 🙂