Gregory, The right question is: when humans will land on the Moon again, will you be there?
Best regards, BB http://bartoszbien.com
Gregory, The right question is: when humans will land on the Moon again, will you be there?
Best regards, BB http://bartoszbien.com
Brilliant!
Best regards, BB http://bartoszbien.com
Hello, In my MFC MDI application, I would like to dock a set of side panes in tabs. For the tabs, I would like a 32x32 icon and no text, similarly to the 3ds max style: http://mods.terranova-exp.com/tutorials/3dsmax5/images/tut\_image\_01.jpg (the one in the upper right side of the window). Is this achievable using the CDockingManager
, or are the 16x16 icon sizes hard-coded? I am using VS2010 RC. Thanks in advance!
Best regards, BB http://bartoszbien.com
Hello, For my scientific application, I need a WPF control to display matrices of floating-point numbers. The sizes of matrices differ from 1*1 to approx. 100k*64. Rows may differ by foreground color (2 types), and columns may differ by background color (also 2 types). An example is here: http://bartoszbien.com/public/MatrixCtrl.png. Using a ListView
, I've been able to display values in cells, and to color the text as needed. However, I'm not able to set background color for the columns, because setting a CellTemplate
for a column does not work (by design) when the DisplayMemberBinding
is set. Do I need to write my own control from scratch, or is it possible to reach my goal using the ListView
? My style for the rows:
<Style x:Key="MatrixRowStyle" TargetType="{x:Type ListViewItem}">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Style.Triggers>
<DataTrigger Binding="{Binding Type}" Value="Type1">
<Setter Property="Foreground" Value="Lime" />
</DataTrigger>
<DataTrigger Binding="{Binding Type}" Value="Type2">
<Setter Property="Foreground" Value="RoyalBlue" />
</DataTrigger>
</Style.Triggers>
</Style>
My DisplayMemberBinding
for the columns:
column.DisplayMemberBinding = new Binding(string.Format("Values[{0}]", count));
The Values member comes from:
public class MatrixRow
{
public EType Type { get; set; }
public double[] Values { get; set; }
}
The ListView
's ItemsSource
is assigned with an IEnumerator
of MatrixRow
objects.
Best regards, BB http://bartoszbien.com
Michael Schubert wrote:
GlobalUni wrote: break time What's that?
Sounds like a breakpoint stretched in the temporal dimension.
Best regards, BB http://bartoszbien.com
I think you meant "WPF text smearing", didn't you? :sigh: The same UI implemented with WPF will be significantly faster than with Windows Forms. However, the VS performance problems rarely come from the rendering. For me, the main reason is a badly written Intellisense tangling our threads.
Best regards, BB http://bartoszbien.com
Not in this case. Although most of my projects are fully managed, I would also like to use this particular library for certain time-critical applications written in native C++, whose performance might suffer from .NET boxing.
Best regards, BB http://bartoszbien.com
Hi, thanks for your voice. :) My question was rather on how to automatically generate .NET wrappers for an existing native C++ code (or code the C++ core logic in a way that it can be easily reused with .NET, without manual reflection of each change). Perhaps I might use C++/CLI-based tool to convert my own existing RTTI to the .NET Reflection, and compile the generated .NET classes into a new managed assembly? What do you people think?
Best regards, BB http://bartoszbien.com
Hello All, I am about to create a custom windowing system for both native C++ and fully managed .NET applications (plus perhaps non-Windows platforms as well). Although some aspects of the code, such as rendering routines, are environment-dependent and must be rewritten, there are certain immutable elements, such as behavior of common controls (e.g. reaction of a button or an edit control to user's input, or logical events that these controls can fire, such as "Clicked" in a button, or "TextChanged" in an edit control). Therefore, I would like to code these reusable parts only once. I know one solution would be to implement them in C++ and then wrap them up in a C++/CLI managed assembly. However, the managed interface must be written in order to reflect all events, methods and properties from the C++ implementation to .NET. That forces me to add each new event or property in two places: one in the C++ part, and another one in the C++/CLI interface, which is something I don't want. Considering I have my own RTTI implementation in my native C++ library, would it be feasible to automatically generate required .NET wrappers? Note that I would like to use the library with comparable ease in both C++ and C#. If I got a std::string EditBox::Text
in C++, there must be a string EditBox.Text
in C# (and not a System.Runtime.InteropServices.Marshal.GetMyDamnedString(IntPtr(EditBox.Tag).ToPointer())
, nor any similarly beautiful construct). That's quite an architectural question, but I didn't want to crosspost - that's why it ended up here. :)
Best regards, BB http://bartoszbien.com
Hello All, I'm developing a distributed data processing system that requires frequent synchronization of a large file base (~4 GB in approx. 40000 files) among 10 or more workstations. The master file base is created on one of the workstations, and has to be distributed to the other ones over a local network. To avoid a bottleneck of simultaneous downloading files from a single workstation, I would like to create a peer-to-peer protocol that would allow redirecting the download request received by the master workstation to another workstation which has already downloaded a given file. Which technology of those available in the .NET Framework should I employ for that purpose?
Best regards, BB http://bartoszbien.com
Hello All, What tools do you use to create 3D models and export them to XAML? Is XAML the only format that WPF can accept for specifying 3D geometry? Is there a XAML exporter plugin available for 3ds Max?
Best regards, BB http://bartoszbien.com
Hello All, If I add certain Shapes (e.g. Polylines) to a WPF Grid (placed inside a WPF window), would they be rendered with hardware acceleration?
Best regards, BB http://bartoszbien.com
...anyone? :)
Best regards, BB http://bartoszbien.com
Hello, As there is no PropertyGrid
control in the WPF, how come that nobody - here, or at CodePlex - has written one yet? ;P FTTB, I added a Windows Forms host to my WPF project - it works fine, but there is a significant impact on performance when compared to native WPF controls. Do I have to write one by myself, or not necessarily?
Best regards, BB http://bartoszbien.com
Well said, and thank you for your reply. I'll then suggest the upgrade to my prospective clients because on XP my WPF app will look ugly (or I'd rather look for some other gimmick ;P ).
Best regards, BB http://bartoszbien.com
Hello, I'd like to enable antialiasing in WPF's Viewport3D
control, under Windows XP. I tried RenderOptions.EdgeMode="Aliased"
(in XAML), but it does not seem to change anything. Any ideas? :)
Best regards, BB http://bartoszbien.com
I have a hashing function for strings as follows: template <int HASHSIZE> // HASHSIZE == 256 class string_hash_nocase { public: int operator()(const char* s) { int hash = 1048577; char c; while (*s) { c = (*s >= 0x61 && *s <= 0x7a) ? (*s & 0xdf) : *s; hash = ((hash << 5) + hash) ^ c; ++s; } return hash & (HASHSIZE - 1); } };
May you have any idea on how to modify/extend it for Unicode (const wchar_t*
)?
Best regards, BB http://bartoszbien.com
Hello all, Is it possible to generate .NET 3.0 assemblies with C++/CLI under VS2005, or do I need VS2008? I have installed the WPF/WWF extensions, but these seem to be C#-only. Maybe there is some trick to make C++ use .NET 3.0?
Best regards, BB http://spin.neostrada.pl
Hello, // A.h #include "B.h" class A { public: B m_BClass; void SayHelloToMyLittleFriend() {} }; // B.h class A; class B { public: A* m_pAClass; // <-- no error here anymore, A is declared (but not defined) void LetsRock(); }; // B.cpp #include "B.h" #include "A.h" void B::LetsRock() { // TODO: do something crazy with m_pAClass, like calling its member function. m_pAClass->SayHelloToMyLittleFriend(); }
Best regards, BB http://spin.bartoszbien.com
Hello, Have you tried deleting all .ncb
and .suo
garbage, and rebuilding all?
Regards, BB http://spin.bartoszbien.com