23,895 questions with .NET-related tags

Sort by: Updated
0 answers

How to complie IronPython WPF application to exe?

I create a IronPython WPF project, but how can i complie it?

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,672 questions
asked 2020-10-03T05:30:27.817+00:00
陈勇潮 1 Reputation point
commented 2020-10-06T07:01:29.96+00:00
DaisyTian-1203 11,616 Reputation points
1 answer

Not able to WCF service reference to MVC project using net.tcp

My project is using MVC with WCF for 5 years and the code hasn't changed much. Recently my laptop got replaced since then I am facing trouble adding a service reference to MY WCF services in my MVC project. Please find the error, IIS configuration and…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,377 questions
asked 2020-10-03T05:10:54.41+00:00
Sushant Sinha 1 Reputation point
answered 2020-10-06T02:28:13.567+00:00
Peng Ding-MSFT 91 Reputation points
0 answers

receiving emails WPF Application (not forms)

hi all i'm trying to receive emails in my app and am struggling to work out the Xaml window code. i think my back end code works which is as follows private void Button_Click_1(object sender, RoutedEventArgs e) { using (var…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,672 questions
asked 2020-10-03T21:45:51.377+00:00
darren guest 1 Reputation point
commented 2020-10-05T23:12:15.297+00:00
Emon Haque 3,176 Reputation points
0 answers

load a specified user control and its code behind on demand

Hi Peter + Daisy, As far as I can understand, the code behind of a specified user control would fail the following code: (UserControl)XamlReader.Load(new FileStream(_userControlFilePath, FileMode.Open)); Is there a way to load a specified user…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,672 questions
asked 2020-10-05T03:58:17.937+00:00
jennyliu835 221 Reputation points
commented 2020-10-05T22:26:31.997+00:00
jennyliu835 221 Reputation points
1 answer One of the answers was accepted by the question author.

How to bind SelectedItems.Count and Items.Count of ListBox in ViewModel's property?

In xaml this works: <TextBlock HorizontalAlignment="Right"> <Run Text="{Binding ElementName=lb, Path=SelectedItems.Count, Mode=OneWay}"/> <Run Text="/"/> <Run Text="{Binding…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,672 questions
asked 2020-10-03T20:14:48.167+00:00
Emon Haque 3,176 Reputation points
accepted 2020-10-04T14:17:49.647+00:00
Emon Haque 3,176 Reputation points
1 answer One of the answers was accepted by the question author.

button.ActualHeight with IEnumerable<T> FindVisualChildren<T>(DependencyObject depObj)

I have the code bellow in Wpf C#. It works but problem is the first bt.ActualHeight.ToString() in message is always "0: All other values are right. Can you help me pleas public static IEnumerable<T>…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,672 questions
asked 2020-09-28T16:40:57.297+00:00
Blader 156 Reputation points
accepted 2020-10-04T05:04:38.933+00:00
Blader 156 Reputation points
2 answers One of the answers was accepted by the question author.

Visual Studio: Handling renaming of items with design view

Greetings, Let's say that we are creating a form in design view in Visual Studio. We place a button on the form and then double-click the button to automatically generate an event handler for the click of the button. This takes us directly to the code…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,829 questions
asked 2020-10-03T16:51:08.687+00:00
FriQenstein 136 Reputation points
answered 2020-10-03T18:15:53.907+00:00
FriQenstein 136 Reputation points
1 answer

How do you access the Windows 10 SystemIndex in a .Net Core app since OleDb is unsupported?

I have a .Net Framework app that I am porting to .Net Core 3.1. It queries the system index to find relevant files using AQS and OleDb. But how do I get the same functionality in .Net Core 3.1 since Ole Db is not supported? (Btw, the keyword system…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,829 questions
asked 2020-10-03T05:32:16.567+00:00
Pete Stewart 1 Reputation point
answered 2020-10-03T08:11:58.763+00:00
Castorix31 81,726 Reputation points
2 answers One of the answers was accepted by the question author.

What cause this DataTable.ImportRow()'s failure?

for (int i = 0; i < P5.Rows.Count; i++) { var dr = P5.Rows[i]; (※※※※) if ((bool)dr[0]) { dt.ImportRow(dr); } } I paused the program at line(※※※※), then…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,829 questions
asked 2020-10-01T19:52:11.45+00:00
Chenbinhao 21 Reputation points
commented 2020-10-03T05:25:24.4+00:00
Viorel 112.1K Reputation points
2 answers One of the answers was accepted by the question author.

How to enable Thumbnail LivePreview to be live for when window is minimized?

If you put continuous animation at window (WPF Framework), then you minimize window, then go at Taskbar application button to view its LivePreview, animation at the preview is paused. How to enable Thumbnail LivePreview to be live for when window is…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,672 questions
asked 2020-09-24T15:07:58.743+00:00
vb 276 Reputation points
answered 2020-10-02T18:51:28.72+00:00
vb 276 Reputation points
2 answers One of the answers was accepted by the question author.

In WPF apps, should the implementation of INotifyPropertyChanged only be in the ViewModel?

I'm assisting in writing a WPF app. One thing I've done only in the ViewModel (VM) to date, is define properties associated with the data from the model, so that I can use MVVM Light's RaisePropertyChanged() method in the setter of the property. That's…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,672 questions
asked 2020-10-01T00:54:39.513+00:00
Rod Falanga 561 Reputation points
accepted 2020-10-02T12:19:15+00:00
Rod Falanga 561 Reputation points
0 answers

What is the best solution for draw lines in Viewport3D in WPF

Hi I'm trying to make a 3D Chart of a surface with the Viewport3D class and it must be able to be moved with mouse. My problem is how to make the lines for the grid of chart. I need that the lines have a behaviour like 2D moving in a 3D space. I dont…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,672 questions
asked 2020-10-01T13:15:12.163+00:00
Alex Hyx 1 Reputation point
commented 2020-10-02T08:16:33.28+00:00
Jack J Jun 24,286 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Is it possible to load user controls on demand? - Cont.

Hi Peter + Daisy, Is it possible to load a specified user control (i.e. UC1, UC2,... UC# ) without building any list, just as we do with a specified page? For example, NavigationService NS = fm.NavigationService; NS.Navigate(new…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,672 questions
asked 2020-10-01T06:47:35.623+00:00
jennyliu835 221 Reputation points
commented 2020-10-02T05:30:47.083+00:00
jennyliu835 221 Reputation points
0 answers

Convert MemoryStream to BitmapImage thrown “System.NullReferenceException”

I am trying to use TagLib to load album art dynamically to Image in WPF. So ,I define a dependency property like this: public static readonly DependencyProperty AlbumImageProperty = DependencyProperty.Register( "AlbumImage",…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,672 questions
asked 2020-09-29T14:48:51.443+00:00
雨晨 金 1 Reputation point
commented 2020-10-01T13:33:23.293+00:00
雨晨 金 1 Reputation point
1 answer One of the answers was accepted by the question author.

How to access the internal filtered collection of ICollectionView?

I've these collection and collectionviews: public ICollectionView Tenants { get; set; } public ICollectionView Plots { get; set; } List<int> foundPlots and these subscription and filters: Tenants.CurrentChanged +=…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,672 questions
asked 2020-09-30T09:18:22.63+00:00
Emon Haque 3,176 Reputation points
accepted 2020-10-01T09:50:51.473+00:00
Emon Haque 3,176 Reputation points
1 answer One of the answers was accepted by the question author.

Wpf C# get ActualHeight of the button added by program

I have a code bellow. I want to get heights from all buttons adding programmatically, but results for all heights is 0. Can you help me please? int k = 1; int indexMax = 100; Double[] vyska = new double[1000]; private void btnOpen_Click(object…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,672 questions
asked 2020-09-30T15:43:19.713+00:00
Blader 156 Reputation points
accepted 2020-10-01T06:14:04.927+00:00
Blader 156 Reputation points
1 answer

Chart Update after created and linked datasource

Hallo I'm trying to find a way to update the chart after the a list of Objects was binded with the chart. (Simple explanation below). Chart is created once the form is loaded, and got a tick event that should update the data every couple of…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,829 questions
asked 2020-09-30T21:19:53.553+00:00
jacques labuschagne 1 Reputation point
answered 2020-10-01T04:44:28.903+00:00
Daniel Zhang-MSFT 9,611 Reputation points
1 answer One of the answers was accepted by the question author.

How to bind Group Names and Items separately in different Comboboxes

I've an ICollectionView named MyObjects with group description. In code I can access group Name and Items this way: foreach (var gr in MyObjects.Groups) { var group = gr as CollectionViewGroup; var name = group.Name; var item =…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,672 questions
asked 2020-09-29T08:59:09.113+00:00
Emon Haque 3,176 Reputation points
accepted 2020-09-30T09:21:37.597+00:00
Emon Haque 3,176 Reputation points
1 answer

'Navigate' is not a member of 'WebView22' ?

Hello & Thanks ; Trying to convert my SafeBrowser WebBrowser1 to WebView22 & getting error: 1>C:\Users\vmars\source\repos\WindowsApp2_01\Form1.vb(7,9): error BC30456: 'Navigate' is not a member of 'SafeBrowser'. Which brings up the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,829 questions
asked 2020-09-26T00:22:20.55+00:00
vmars316 621 Reputation points
commented 2020-09-30T08:32:36.32+00:00
Daniel Zhang-MSFT 9,611 Reputation points
1 answer

receive email on Wpf application C#

hi im wondering if anyone has any idea how to receive emails in my application. I have been looking for some help on what the front end is for my users but also the code behind it any help would be great

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,672 questions
asked 2020-09-25T22:13:11.543+00:00
darren guest 1 Reputation point
commented 2020-09-30T08:12:00.52+00:00
Zhanglong Wu-MSFT 261 Reputation points Microsoft Vendor