WPF: Microsoft is still Investing on It (2015 March)

2015 DontnetConf just passed, .NET developers got many existing news from .NET team and community. WPF is the one.

In last year, Nov 12, WPF team announced a new Roadmap for WPF. but there were not enough and details information.

But on the 2015 dontnetConf, we got more information, Microsoft will definitely continue to support WPF, and, they announce they will have the following areas of investment.

Continue reading “WPF: Microsoft is still Investing on It (2015 March)”

WPF and Windows Form Integration Application Localization

We have a Windows From application to load WPF modules, due to Microsoft programming guide, they called this kind of application as WPF and Windows Form integration application.

What ever, we now need the integration application to support multiple cultures, is localization.

Let’s start from a simple application, a Windows Form application load a WPF control.

Continue reading “WPF and Windows Form Integration Application Localization”

WPF: Follow Parent’s Size 1

There are different ways to get child size follows parent’s size, here I collect 3 of them first:

<…. Parent container > (note: StackPanel not work maybe? not sure here)

<TextBox Width="{Binding ElementName=ParentContainer, Path=ActualWidth}"
    Text="Text" HorizontalAlignment="Left" MaxWidth="200" />
</…. Parent container >

2: Using DataTemplate:
Width="{Binding ActualWidth,RelativeSource={RelativeSource FindAncestor, 
AncestorType={x:Type ScrollContentPresenter}}}"

3: Use Grid:
        <ColumnDefinition Width="*" MaxWidth="100"/>

    <TextBox Text="Text" />
Anyway, you have to know different case get different result, not guarantee above methods work for your case.

Host SignalR 2.0 in WPF Application

Microsoft has released new versions of ASP.NET, Visual Studio, SignalR etc. The real-time web might be focused on their SignalR tech since SignalR supports Web Sockets and other compatible techs.

Our team will have a new web project which needs us host SignalR in a WPF application. We searched online long time but most of SignalR Self-hosting samples only indicated how to host SignalR in a Console application.

Continue reading “Host SignalR 2.0 in WPF Application”

A Simulator Program Using WPF

This simulator program was for simulating a special company devices, which are for Coal Mine field gas detection.

We had plan to continue release new version, however, the time was occupied by most other software projects after this simulator program 1st version released. At that time the simulator worked perfect for company new computer control system internal testing. Actually, why this Simulator program built just because of internal testing requirement.

Continue reading “A Simulator Program Using WPF”