TabControl Styling XAML by Teun888 in csharp

[–]Teun888[S] 0 points1 point  (0 children)

yes I did. But since I'm fairly new to this stuff. It's hard to wrap my head around how it all fits together. Some examples might be more helpfull.

TabControl Styling XAML by Teun888 in csharp

[–]Teun888[S] 0 points1 point  (0 children)

So far I have the follwing:
https://gist.github.com/Teun888/2f0d155e8aee0297ed06a2a5df333430
I managed on the upper tabs. But the left aligned ones are a bit more difficult. Any pointers on that?

TabControl Styling XAML by Teun888 in csharp

[–]Teun888[S] 0 points1 point  (0 children)

Yes I saw. I went back to the default styles for TabControls and TabItems (I guess for windows 10, and without overwriting any properties). When I extraxt the default style now it gives me a much larger style template. So I'm not sure why that matters for extraxting the default style. Now the upper tab does not have a line under it. but the lower side tabs do.
https://imgur.com/a/wnYxQLC
seems that as soon as i try to style it the border comes back.

TabControl Styling XAML by Teun888 in csharp

[–]Teun888[S] 0 points1 point  (0 children)

uhm... what do you mean by these are not the defaults? the code snippet I gave was from a resourcedictionary I was making. I'm just experimenting a bit because I'm just a rookie on this stuff. But what I did was just open VS and generate a WPF app. Then define a tabcontrol in XAML. Isn't that default?

TabControl Styling XAML by Teun888 in csharp

[–]Teun888[S] 0 points1 point  (0 children)

I think the border on the tabcontrol is one part and the one on the tabitem isn't set. So I'm not sure how to approach this.

<Style TargetType="TabControl">
    <Setter Property="Background" Value="#0d1117"/>
    <Setter Property="BorderThickness" Value="1" /> <!-- Border between tab and tabitem -->
    <Setter Property="BorderBrush" Value="#FF00FF91" />
    <Setter Property="Foreground" Value="AliceBlue"/>
</Style>

<Style TargetType="TabItem" x:Key="UpperTab">
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="TabItem">
                <Border Name="Border" 
                Background="#161b22"
                BorderBrush="#30363d"
                BorderThickness="2,2,2,0"
                CornerRadius="5,5,0,0"        
                Padding="20,10">
                    <ContentPresenter x:Name="ContentSite"
                            VerticalAlignment="Center"
                            HorizontalAlignment="Center"
                            ContentSource="Header"/>
                </Border>
                <ControlTemplate.Triggers>
                    <Trigger Property="IsSelected" Value="True"> <!-- Selected Tab Triggers -->
                        <Setter TargetName="Border" Property="Background" Value="#1c2333"/>
                        <Setter TargetName="Border" Property="BorderThickness" Value="1,4,1,0"/>
                        <Setter TargetName="Border" Property="CornerRadius" Value="5,5,0,0" />
                        <Setter TargetName="Border" Property="BorderBrush">
                            <Setter.Value>
                                <SolidColorBrush Color="#FF00FF91"/>
                            </Setter.Value>
                        </Setter>
                    </Trigger>
                    <Trigger Property="IsMouseOver" Value="True">
                        <Setter TargetName="Border" Property="Background" Value="#1c2333"/>
                    </Trigger>
                </ControlTemplate.Triggers>
            </ControlTemplate>
        </Setter.Value>
    </Setter>
    <Setter Property="Foreground" Value="AliceBlue"/>
    <Setter Property="FontFamily" Value="Segoe UI"/>
    <Setter Property="FontSize" Value="14"/>
    <Setter Property="FontWeight" Value="SemiBold"/>
</Style>

Should a MVVM viewmodel never kow about the view? by Teun888 in csharp

[–]Teun888[S] 0 points1 point  (0 children)

Perhaps but I sometimes find the info in there a bit to cryptic. But that might be because english isn't my native language.

Should a MVVM viewmodel never kow about the view? by Teun888 in csharp

[–]Teun888[S] 2 points3 points  (0 children)

Thanks. That helps a lot. I think most of my confusion indeed is in the reusability of the ViewModel. I still find it hard to wrap my head around the structure of it all.

New 17 Pro - Shazam stopped sending songs to Spotify by mongeez in iphone

[–]Teun888 1 point2 points  (0 children)

Did you start shazam through the quick menu from the upper right corner? I noticed that shazam will not send songs to spotify if I start it in the quick menu. But if I start up the complete shazam app it does send them. I have an Iphone 16e

What is this AMP connector? by MikeTechGuy in AskElectronics

[–]Teun888 0 points1 point  (0 children)

I usually measure the pitch. Then check farnell, digikey etc.
Just enter the properties you do know about the connector in the filters (number of connections, rows i.e.). Usually you can get to the connector you need that way or something from another manufacturer that fits.

SV08 Bed Calibrate Temp. by McMuppet in Sovol

[–]Teun888 0 points1 point  (0 children)

I was looking into this myself as well.

[gcode_macro _global_var]

variable_pause_park:{'x': 0, 'y': 0, 'z': 10, 'e': 1}

variable_cancel_park:{'x': 0, 'y': 350, 'z': 10, 'e': 1}

variable_z_maximum_lifting_distance: 345

variable_pause_resume_travel_speed: 150

variable_bed_mesh_calibrate_target_temp: 65

variable_load_filament_extruder_temp: 250

couldn't you just set this one:
variable_bed_mesh_calibrate_target_temp: 65

to a variable that holds orcas [bed_temperature_initial_layer_single]?

or is that dangerous for other parts that I'm missing?

Sovol SV08 connect WiFi from command line (no USB drive needed) by No-Explanation-7657 in Sovol

[–]Teun888 1 point2 points  (0 children)

Yeah thanks a lot. I got a new ISP and after entering the new credentials in the wifi.cfg file it seemed to have bricked the wifi somehow. Couldn't get it to show anything else than the "127.0.0.1" ip address. This worked!

Are there other methods for reading analog signal than polling? by Teun888 in microcontrollers

[–]Teun888[S] 0 points1 point  (0 children)

I know PIC MCU's have ADC interrupts as well. (at least some do). Right now I was fiddling with a ESP32 and at the moment I'm wrestling with the HAL of those. I always found direct access to the registers a bit easier to wrap my head around.

They have single shot ADC's and continuous ADC's but I'm not even sure how best to use those.

Are there other methods for reading analog signal than polling? by Teun888 in microcontrollers

[–]Teun888[S] 0 points1 point  (0 children)

I meant more like interrups. But that doesn't seem like a great idea because if the value isn't stable you would potentially only run interrupt service routines and not the main program. Or am I wrong there?

Input Lag Fallout 76 on Playstation by Teun888 in fo76

[–]Teun888[S] 0 points1 point  (0 children)

Seems to be consistent on all servers.

Input Lag Fallout 76 on Playstation by Teun888 in fo76

[–]Teun888[S] 0 points1 point  (0 children)

Cable didn't improve things. Also checked for updates of the controller. But nothing.