PIXNET Logo登入

天天向上

跳到主文

程式外包服務  E-mail: me1237guy@yahoo.com.tw 歡迎來信洽談, 請附上相關文件或問題說明, 謝謝

專長:  ※自動光學檢測 ※人臉辨識 ※車牌辨識 ※錄影監控系統 ※自動控制I/O相關 
      ※演算法開發 ※基因演算法 ※類神經網路 
      ※MATLAB  ※VISUAL C++/C# ※Xamarin ※OpenCV ※Emgu ※Unity ※QT4/5
-----------------------------------------------------------------------------------------------
   SA (模擬退火法)     GA (基因演算法)    ACO (蟻群演算法)    PSO (粒子最佳化演算法)   
   排列組合問題最佳化   TSP  Scheduling  K-means, Fuzzy C-means, KNN, DBSCAN分群  
   Fuzzy Control (模糊控制)  Neural Networks (類神經網路) Object Tracking (Kalman Filter, Optical Flow)  
   Object Recognition (Pattern Match, Haar-Like Features, EigenFace)  Human Pose Recognition
   人臉偵測     移動物偵測   車牌辨識    智慧型監控攝影  XBOX Kinect影像處理及應用 體感互動應用  
   自動光學檢測(AOI) 玻璃檢測  NVIDIA CUDA平行運算處理
   TI-DSP 6xxx系列 雙影像輸入   / Raspberry PI 樹莓派 / Arduino控制  自走車避障礙物(GPS/機器視覺)

部落格全站分類:數位生活

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 8月 15 週四 201911:03
  • WPF Dispatcher非同步應用(防止介面無反應)

image

MainWindow.xaml
 1: <Window x:Class="WpfDispatcherApp.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:WpfDispatcherApp"
 7: mc:Ignorable="d"
 8: Title="MainWindow" Height="137" Width="554">
 9: <UniformGrid Rows="3" Columns="2">
 10: <Label Content="Input a number:" Height="28" HorizontalAlignment="Center" Name="label1" VerticalAlignment="Center" />
 11: <TextBox Height="23" HorizontalAlignment="Center" Name="textBox1" VerticalAlignment="Center" Width="100" Text="1000000000"/>
 12:  
 13: <Label Content="Result:" Height="28" HorizontalAlignment="Center" Name="label2" VerticalAlignment="Center" />
 14: <TextBox Height="23" HorizontalAlignment="Center" Name="textBox2" VerticalAlignment="Center" Width="100"/>
 15: <Button Content="synchronization" Height="23" HorizontalAlignment="Center" Name="button1" VerticalAlignment="Center" Width="100" Click="button1_Click" />
 16: <Button Content="asynchronization" Height="23" HorizontalAlignment="Center" Name="button2" VerticalAlignment="Center" Width="100" Click="button2_Click" />
 17: </UniformGrid>
 18: </Window>
(繼續閱讀...)
文章標籤

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

  • 個人分類:WPF
▲top
  • 8月 06 週二 201911:21
  • WPF 如何修改Combox背景顏色

image
如果你想要直接修改ComboBox背景顏色為自訂義漸層顏色,你應該會跟我遇到一樣的狀況,怎麼改都沒有作用@@
 1: <ComboBox Background="Yellow">
 2: <ComboBox.Resources>
 3: <!-- color of ComboBoxItem -->
 4: <SolidColorBrush x:Key="{x:Static SystemColors.WindowBrushKey}" Color="Yellow" />
 5: <!-- Mouse over color of ComboBoxItem -->
 6: <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Red" />
 7: </ComboBox.Resources>
 8: <ComboBoxItem>One</ComboBoxItem>
 9: <ComboBoxItem>Two</ComboBoxItem>
 10: <ComboBoxItem>Three</ComboBoxItem>
 11: </ComboBox>
(繼續閱讀...)
文章標籤

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

  • 個人分類:WPF
▲top
  • 8月 05 週一 201912:11
  • 使用Grid與GridSplitter排版布局

image

一上二下排列,基本上可以先定義兩列兩行,然後針對第一列(Grid.Row=0)特別定義跨兩行,也就是Grid.ColumnSpan=”2”第二列因為沒有跨行所以不用另外定義Grid.ColumnSpan
 1: <Grid>
 2: <Grid.RowDefinitions >
 3: <RowDefinition Height="100" />
 4: <RowDefinition />
 5: </Grid.RowDefinitions>
 6: <Grid.ColumnDefinitions >
 7: <ColumnDefinition Width="200" />
 8: <ColumnDefinition />
 9: </Grid.ColumnDefinitions>
 10:  
 11: <!--Panel-->
 12: <Border Grid.Row="0" Grid.Column="0" Background="Blue" Grid.ColumnSpan="2" />
 13: <!--<Border Grid.Row="0" Grid.Column="1" Background="LightSalmon" />-->
 14: <Border Grid.Row="1" Grid.Column="0" Background="Green" />
 15: <Border Grid.Row="1" Grid.Column="1" Background="Red" />
 16: </Grid>
(繼續閱讀...)
文章標籤

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

  • 個人分類:WPF
▲top
  • 8月 05 週一 201911:14
  • WPF Markup Extension

image
Markup Extensions and WPF XAML
新增一個類別 SaySomething.cs
定義兩個靜態屬性English和Chinese
 1: namespace WpfApp7
 2: {
 3: public class SaySomething
 4: {
 5: public static string English
 6: {
 7: get { return "Hello, how are you today?"; }
 8: }
 9: public static string Chinese
 10: {
 11: get { return "哈囉!今天好嗎?"; }
 12: }
 13: }
 14: }
(繼續閱讀...)
文章標籤

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

  • 個人分類:WPF
▲top
  • 7月 31 週三 201910:52
  • WPF 簡易桌面時鐘

image

加入參考 using System.Windows.Threading;
(繼續閱讀...)
文章標籤

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

  • 個人分類:WPF
▲top
  • 3月 25 週一 201909:55
  • WPF- MVVM

1. WPF – MVVM (一)2. WPF – MVVM (二)3. WPF – MVVM (三)4. UWP 和 WPF 对比
(繼續閱讀...)
文章標籤

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

  • 個人分類:WPF
▲top
  • 3月 21 週四 201909:40
  • Windows Forms 中裝載 WPF 控制項

(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) 人氣(99)

  • 個人分類:WPF
▲top
  • 3月 19 週二 201914:25
  • Binding ICommand (命令繫結)

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) 人氣(2,260)

  • 個人分類:WPF
▲top
1

個人資訊

me1237guy
暱稱:
me1237guy
分類:
數位生活
好友:
累積中
地區:

熱門文章

  • (8,478)分水嶺影像分割Marker-based Image Segmentation Algorithm Using OpenCV2.4.7 with Visual Studio 2010
  • (3,999)Pylon Live View C# Sample Code Review
  • (14,166)網路上提供測試 RTSP 的伺服器
  • (23,895)Adding Something to DataGridView
  • (1,249)Arduino RS232 模擬儀器輸出訊號
  • (4,389)安裝PLC學習軟體 FX-TRN-BEG-T
  • (7,365)建立和使用 C# 的 DLL
  • (3,658)安裝Open eVision 1.2.5.8549
  • (12,906)EmguCV : 圈選感興趣區域
  • (25,023)C# 如何創建, 暫停, 繼續, 終止一個執行緒(Thread)

文章分類

  • wordpress (2)
  • 雲端計算 (1)
  • 邊緣運算 (5)
  • MPI (2)
  • Git & Github (6)
  • Unity (2)
  • Android Studio (10)
  • Deep Leraning (35)
  • LaTex (2)
  • Linux (6)
  • jetson nano (3)
  • Qt (20)
  • Docker (4)
  • Office (1)
  • OpenTK (1)
  • WPF (8)
  • SQL (4)
  • Revit (6)
  • MATLAB (13)
  • R Language (8)
  • Design Pattern & Implementation by Using C# (48)
  • RaspberryPI (5)
  • Python (77)
  • 其他語言 (40)
  • 攝影機 (45)
  • 工業應用 (50)
  • 家庭 (12)
  • Mobile (31)
  • 工作日誌 (2)
  • Linux (5)
  • C/C++ (15)
  • AOI (41)
  • Emgu CV (42)
  • C# (147)
  • Visual Studio (48)
  • OpenCV (118)
  • 未分類文章 (1)

最新文章

  • Gemini API Key 低成本 Nano Banana Pro作圖
  • DMK 37AUX226
  • wafer基礎術語
  • 將資料夾中多個mp4影片合併成一個mp4檔案
  • 如何用沙子制造芯片:从冶炼硅锭到晶圆打磨|芯片工艺合集
  • yolov9安裝
  • ActionEngine, ActionTask and ActionWorker
  • @dataclass裝飾子
  • IO控制卡安裝驅動器後無法在此裝置載入驅動程式
  • How you put and then get items from a queue.Queue

動態訂閱

文章精選

文章搜尋

誰來我家

參觀人氣

  • 本日人氣:
  • 累積人氣: