1,623,708 questions
-1
votes
0
answers
68
views
How to bind SelectedItems in ListBox to ViewModel (Behaivor problem) [duplicate]
I have a ListBox
<ListBox
BorderBrush="Transparent"
FontSize="{Binding ExplorerElementsHeight}"
ItemsSource="{Binding CurrentExplorerContent}"
...
-1
votes
0
answers
71
views
Is it possible to display the parameters from the JSON before I use JsonSerializer.Deserialize?
How can I display the function parameters (SessionTicket, Deviceid, Loginemail, Language) in Azure portal when I call my Azure function? I just want to find out if the function parameters are correct ...
4
votes
4
answers
2k
views
How to Invoke IDBSet<T>.FirstOrDefault(predicate) using reflection?
given an IDbSet where Person contains an "Id" property, how can I execute the following command generically:
var p = PersonDbSet.FirstOrDefault(i=>i.Id = 3);
I can build up the predicate, and get ...
-2
votes
1
answer
104
views
Trying to generate IBAN with Iban.net IbanBuilder
I am using the nuget package IbanNet and I am trying to generate an IBAN from a BBAN.
I have the following code:
var builder = new IbanBuilder();
var tCountry = new IBanCountry("hr");
...
0
votes
1
answer
423
views
Improve speed Sharepoint request via meta-data
To avoid the XY-problem / confusion I'm talking first my problem and then how I would like to solve it:
Currently I am building an application to retrieve Sharepoint files. The first version of the ...
69
votes
7
answers
58k
views
How to convert Gregorian date to Persian date?
I want to convert a custom Gregorian date to Persian date in C#.
For example, I have a string with this contents:
string GregorianDate = "Thursday, October 24, 2013";
Now I want to have:
...
0
votes
1
answer
538
views
how to make visible a tableLayoutPanel behind a transparent image?
pardon me for this question but I'm a c# n00b.
I'd like to show a tableLayoutPanel on the background of an image with transparent sections (so it's not an issue with transparency between 2 PictureBox, ...
0
votes
2
answers
13k
views
CS0426: The type or namespace name 'InputAction' could not be found
im trying to make a 3d game and all im trying to do is to get my character walking around but i keep getting the "Assets/AnimationAndMovementController.cs(26,28): error CS0246: The type or ...
-1
votes
3
answers
2k
views
populating word doc from xml in c#
how do i populate a word doc from an xml template using c#. I know how to open a blank document but I cant figure out how to populate it.
Word.Document wordDoc = wordApp.Documents.Add(ref objMissing,
...
894
votes
16
answers
906k
views
C# loop — break vs. continue
In a C# (feel free to answer for other languages) loop, what's the difference between break and continue as a means to leave the structure of the loop, and go to the next iteration?
Example:
foreach (...
0
votes
2
answers
2k
views
Multi-tenant authentication, IMustHaveTenant entity in ASP.NET Boilerplate Module Zero
Multi-Tenant Authentication
I have created a new tenant from the swagger UI as an admin and I can check in the data the tenant created successfully together with admin account.
Now how do I login as ...
-8
votes
0
answers
69
views
How to group dictionary of same hours by consecutive day that changes [closed]
I have a dictionary of type Dictionary<string, string>, each item of which has the day of week as the key, with the hours of operation as the value. The items might look like this:
[0] {[Sun,...
2
votes
1
answer
9k
views
Getting 400 http bad request error while accessing WCF rest service using GET
the Exact error is System.Net.WebException: The Remote server returned an Error: (400) Bad Request. at system.Net.HttpWebRequest.GetResponse()i have a WCF rest service hosted in IIS..I have created a ...
2
votes
3
answers
94
views
Deserialize with XmlSerializer an XML File that may or may not have the xmlns set
I have generated C# classes with targetNamespace, now I want to use this Type with XML file that may or may not have the xmlns root attribute set.
I have modified the description of my question to ...
-1
votes
0
answers
58
views
WPF C# thermal printer job stuck in print queue after app is idle/minimized, works only after app restart
Question
I have a C# WPF desktop application that prints invoices to a thermal printer using the Custom Print Queue (ESC/POS–style printing).
Issue:
If the application is idle or minimized for ~10 ...