image

加入參考 using System.Windows.Threading;

me1237guy 發表在 痞客邦 留言(0) 人氣()

image

me1237guy 發表在 痞客邦 留言(0) 人氣()

https://www.facebook.com/MATLAB/videos/372170376698253/

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
新增主控台應用程式
輸入關鍵字”openTK”安裝後,在你專案的參考中應該會出現OpenTK套件

me1237guy 發表在 痞客邦 留言(0) 人氣()

37

me1237guy 發表在 痞客邦 留言(0) 人氣()

1. WPF – MVVM (一)2. WPF – MVVM (二)3. WPF – MVVM (三)4. UWP 和 WPF 对比

me1237guy 發表在 痞客邦 留言(0) 人氣()

image

 1:  
 2: enum Animal
 3: {
 4: Dog = 0x0001,
 5: Cat = 0x0002,
 6: Duck = 0x0004,
 7: Chicken = 0x0008
 8: }
 9: static void Main(string[] args)
 10: {
 11: Animal animals = Animal.Dog | Animal.Cat;
 12: Console.WriteLine(animals.ToString());
 13: Console.ReadKey();
 14: }

me1237guy 發表在 痞客邦 留言(0) 人氣()

先說結論:  readonly比較不會出錯,一般狀況新版的dll蓋過去就好,但如果是const狀況,須將整個專案重新編譯,才不會出錯!
參考資料:[C#.NET] 定義常數時用 readonly 好? 還是 const 好?

me1237guy 發表在 痞客邦 留言(0) 人氣()

(1) 在 Windows Forms 中裝載 WPF 控制項
https://docs.microsoft.com/zh-tw/dotnet/framework/wpf/advanced/walkthrough-hosting-a-wpf-composite-control-in-windows-forms
(2) 反過來在 WPF 中裝載 Windows Forms 控制項
https://docs.microsoft.com/zh-tw/dotnet/framework/wpf/advanced/walkthrough-hosting-a-windows-forms-control-in-wpf

me1237guy 發表在 痞客邦 留言(0) 人氣()

image

 1: <Window x:Class="WpfApp3.MainWindow"
 2: xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 3: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 4: xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
 5: xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 6: xmlns:local="clr-namespace:WpfApp3"
 7: mc:Ignorable="d"
 8: Title="MainWindow" Height="450" Width="800">
 9: <Grid>
 10: <Button Height="60"
 11: Width="200"
 12: Click="MyButton_Click"
 13: Content="點我"/>
 14:  
 15: </Grid>
 16: </Window>

me1237guy 發表在 痞客邦 留言(0) 人氣()

WIN鍵: WINDOWS菜單
WIN鍵+D: 顯示桌面WIN鍵+E: 開啟檔案總管

me1237guy 發表在 痞客邦 留言(0) 人氣()

Serialization is used to write class objects to files.[1] De-Serialization is used to recover the objects from the file.
When we want to transport an object through network then we have to convert the object into a stream of bytes.[2] The process of converting an object into a stream of bytes is called Serialization. For an object to be serializable, it should implement ISerialize Interface. De-serialization is the reverse process of creating an object from a stream of bytes.
參考資料:1. C# Serialization & Deserialization with Example

me1237guy 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。