标签:java aml system ons gic .net apt margin ann
I know most of you are lazy, so copy the XAML code below:
using System.Windows; using System.Data.OracleClient; using System.Data; namespace WpfLoadOracleBlob { ////// Interaction logic for Window1.xaml ///public partial class Window1 : Window { public Window1() { InitializeComponent(); } private void Window_Loaded(object sender, RoutedEventArgs e) { OracleConnection conn = new OracleConnection( "Data Source=localhost;" + "Persist Security Info=True;" + "User ID=C07;Password=C07;Unicode=True"); conn.Open(); OracleDataAdapter ad = new OracleDataAdapter( "SELECT ROWNUM, GAMBAR_BIN FROM GAMBAR", conn); DataTable tb = new DataTable(); ad.Fill(tb); comboBox1.DataContext = tb; conn.Close(); } } }
the key is incomboBox1.DataContext = tb;It means that comboBox1 Bind the data from yourSELECTQuery.
4. Now test your project and see the result of your work.
Okay, that’s all I can tell you. If you have any questions just leave it to the comment.
Load Image from Oracle BLOB into WPF Image Control
标签:java aml system ons gic .net apt margin ann
原文地址:http://www.cnblogs.com/Morus-alba/p/6209870.html